AWSEC2TagSpecification

Objective-C

@interface AWSEC2TagSpecification

Swift

class AWSEC2TagSpecification

The tags to apply to a resource when the resource is being created.

  • The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | dedicated-host | fleet | fpga-image | instance | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | natgateway | spot-fleet-request | placement-group | snapshot | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | vpc-endpoint (for interface VPC endpoints)| vpc-endpoint-service (for gateway VPC endpoints) | volume | vpc-flow-log.

    To tag a resource after it has been created, see CreateTags.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2ResourceType resourceType;

    Swift

    var resourceType: AWSEC2ResourceType { get set }
  • The tags to apply to the resource.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2Tag *> *_Nullable tags;

    Swift

    var tags: [AWSEC2Tag]? { get set }