Interface CfnAssociation.TargetProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAssociation.TargetProperty.Jsii$Proxy
- Enclosing class:
- CfnAssociation
@Stability(Stable)
public static interface CfnAssociation.TargetProperty
extends software.amazon.jsii.JsiiSerializable
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 "Create an association for all managed instances in an AWS account " on the Examples page.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;
TargetProperty targetProperty = TargetProperty.builder()
.key("key")
.values(List.of("values"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAssociation.TargetPropertystatic final classAn implementation forCfnAssociation.TargetProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKey
User-defined criteria for sending commands that target managed nodes that meet the criteria. -
getValues
User-defined criteria that maps toKey.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.
-
builder
-