{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.ElasticBeanstalk.Types.EnvironmentResourcesDescription -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.ElasticBeanstalk.Types.EnvironmentResourcesDescription where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.ElasticBeanstalk.Types.LoadBalancerDescription import qualified Amazonka.Prelude as Prelude -- | Describes the AWS resources in use by this environment. This data is not -- live data. -- -- /See:/ 'newEnvironmentResourcesDescription' smart constructor. data EnvironmentResourcesDescription = EnvironmentResourcesDescription' { -- | Describes the LoadBalancer. loadBalancer :: Prelude.Maybe LoadBalancerDescription } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'EnvironmentResourcesDescription' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'loadBalancer', 'environmentResourcesDescription_loadBalancer' - Describes the LoadBalancer. newEnvironmentResourcesDescription :: EnvironmentResourcesDescription newEnvironmentResourcesDescription = EnvironmentResourcesDescription' { loadBalancer = Prelude.Nothing } -- | Describes the LoadBalancer. environmentResourcesDescription_loadBalancer :: Lens.Lens' EnvironmentResourcesDescription (Prelude.Maybe LoadBalancerDescription) environmentResourcesDescription_loadBalancer = Lens.lens (\EnvironmentResourcesDescription' {loadBalancer} -> loadBalancer) (\s@EnvironmentResourcesDescription' {} a -> s {loadBalancer = a} :: EnvironmentResourcesDescription) instance Data.FromXML EnvironmentResourcesDescription where parseXML x = EnvironmentResourcesDescription' Prelude.<$> (x Data..@? "LoadBalancer") instance Prelude.Hashable EnvironmentResourcesDescription where hashWithSalt _salt EnvironmentResourcesDescription' {..} = _salt `Prelude.hashWithSalt` loadBalancer instance Prelude.NFData EnvironmentResourcesDescription where rnf EnvironmentResourcesDescription' {..} = Prelude.rnf loadBalancer