CfnDeploymentPropsMixin
- class aws_cdk.mixins_preview.aws_appconfig.mixins.CfnDeploymentPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::AppConfig::Deploymentresource starts a deployment.Starting a deployment in AWS AppConfig calls the
StartDeploymentAPI action. This call includes the IDs of the AWS AppConfig application, the environment, the configuration profile, and (optionally) the configuration data version to deploy. The call also includes the ID of the deployment strategy to use, which determines how the configuration data is deployed.AWS AppConfig monitors the distribution to all hosts and reports status. If a distribution fails, then AWS AppConfig 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:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appconfig-deployment.html
- CloudformationResource:
AWS::AppConfig::Deployment
- 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_deployment_props_mixin = appconfig_mixins.CfnDeploymentPropsMixin(appconfig_mixins.CfnDeploymentMixinProps( application_id="applicationId", configuration_profile_id="configurationProfileId", configuration_version="configurationVersion", deployment_strategy_id="deploymentStrategyId", description="description", dynamic_extension_parameters=[appconfig_mixins.CfnDeploymentPropsMixin.DynamicExtensionParametersProperty( extension_reference="extensionReference", parameter_name="parameterName", parameter_value="parameterValue" )], environment_id="environmentId", kms_key_identifier="kmsKeyIdentifier", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AppConfig::Deployment.- Parameters:
props (
Union[CfnDeploymentMixinProps,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', 'configurationProfileId', 'configurationVersion', 'deploymentStrategyId', 'description', 'dynamicExtensionParameters', 'environmentId', 'kmsKeyIdentifier', '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
DynamicExtensionParametersProperty
- class CfnDeploymentPropsMixin.DynamicExtensionParametersProperty(*, extension_reference=None, parameter_name=None, parameter_value=None)
Bases:
objectA map of dynamic extension parameter names to values to pass to associated extensions with
PRE_START_DEPLOYMENTactions.- Parameters:
extension_reference (
Optional[str]) – The ARN or ID of the extension for which you are inserting a dynamic parameter.parameter_name (
Optional[str]) – The parameter name.parameter_value (
Optional[str]) – The parameter value.
- 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 dynamic_extension_parameters_property = appconfig_mixins.CfnDeploymentPropsMixin.DynamicExtensionParametersProperty( extension_reference="extensionReference", parameter_name="parameterName", parameter_value="parameterValue" )
Attributes
- extension_reference
The ARN or ID of the extension for which you are inserting a dynamic parameter.
- parameter_name
The parameter name.