libZSservicesZSamazonka-appconfigZSamazonka-appconfig
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppConfig.GetEnvironment

Description

Retrieve information about an environment. An environment is a logical deployment group of AppConfig applications, such as applications in a Production environment or in an EU_Region environment. Each configuration deployment targets an environment. You can enable one or more Amazon CloudWatch alarms for an environment. If an alarm is triggered during a deployment, AppConfig roles back the configuration.

Synopsis

Creating a Request

data GetEnvironment Source #

See: newGetEnvironment smart constructor.

Constructors

GetEnvironment' 

Fields

Instances

Instances details
Eq GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

Read GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

Show GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

Generic GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

Associated Types

type Rep GetEnvironment :: Type -> Type #

NFData GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

Methods

rnf :: GetEnvironment -> () #

Hashable GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

AWSRequest GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

Associated Types

type AWSResponse GetEnvironment #

ToHeaders GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

ToPath GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

ToQuery GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

type Rep GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

type Rep GetEnvironment = D1 ('MetaData "GetEnvironment" "Amazonka.AppConfig.GetEnvironment" "libZSservicesZSamazonka-appconfigZSamazonka-appconfig" 'False) (C1 ('MetaCons "GetEnvironment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "applicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "environmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetEnvironment Source # 
Instance details

Defined in Amazonka.AppConfig.GetEnvironment

newGetEnvironment Source #

Create a value of GetEnvironment with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:applicationId:GetEnvironment', getEnvironment_applicationId - The ID of the application that includes the environment you want to get.

$sel:environmentId:GetEnvironment', getEnvironment_environmentId - The ID of the environment you wnat to get.

Request Lenses

getEnvironment_applicationId :: Lens' GetEnvironment Text Source #

The ID of the application that includes the environment you want to get.

getEnvironment_environmentId :: Lens' GetEnvironment Text Source #

The ID of the environment you wnat to get.

Destructuring the Response

data Environment Source #

See: newEnvironment smart constructor.

Constructors

Environment' 

Fields

Instances

Instances details
Eq Environment Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Environment

Read Environment Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Environment

Show Environment Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Environment

Generic Environment Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Environment

Associated Types

type Rep Environment :: Type -> Type #

NFData Environment Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Environment

Methods

rnf :: Environment -> () #

Hashable Environment Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Environment

FromJSON Environment Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Environment

type Rep Environment Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Environment

newEnvironment :: Environment Source #

Create a value of Environment with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:state:Environment', environment_state - The state of the environment. An environment can be in one of the following states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK

$sel:monitors:Environment', environment_monitors - Amazon CloudWatch alarms monitored during the deployment.

$sel:applicationId:Environment', environment_applicationId - The application ID.

$sel:name:Environment', environment_name - The name of the environment.

$sel:id:Environment', environment_id - The environment ID.

$sel:description:Environment', environment_description - The description of the environment.

Response Lenses

environment_state :: Lens' Environment (Maybe EnvironmentState) Source #

The state of the environment. An environment can be in one of the following states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK

environment_monitors :: Lens' Environment (Maybe [Monitor]) Source #

Amazon CloudWatch alarms monitored during the deployment.

environment_name :: Lens' Environment (Maybe Text) Source #

The name of the environment.

environment_description :: Lens' Environment (Maybe Text) Source #

The description of the environment.