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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAutoScalingGroup.TagPropertyProperty
static final class
An implementation forCfnAutoScalingGroup.TagPropertyProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKey
The tag key.- See Also:
-
getPropagateAtLaunch
Set totrue
if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group.Set to
false
if you want the tag attached only to the Auto Scaling group and not copied to any instances launched as part of the Auto Scaling group.- See Also:
-
getValue
The tag value.- See Also:
-
builder
-