CfnDeploymentPropsMixin

class aws_cdk.cfn_property_mixins.aws_m2.CfnDeploymentPropsMixin(props, *, strategy=None)

Bases: Mixin

AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.

If you would like to use the service, please sign up prior to November 7, 2025. For capabilities similar to AWS Mainframe Modernization Service (Managed Runtime Environment experience) explore AWS Mainframe Modernization Service (Self-Managed Experience). Existing customers can continue to use the service as normal. For more information, see AWS Mainframe Modernization availability change .

Creates and starts a deployment to deploy an application into a runtime environment.

see:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-m2-deployment.html

cloudformationResource:

AWS::M2::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.cfn_property_mixins import aws_m2 as m2
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_deployment_props_mixin = m2.CfnDeploymentPropsMixin(m2.CfnDeploymentMixinProps(
    application_id="applicationId",
    application_version=123,
    environment_id="environmentId"
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::M2::Deployment.

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

  • strategy (Optional[IMergeStrategy]) – 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 = ['applicationId', 'applicationVersion', 'environmentId']

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.