You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::DeleteTagsRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass DeleteTagsRequest data as a hash:

{
  dry_run: false,
  resources: ["String"], # required
  tags: [
    {
      key: "String",
      value: "String",
    },
  ],
}

Contains the parameters for DeleteTags.

Instance Attribute Summary collapse

Instance Attribute Details

#dry_runBoolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


4974
4975
4976
4977
4978
4979
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 4974

class DeleteTagsRequest < Struct.new(
  :dry_run,
  :resources,
  :tags)
  include Aws::Structure
end

#resourcesArray<String>

The ID of the resource. For example, ami-1a2b3c4d. You can specify more than one resource ID.

Returns:

  • (Array<String>)


4974
4975
4976
4977
4978
4979
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 4974

class DeleteTagsRequest < Struct.new(
  :dry_run,
  :resources,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

One or more tags to delete. If you omit the value parameter, we delete the tag regardless of its value. If you specify this parameter with an empty string as the value, we delete the key only if its value is an empty string.

Returns:



4974
4975
4976
4977
4978
4979
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 4974

class DeleteTagsRequest < Struct.new(
  :dry_run,
  :resources,
  :tags)
  include Aws::Structure
end