aws-cdk-lib.aws_ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty

interface SpotFleetTagSpecificationProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnSpotFleet.SpotFleetTagSpecificationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnSpotFleet_SpotFleetTagSpecificationProperty
Javasoftware.amazon.awscdk.services.ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty
Pythonaws_cdk.aws_ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnSpotFleet » SpotFleetTagSpecificationProperty

The tags for a Spot Fleet resource.

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 spotFleetTagSpecificationProperty: ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty = {
  resourceType: 'resourceType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
resourceType?stringThe type of resource.
tags?CfnTag[]The tags.

resourceType?

Type: string (optional)

The type of resource.

Currently, the only resource type that is supported is instance . To tag the Spot Fleet request on creation, use the TagSpecifications parameter in [SpotFleetRequestConfigData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html) .


tags?

Type: CfnTag[] (optional)

The tags.