interface SpotFleetTagSpecificationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnSpotFleet.SpotFleetTagSpecificationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnSpotFleet_SpotFleetTagSpecificationProperty |
Java | software.amazon.awscdk.services.ec2.CfnSpotFleet.SpotFleetTagSpecificationProperty |
Python | aws_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
| Name | Type | Description |
|---|---|---|
| resource | string | The type of resource. |
| tags? | Cfn[] | 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:
Cfn[]
(optional)
The tags.

.NET
Go
Java
Python
TypeScript