pub struct TagSpecification {
pub resource_type: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Expand description
The tags to apply to a resource when the resource is being created.
Fields§
§resource_type: Option<String>
The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation
| client-vpn-endpoint
| dedicated-host
| dhcp-options
| export-image-task
| export-instance-task
| fleet
| fpga-image
| host-reservation
| import-image-task
| import-snapshot-task
| instance
| internet-gateway
| ipv4pool-ec2
| ipv6pool-ec2
| key-pair
| launch-template
| placement-group
| prefix-list
| launch-template
| natgateway
| network-acl
| security-group
| spot-fleet-request
| snapshot
| subnet
| traffic-mirror-filter
| traffic-mirror-session
| traffic-mirror-target
| transit-gateway
| transit-gateway-attachment
| transit-gateway-route-table
| volume
|vpc
| vpc-endpoint
(for interface and gateway endpoints) | vpc-endpoint-service
(for AWS PrivateLink) | vpc-flow-log
.
To tag a resource after it has been created, see CreateTags.
The tags to apply to the resource.
Trait Implementations§
Source§impl Clone for TagSpecification
impl Clone for TagSpecification
Source§fn clone(&self) -> TagSpecification
fn clone(&self) -> TagSpecification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more