interface TagSpecificationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnCapacityReservation.TagSpecificationProperty |
Java | software.amazon.awscdk.services.ec2.CfnCapacityReservation.TagSpecificationProperty |
Python | aws_cdk.aws_ec2.CfnCapacityReservation.TagSpecificationProperty |
TypeScript | @aws-cdk/aws-ec2 » CfnCapacityReservation » TagSpecificationProperty |
An array of key-value pairs to apply to this resource.
For more information, see Tag .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
const tagSpecificationProperty: ec2.CfnCapacityReservation.TagSpecificationProperty = {
resourceType: 'resourceType',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
resource | string | The type of resource to tag. |
tags? | Cfn [] | The tags to apply to the resource. |
resourceType?
Type:
string
(optional)
The type of resource to tag.
Specify capacity-reservation
.
tags?
Type:
Cfn
[]
(optional)
The tags to apply to the resource.