aws-cdk-lib.aws_ec2.CfnCapacityReservation.TagSpecificationProperty

interface TagSpecificationProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnCapacityReservation.TagSpecificationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnCapacityReservation_TagSpecificationProperty
Javasoftware.amazon.awscdk.services.ec2.CfnCapacityReservation.TagSpecificationProperty
Pythonaws_cdk.aws_ec2.CfnCapacityReservation.TagSpecificationProperty
TypeScript aws-cdk-lib » 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 { aws_ec2 as ec2 } from 'aws-cdk-lib';
const tagSpecificationProperty: ec2.CfnCapacityReservation.TagSpecificationProperty = {
  resourceType: 'resourceType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
resourceType?stringThe type of resource to tag.
tags?CfnTag[]The tags to apply to the resource.

resourceType?

Type: string (optional)

The type of resource to tag.

Specify capacity-reservation .


tags?

Type: CfnTag[] (optional)

The tags to apply to the resource.