Interface CfnAutoScalingGroup.TagPropertyProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAutoScalingGroup.TagPropertyProperty.Jsii$Proxy
Enclosing class:
CfnAutoScalingGroup

@Stability(Stable) public static interface CfnAutoScalingGroup.TagPropertyProperty extends software.amazon.jsii.JsiiSerializable
A structure that specifies a tag for the Tags property of AWS::AutoScaling::AutoScalingGroup resource.

For more information, see Tag Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide . You can find a sample template snippet in the Examples section of the AWS::AutoScaling::AutoScalingGroup resource.

CloudFormation adds the following tags to all Auto Scaling groups and associated instances:

  • aws:cloudformation:stack-name
  • aws:cloudformation:stack-id
  • aws:cloudformation:logical-id

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.autoscaling.*;
 TagPropertyProperty tagPropertyProperty = TagPropertyProperty.builder()
         .key("key")
         .propagateAtLaunch(false)
         .value("value")
         .build();