@Stability(value=Stable)
public static interface CfnAutoScalingGroup.TagPropertyProperty
extends software.amazon.jsii.JsiiSerializable
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:
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAutoScalingGroup.TagPropertyProperty.Builder
A builder for
CfnAutoScalingGroup.TagPropertyProperty |
static class |
CfnAutoScalingGroup.TagPropertyProperty.Jsii$Proxy
An implementation for
CfnAutoScalingGroup.TagPropertyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAutoScalingGroup.TagPropertyProperty.Builder |
builder() |
String |
getKey()
The tag key.
|
Object |
getPropagateAtLaunch()
Set to `true` if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group.
|
String |
getValue()
The tag value.
|
@Stability(value=Stable) @NotNull String getKey()
@Stability(value=Stable) @NotNull Object getPropagateAtLaunch()
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.
@Stability(value=Stable) @NotNull String getValue()
@Stability(value=Stable) static CfnAutoScalingGroup.TagPropertyProperty.Builder builder()
Copyright © 2022. All rights reserved.