public static interface TagSpecification.Builder extends SdkPojo, CopyableBuilder<TagSpecification.Builder,TagSpecification>
| Modifier and Type | Method and Description |
|---|---|
TagSpecification.Builder |
resourceType(ResourceType resourceType)
The type of resource to tag on creation.
|
TagSpecification.Builder |
resourceType(String resourceType)
The type of resource to tag on creation.
|
TagSpecification.Builder |
tags(Collection<Tag> tags)
The tags to apply to the resource.
|
TagSpecification.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags to apply to the resource.
|
TagSpecification.Builder |
tags(Tag... tags)
The tags to apply to the resource.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTagSpecification.Builder resourceType(String resourceType)
The type of resource to tag on creation. The possible values are: capacity-reservation |
carrier-gateway | client-vpn-endpoint | customer-gateway |
dedicated-host | dhcp-options | egress-only-internet-gateway |
elastic-gpu | elastic-ip | export-image-task |
export-instance-task | fleet | fpga-image |
host-reservation | image | import-image-task |
import-snapshot-task | instance | instance-event-window |
internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair
| launch-template | local-gateway-route-table-vpc-association |
natgateway | network-acl | network-insights-analysis |
network-insights-path | network-interface | placement-group |
prefix-list | reserved-instances | route-table |
security-group | security-group-rule | snapshot |
spot-fleet-request | spot-instances-request | subnet |
traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target
| transit-gateway | transit-gateway-attachment |
transit-gateway-multicast-domain | transit-gateway-route-table |
volume | vpc | vpc-endpoint | vpc-endpoint-service |
vpc-flow-log | vpc-peering-connection | vpn-connection |
vpn-gateway.
To tag a resource after it has been created, see CreateTags.
resourceType - The type of resource to tag on creation. The possible values are: capacity-reservation |
carrier-gateway | client-vpn-endpoint | customer-gateway |
dedicated-host | dhcp-options | egress-only-internet-gateway |
elastic-gpu | elastic-ip | export-image-task |
export-instance-task | fleet | fpga-image |
host-reservation | image | import-image-task |
import-snapshot-task | instance | instance-event-window |
internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 |
key-pair | launch-template |
local-gateway-route-table-vpc-association | natgateway |
network-acl | network-insights-analysis | network-insights-path
| network-interface | placement-group | prefix-list |
reserved-instances | route-table | security-group |
security-group-rule | snapshot | spot-fleet-request |
spot-instances-request | subnet | traffic-mirror-filter |
traffic-mirror-session | traffic-mirror-target |
transit-gateway | transit-gateway-attachment |
transit-gateway-multicast-domain | transit-gateway-route-table |
volume | vpc | vpc-endpoint | vpc-endpoint-service
| vpc-flow-log | vpc-peering-connection | vpn-connection |
vpn-gateway.
To tag a resource after it has been created, see CreateTags.
ResourceType,
ResourceTypeTagSpecification.Builder resourceType(ResourceType resourceType)
The type of resource to tag on creation. The possible values are: capacity-reservation |
carrier-gateway | client-vpn-endpoint | customer-gateway |
dedicated-host | dhcp-options | egress-only-internet-gateway |
elastic-gpu | elastic-ip | export-image-task |
export-instance-task | fleet | fpga-image |
host-reservation | image | import-image-task |
import-snapshot-task | instance | instance-event-window |
internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair
| launch-template | local-gateway-route-table-vpc-association |
natgateway | network-acl | network-insights-analysis |
network-insights-path | network-interface | placement-group |
prefix-list | reserved-instances | route-table |
security-group | security-group-rule | snapshot |
spot-fleet-request | spot-instances-request | subnet |
traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target
| transit-gateway | transit-gateway-attachment |
transit-gateway-multicast-domain | transit-gateway-route-table |
volume | vpc | vpc-endpoint | vpc-endpoint-service |
vpc-flow-log | vpc-peering-connection | vpn-connection |
vpn-gateway.
To tag a resource after it has been created, see CreateTags.
resourceType - The type of resource to tag on creation. The possible values are: capacity-reservation |
carrier-gateway | client-vpn-endpoint | customer-gateway |
dedicated-host | dhcp-options | egress-only-internet-gateway |
elastic-gpu | elastic-ip | export-image-task |
export-instance-task | fleet | fpga-image |
host-reservation | image | import-image-task |
import-snapshot-task | instance | instance-event-window |
internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 |
key-pair | launch-template |
local-gateway-route-table-vpc-association | natgateway |
network-acl | network-insights-analysis | network-insights-path
| network-interface | placement-group | prefix-list |
reserved-instances | route-table | security-group |
security-group-rule | snapshot | spot-fleet-request |
spot-instances-request | subnet | traffic-mirror-filter |
traffic-mirror-session | traffic-mirror-target |
transit-gateway | transit-gateway-attachment |
transit-gateway-multicast-domain | transit-gateway-route-table |
volume | vpc | vpc-endpoint | vpc-endpoint-service
| vpc-flow-log | vpc-peering-connection | vpn-connection |
vpn-gateway.
To tag a resource after it has been created, see CreateTags.
ResourceType,
ResourceTypeTagSpecification.Builder tags(Collection<Tag> tags)
The tags to apply to the resource.
tags - The tags to apply to the resource.TagSpecification.Builder tags(Tag... tags)
The tags to apply to the resource.
tags - The tags to apply to the resource.TagSpecification.Builder tags(Consumer<Tag.Builder>... tags)
The tags to apply to the resource.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #tags(List) .tags - a consumer that will call methods on List.Builder #tags(List) Copyright © 2021. All rights reserved.