interface TargetProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.SSM.CfnAssociationPropsMixin.TargetProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsssm#CfnAssociationPropsMixin_TargetProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ssm.CfnAssociationPropsMixin.TargetProperty |
Python | aws_cdk.cfn_property_mixins.aws_ssm.CfnAssociationPropsMixin.TargetProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ssm » CfnAssociationPropsMixin » TargetProperty |
Target is a property of the AWS::SSM::Association resource that specifies the targets for an SSM document in Systems Manager . You can target all instances in an AWS account by specifying the InstanceIds key with a value of * . To view a JSON and a YAML example that targets all instances, see the example "Create an association for all managed instances in an AWS account " later in this page.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from '@aws-cdk/cfn-property-mixins';
const targetProperty: ssm.CfnAssociationPropsMixin.TargetProperty = {
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 | IAuto | IInstance)[] | 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 | IAuto | IInstance)[]
(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