interface TagPropertyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AutoScaling.CfnAutoScalingGroup.TagPropertyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#CfnAutoScalingGroup_TagPropertyProperty |
Java | software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.TagPropertyProperty |
Python | aws_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
| Name | Type | Description |
|---|---|---|
| key | string | The tag key. |
| propagate | 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. |
| value | string | The 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.

.NET
Go
Java
Python
TypeScript