CfnDeploymentStrategyPropsMixin

class aws_cdk.mixins_preview.aws_appconfig.mixins.CfnDeploymentStrategyPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::AppConfig::DeploymentStrategy resource creates an AWS AppConfig deployment strategy.

A deployment strategy defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes: the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.

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-deploymentstrategy.html

CloudformationResource:

AWS::AppConfig::DeploymentStrategy

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.aws_appconfig import mixins as appconfig_mixins
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_deployment_strategy_props_mixin = appconfig_mixins.CfnDeploymentStrategyPropsMixin(appconfig_mixins.CfnDeploymentStrategyMixinProps(
    deployment_duration_in_minutes=123,
    description="description",
    final_bake_time_in_minutes=123,
    growth_factor=123,
    growth_type="growthType",
    name="name",
    replicate_to="replicateTo",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::AppConfig::DeploymentStrategy.

Parameters:
  • props (Union[CfnDeploymentStrategyMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['deploymentDurationInMinutes', 'description', 'finalBakeTimeInMinutes', 'growthFactor', 'growthType', 'name', 'replicateTo', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

TagsProperty

class CfnDeploymentStrategyPropsMixin.TagsProperty(*, key=None, value=None)

Bases: object

Parameters:
  • key (Optional[str])

  • value (Optional[str])

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deploymentstrategy-tags.html

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

tags_property = appconfig_mixins.CfnDeploymentStrategyPropsMixin.TagsProperty(
    key="key",
    value="value"
)

Attributes

key

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deploymentstrategy-tags.html#cfn-appconfig-deploymentstrategy-tags-key

Type:

see

value

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deploymentstrategy-tags.html#cfn-appconfig-deploymentstrategy-tags-value

Type:

see