@Stability(value=Stable)
public static interface CfnCapacityReservation.TagSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCapacityReservation.TagSpecificationProperty.Builder
A builder for
CfnCapacityReservation.TagSpecificationProperty |
static class |
CfnCapacityReservation.TagSpecificationProperty.Jsii$Proxy
An implementation for
CfnCapacityReservation.TagSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCapacityReservation.TagSpecificationProperty.Builder |
builder() |
default String |
getResourceType()
The type of resource to tag.
|
default List<CfnTag> |
getTags()
The tags to apply to the resource.
|
@Stability(value=Stable) @Nullable default String getResourceType()
Specify capacity-reservation .
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnCapacityReservation.TagSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.