Interface CfnCapacityReservation.TagSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCapacityReservation.TagSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnCapacityReservation
@Stability(Stable)
public static interface CfnCapacityReservation.TagSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.ec2.*;
TagSpecificationProperty tagSpecificationProperty = TagSpecificationProperty.builder()
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCapacityReservation.TagSpecificationPropertystatic final classAn implementation forCfnCapacityReservation.TagSpecificationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceType
The type of resource to tag.Specify
capacity-reservation.- See Also:
-
getTags
The tags to apply to the resource.- See Also:
-
builder
-