aws-cdk-lib.aws_autoscaling.CfnAutoScalingGroup.TagPropertyProperty

interface TagPropertyProperty

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.CfnAutoScalingGroup.TagPropertyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#CfnAutoScalingGroup_TagPropertyProperty
Javasoftware.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.TagPropertyProperty
Pythonaws_cdk.aws_autoscaling.CfnAutoScalingGroup.TagPropertyProperty
TypeScript aws-cdk-lib » aws_autoscaling » CfnAutoScalingGroup » TagPropertyProperty

A structure that specifies a tag for the Tags property of AWS::AutoScaling::AutoScalingGroup resource.

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:

  • aws:cloudformation:stack-name
  • aws:cloudformation:stack-id
  • aws:cloudformation:logical-id

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';
const tagPropertyProperty: autoscaling.CfnAutoScalingGroup.TagPropertyProperty = {
  key: 'key',
  propagateAtLaunch: false,
  value: 'value',
};

Properties

NameTypeDescription
keystringThe tag key.
propagateAtLaunchboolean | IResolvableSet to true if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group.
valuestringThe tag value.

key

Type: string

The tag key.


propagateAtLaunch

Type: boolean | IResolvable

Set to true if you want CloudFormation to copy the tag to EC2 instances that are launched as part of the Auto Scaling group.

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

Type: string

The tag value.