interface TargetsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SSM.Mixins.CfnMaintenanceWindowTargetPropsMixin.TargetsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsssm/mixins#CfnMaintenanceWindowTargetPropsMixin_TargetsProperty |
Java | software.amazon.awscdk.mixins.preview.services.ssm.mixins.CfnMaintenanceWindowTargetPropsMixin.TargetsProperty |
Python | aws_cdk.mixins_preview.aws_ssm.mixins.CfnMaintenanceWindowTargetPropsMixin.TargetsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ssm » mixins » CfnMaintenanceWindowTargetPropsMixin » TargetsProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ssm_mixins } from '@aws-cdk/mixins-preview/aws-ssm';
const targetsProperty: ssm_mixins.CfnMaintenanceWindowTargetPropsMixin.TargetsProperty = {
key: 'key',
values: ['values'],
};
Properties
| Name | Type | Description |
|---|---|---|
| key? | string | User-defined criteria for sending commands that target managed nodes that meet the criteria. |
| values? | string[] | User-defined criteria that maps to Key . |
key?
Type:
string
(optional)
User-defined criteria for sending commands that target managed nodes that meet the criteria.
values?
Type:
string[]
(optional)
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.

.NET
Go
Java
Python
TypeScript