Interface CfnAutoScalingGroup.ITagPropertyProperty
A structure that specifies a tag for the Tags property of AWS::AutoScaling::AutoScalingGroup resource.
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.AWS.AutoScaling.dll
Syntax (csharp)
public interface ITagPropertyProperty
Syntax (vb)
Public Interface 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:
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html
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
Properties
| Key | The tag key. |
| PropagateAtLaunch | Set to |
| Value | The tag value. |
Properties
Key
The tag key.
string Key { get; }
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.
object PropagateAtLaunch { get; }
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.
string Value { get; }
Property Value
System.String