AWSEC2TagSpecification

Objective-C

@interface AWSEC2TagSpecification

Swift

class AWSEC2TagSpecification

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

The Valid Values lists all the resource types that can be tagged. However, the action you’re using might not support tagging all of these resource types. If you try to tag a resource type that is unsupported for the action you’re using, you’ll get an error.

  • The type of resource to tag on creation.

    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 }