CfnMaintenanceWindowTargetPropsMixin
- class aws_cdk.mixins_preview.aws_ssm.mixins.CfnMaintenanceWindowTargetPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::SSM::MaintenanceWindowTargetresource registers a target with a maintenance window for AWS Systems Manager .For more information, see RegisterTargetWithMaintenanceWindow in the AWS Systems Manager API Reference .
- See:
- 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:
props (
Union[CfnMaintenanceWindowTargetMixinProps,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 = ['description', 'name', 'ownerInformation', 'resourceType', 'targets', 'windowId']
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
TargetsProperty
- class CfnMaintenanceWindowTargetPropsMixin.TargetsProperty(*, key=None, values=None)
Bases:
objectThe
Targetsproperty type specifies adding a target to a maintenance window target in AWS Systems Manager .Targetsis 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 toKey. For example, if you specifiedtag:ServerRole, you could specifyvalue:WebServerto run a command on instances that include EC2 tags ofServerRole,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:
- 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.
- values
User-defined criteria that maps to
Key.For example, if you specified
tag:ServerRole, you could specifyvalue:WebServerto run a command on instances that include EC2 tags ofServerRole,WebServer.Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.