Skip to content

/AWS1/CL_APC=>CREATEENVIRONMENT()

About CreateEnvironment

Creates an environment. For each application, you define one or more environments. An environment is a deployment group of AppConfig targets, such as applications in a Beta or Production environment. You can also define environments for application subcomponents such as the Web, Mobile and Back-end components for your application. You can configure Amazon CloudWatch alarms for each environment. The system monitors alarms during a configuration deployment. If an alarm is triggered, the system rolls back the configuration.

Method Signature

IMPORTING

Required arguments:

IV_APPLICATIONID TYPE /AWS1/APCID /AWS1/APCID

The application ID.

IV_NAME TYPE /AWS1/APCNAME /AWS1/APCNAME

A name for the environment.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/APCDESCRIPTION /AWS1/APCDESCRIPTION

A description of the environment.

IT_MONITORS TYPE /AWS1/CL_APCMONITOR=>TT_MONITORLIST TT_MONITORLIST

Amazon CloudWatch alarms to monitor during the deployment process.

IT_TAGS TYPE /AWS1/CL_APCTAGMAP_W=>TT_TAGMAP TT_TAGMAP

Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_APCENVIRONMENT /AWS1/CL_APCENVIRONMENT