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

Class: Aws::EventBridge::Types::TagResourceRequest

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

Overview

Note:

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

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

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

The ARN of the rule that you're adding tags to.

Returns:

  • (String)


2245
2246
2247
2248
2249
# File 'gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/types.rb', line 2245

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

#tagsArray<Types::Tag>

The list of key-value pairs to associate with the rule.

Returns:



2245
2246
2247
2248
2249
# File 'gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/types.rb', line 2245

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