Class CfnAutoScalingGroup.TagPropertyProperty
A structure that specifies a tag for the Tags
property of AWS::AutoScaling::AutoScalingGroup resource.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TagPropertyProperty : Object, CfnAutoScalingGroup.ITagPropertyProperty
Syntax (vb)
Public Class TagPropertyProperty
Inherits Object
Implements CfnAutoScalingGroup.ITagPropertyProperty
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:
ExampleMetadata: fixture=_generated
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"
};
Synopsis
Constructors
TagPropertyProperty() |
Properties
Key | The tag key. |
PropagateAtLaunch | Set to |
Value | The tag value. |
Constructors
TagPropertyProperty()
public TagPropertyProperty()
Properties
Key
The tag key.
public string Key { get; set; }
Property Value
System.String
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.
public object PropagateAtLaunch { get; set; }
Property Value
System.Object
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.
public string Value { get; set; }
Property Value
System.String