Interface CfnAutoScalingGroup.ITagPropertyProperty
- Namespace
- Amazon.CDK.AWS.AutoScaling
- Assembly
- Amazon.CDK.AWS.AutoScaling.dll
A structure that specifies a tag for the Tags
property of AWS::AutoScaling::AutoScalingGroup resource.
public interface CfnAutoScalingGroup.ITagPropertyProperty
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AutoScaling;
var tagPropertyProperty = new TagPropertyProperty {
Key = "key",
PropagateAtLaunch = false,
Value = "value"
};
Remarks
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:
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html
ExampleMetadata: fixture=_generated
Properties
Key
The tag key.
string Key { get; }
Property Value
Remarks
PropagateAtLaunch
Set to true
if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group.
object PropagateAtLaunch { get; }
Property Value
Remarks
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.
Value
The tag value.
string Value { get; }