Table of Contents

Class CfnAutoScalingGroup.TagPropertyProperty

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 class CfnAutoScalingGroup.TagPropertyProperty : CfnAutoScalingGroup.ITagPropertyProperty
Inheritance
CfnAutoScalingGroup.TagPropertyProperty
Implements
Inherited Members

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

    Constructors

    TagPropertyProperty()

    public TagPropertyProperty()

    Properties

    Key

    The tag key.

    public string Key { get; set; }

    Property Value

    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

    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.

    Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html#cfn-as-tags-PropagateAtLaunch

    Value

    The tag value.

    public string Value { get; set; }

    Property Value

    string

    Remarks