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

Class: Aws::Route53::Types::ChangeTagsForResourceRequest

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

Overview

Note:

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

{
  resource_type: "healthcheck", # required, accepts healthcheck, hostedzone
  resource_id: "TagResourceId", # required
  add_tags: [
    {
      key: "TagKey",
      value: "TagValue",
    },
  ],
  remove_tag_keys: ["TagKey"],
}

A complex type that contains information about the tags that you want to add, edit, or delete.

Instance Attribute Summary collapse

Instance Attribute Details

#add_tagsArray<Types::Tag>

A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone and/or the tags that you want to edit Value for.

You can add a maximum of 10 tags to a health check or a hosted zone.

Returns:



727
728
729
730
731
732
733
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 727

class ChangeTagsForResourceRequest < Struct.new(
  :resource_type,
  :resource_id,
  :add_tags,
  :remove_tag_keys)
  include Aws::Structure
end

#remove_tag_keysArray<String>

A complex type that contains a list of the tags that you want to delete from the specified health check or hosted zone. You can specify up to 10 keys.

Returns:

  • (Array<String>)


727
728
729
730
731
732
733
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 727

class ChangeTagsForResourceRequest < Struct.new(
  :resource_type,
  :resource_id,
  :add_tags,
  :remove_tag_keys)
  include Aws::Structure
end

#resource_idString

The ID of the resource for which you want to add, change, or delete tags.

Returns:

  • (String)


727
728
729
730
731
732
733
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 727

class ChangeTagsForResourceRequest < Struct.new(
  :resource_type,
  :resource_id,
  :add_tags,
  :remove_tag_keys)
  include Aws::Structure
end

#resource_typeString

The type of the resource.

  • The resource type for health checks is healthcheck.

  • The resource type for hosted zones is hostedzone.

Returns:

  • (String)


727
728
729
730
731
732
733
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 727

class ChangeTagsForResourceRequest < Struct.new(
  :resource_type,
  :resource_id,
  :add_tags,
  :remove_tag_keys)
  include Aws::Structure
end