Skip to content
v2.273.0

TagSpecificationProperty Struct ​

Specifies the tags to apply to a resource when the resource is being created for an EC2 Fleet.

TagSpecification is a property of the AWS::EC2::EC2Fleet resource.

Example ​

ts
// 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.CfnEC2Fleet.TagSpecificationProperty = {
  resourceType: 'resourceType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

resourceTypestringresource_typestrresourceTypeStringResourceTypestringResourceType*string#
The type of resource to tag.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags to apply to the resource.