Interface CfnEC2Fleet.TagSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEC2Fleet.TagSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnEC2Fleet
@Stability(Stable)
public static interface CfnEC2Fleet.TagSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the tags to apply to a resource when the resource is being created for an EC2 Fleet.
TagSpecification is a property of the AWS::EC2::EC2Fleet resource.
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 forCfnEC2Fleet.TagSpecificationPropertystatic final classAn implementation forCfnEC2Fleet.TagSpecificationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceType
The type of resource to tag.- See Also:
-
getTags
The tags to apply to the resource.- See Also:
-
builder
-