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

Class: Aws::DirectConnect::Types::TagResourceRequest

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

Overview

Note:

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

{
  resource_arn: "ResourceArn", # required
  tags: [ # required
    {
      key: "TagKey", # required
      value: "TagValue",
    },
  ],
}

Container for the parameters to the TagResource operation.

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

The Amazon Resource Name (ARN) of the Direct Connect resource.

Example: arn:aws:directconnect:us-east-1:123456789012:dxcon/dxcon-fg5678gh

Returns:

  • (String)


2493
2494
2495
2496
2497
# File 'gems/aws-sdk-directconnect/lib/aws-sdk-directconnect/types.rb', line 2493

class TagResourceRequest < Struct.new(
  :resource_arn,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

The list of tags to add.

Returns:



2493
2494
2495
2496
2497
# File 'gems/aws-sdk-directconnect/lib/aws-sdk-directconnect/types.rb', line 2493

class TagResourceRequest < Struct.new(
  :resource_arn,
  :tags)
  include Aws::Structure
end