CfnEnvironmentPropsMixin
- class aws_cdk.mixins_preview.aws_appconfig.mixins.CfnEnvironmentPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::AppConfig::Environmentresource creates an environment, which is a logical deployment group of AWS AppConfig targets, such as applications in aBetaorProductionenvironment.You define one or more environments for each AWS AppConfig application. You can also define environments for application subcomponents such as the
Web,MobileandBack-endcomponents 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.AWS AppConfig requires that you create resources and deploy a configuration in the following order:
Create an application
Create an environment
Create a configuration profile
Choose a pre-defined deployment strategy or create your own
Deploy the configuration
For more information, see AWS AppConfig in the AWS AppConfig User Guide .
- See:
- CloudformationResource:
AWS::AppConfig::Environment
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_appconfig import mixins as appconfig_mixins cfn_environment_props_mixin = appconfig_mixins.CfnEnvironmentPropsMixin(appconfig_mixins.CfnEnvironmentMixinProps( application_id="applicationId", deletion_protection_check="deletionProtectionCheck", description="description", monitors=[appconfig_mixins.CfnEnvironmentPropsMixin.MonitorsProperty( alarm_arn="alarmArn", alarm_role_arn="alarmRoleArn" )], name="name", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AppConfig::Environment.- Parameters:
props (
Union[CfnEnvironmentMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['applicationId', 'deletionProtectionCheck', 'description', 'monitors', 'name', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
MonitorProperty
- class CfnEnvironmentPropsMixin.MonitorProperty(*, alarm_arn=None, alarm_role_arn=None)
Bases:
objectAmazon CloudWatch alarms to monitor during the deployment process.
- Parameters:
alarm_arn (
Optional[str]) – Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.alarm_role_arn (
Optional[str]) – ARN of an AWS Identity and Access Management (IAM) role for AWS AppConfig to monitorAlarmArn.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_appconfig import mixins as appconfig_mixins monitor_property = appconfig_mixins.CfnEnvironmentPropsMixin.MonitorProperty( alarm_arn="alarmArn", alarm_role_arn="alarmRoleArn" )
Attributes
- alarm_arn
Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.
- alarm_role_arn
ARN of an AWS Identity and Access Management (IAM) role for AWS AppConfig to monitor
AlarmArn.
MonitorsProperty
- class CfnEnvironmentPropsMixin.MonitorsProperty(*, alarm_arn=None, alarm_role_arn=None)
Bases:
object- Parameters:
alarm_arn (
Optional[str])alarm_role_arn (
Optional[str])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_appconfig import mixins as appconfig_mixins monitors_property = appconfig_mixins.CfnEnvironmentPropsMixin.MonitorsProperty( alarm_arn="alarmArn", alarm_role_arn="alarmRoleArn" )
Attributes
- alarm_arn
-
- Type:
see