Class: Aws::IAM::Types::TagPolicyRequest

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

Overview

Note:

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

{
  policy_arn: "arnType", # required
  tags: [ # required
    {
      key: "tagKeyType", # required
      value: "tagValueType", # required
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#policy_arnString

The ARN of the IAM customer managed policy to which you want to add tags.

This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

Returns:

  • (String)


11194
11195
11196
11197
11198
11199
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 11194

class TagPolicyRequest < Struct.new(
  :policy_arn,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

The list of tags that you want to attach to the IAM customer managed policy. Each tag consists of a key name and an associated value.

Returns:



11194
11195
11196
11197
11198
11199
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 11194

class TagPolicyRequest < Struct.new(
  :policy_arn,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end