public static interface LaunchTemplateTagSpecificationRequest.Builder extends SdkPojo, CopyableBuilder<LaunchTemplateTagSpecificationRequest.Builder,LaunchTemplateTagSpecificationRequest>
| Modifier and Type | Method and Description |
|---|---|
LaunchTemplateTagSpecificationRequest.Builder |
resourceType(ResourceType resourceType)
The type of resource to tag.
|
LaunchTemplateTagSpecificationRequest.Builder |
resourceType(String resourceType)
The type of resource to tag.
|
LaunchTemplateTagSpecificationRequest.Builder |
tags(Collection<Tag> tags)
The tags to apply to the resource.
|
LaunchTemplateTagSpecificationRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags to apply to the resource.
|
LaunchTemplateTagSpecificationRequest.Builder |
tags(Tag... tags)
The tags to apply to the resource.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildLaunchTemplateTagSpecificationRequest.Builder resourceType(String resourceType)
The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template,
you can specify tags for the following resource types only: instance | volume |
elastic-gpu | network-interface | spot-instances-request. If the
instance does include the resource type that you specify, the instance launch fails. For example, not all
instance types include an Elastic GPU.
To tag a resource after it has been created, see CreateTags.
resourceType - The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch
template, you can specify tags for the following resource types only: instance |
volume | elastic-gpu | network-interface |
spot-instances-request. If the instance does include the resource type that you specify,
the instance launch fails. For example, not all instance types include an Elastic GPU.
To tag a resource after it has been created, see CreateTags.
ResourceType,
ResourceTypeLaunchTemplateTagSpecificationRequest.Builder resourceType(ResourceType resourceType)
The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template,
you can specify tags for the following resource types only: instance | volume |
elastic-gpu | network-interface | spot-instances-request. If the
instance does include the resource type that you specify, the instance launch fails. For example, not all
instance types include an Elastic GPU.
To tag a resource after it has been created, see CreateTags.
resourceType - The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch
template, you can specify tags for the following resource types only: instance |
volume | elastic-gpu | network-interface |
spot-instances-request. If the instance does include the resource type that you specify,
the instance launch fails. For example, not all instance types include an Elastic GPU.
To tag a resource after it has been created, see CreateTags.
ResourceType,
ResourceTypeLaunchTemplateTagSpecificationRequest.Builder tags(Collection<Tag> tags)
The tags to apply to the resource.
tags - The tags to apply to the resource.LaunchTemplateTagSpecificationRequest.Builder tags(Tag... tags)
The tags to apply to the resource.
tags - The tags to apply to the resource.LaunchTemplateTagSpecificationRequest.Builder tags(Consumer<Tag.Builder>... tags)
The tags to apply to the resource.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually via
Tag.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #tags(List.
tags - a consumer that will call methods on Tag.Builder#tags(java.util.Collection) Copyright © 2023. All rights reserved.