CfnMaintenanceWindowTargetPropsMixin

class aws_cdk.mixins_preview.aws_ssm.mixins.CfnMaintenanceWindowTargetPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::SSM::MaintenanceWindowTarget resource registers a target with a maintenance window for AWS Systems Manager .

For more information, see RegisterTargetWithMaintenanceWindow in the AWS Systems Manager API Reference .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-maintenancewindowtarget.html

CloudformationResource:

AWS::SSM::MaintenanceWindowTarget

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_ssm import mixins as ssm_mixins

cfn_maintenance_window_target_props_mixin = ssm_mixins.CfnMaintenanceWindowTargetPropsMixin(ssm_mixins.CfnMaintenanceWindowTargetMixinProps(
    description="description",
    name="name",
    owner_information="ownerInformation",
    resource_type="resourceType",
    targets=[ssm_mixins.CfnMaintenanceWindowTargetPropsMixin.TargetsProperty(
        key="key",
        values=["values"]
    )],
    window_id="windowId"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::SSM::MaintenanceWindowTarget.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['description', 'name', 'ownerInformation', 'resourceType', 'targets', 'windowId']

Static Methods

classmethod is_mixin(x)

(experimental) 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.

Stability:

experimental

TargetsProperty

class CfnMaintenanceWindowTargetPropsMixin.TargetsProperty(*, key=None, values=None)

Bases: object

The Targets property type specifies adding a target to a maintenance window target in AWS Systems Manager .

Targets is a property of the AWS::SSM::MaintenanceWindowTarget resource.

Parameters:
  • key (Optional[str]) – User-defined criteria for sending commands that target managed nodes that meet the criteria.

  • values (Optional[Sequence[str]]) – User-defined criteria that maps to Key . For example, if you specified tag:ServerRole , you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer . Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtarget-targets.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_ssm import mixins as ssm_mixins

targets_property = ssm_mixins.CfnMaintenanceWindowTargetPropsMixin.TargetsProperty(
    key="key",
    values=["values"]
)

Attributes

key

User-defined criteria for sending commands that target managed nodes that meet the criteria.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtarget-targets.html#cfn-ssm-maintenancewindowtarget-targets-key

values

User-defined criteria that maps to Key .

For example, if you specified tag:ServerRole , you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer .

Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtarget-targets.html#cfn-ssm-maintenancewindowtarget-targets-values