Interface CfnCapacityReservationFleet.TagSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCapacityReservationFleet.TagSpecificationProperty.Jsii$Proxy
- Enclosing class:
- CfnCapacityReservationFleet
@Stability(Stable)
public static interface CfnCapacityReservationFleet.TagSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
The tags to apply to a resource when the resource is being created.
When you specify a tag, you must specify the resource type to tag, otherwise the request will fail.
The
Valid Values
lists all the resource types that can be tagged. However, the action you're using might not support tagging all of these resource types. If you try to tag a resource type that is unsupported for the action you're using, you'll get an error.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; TagSpecificationProperty tagSpecificationProperty = TagSpecificationProperty.builder() .resourceType("resourceType") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnCapacityReservationFleet.TagSpecificationProperty
static final class
An implementation forCfnCapacityReservationFleet.TagSpecificationProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceType
The type of resource to tag on creation. Specifycapacity-reservation-fleet
.To tag a resource after it has been created, see CreateTags .
-
getTags
The tags to apply to the resource. -
builder
-