You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::STS::Types::Tag
- Inherits:
-
Struct
- Object
- Struct
- Aws::STS::Types::Tag
- Defined in:
- (unknown)
Overview
When passing Tag as input to an Aws::Client method, you can use a vanilla Hash:
{
key: "tagKeyType", # required
value: "tagValueType", # required
}
You can pass custom key-value pair attributes when you assume a role or federate a user. These are called session tags. You can then use the session tags to control access to resources. For more information, see Tagging AWS STS Sessions in the IAM User Guide.
Instance Attribute Summary collapse
-
#key ⇒ String
The key for a session tag.
-
#value ⇒ String
The value for a session tag.
Instance Attribute Details
#key ⇒ String
The key for a session tag.
You can pass up to 50 session tags. The plain text session tag keys can’t exceed 128 characters. For these and additional limits, see IAM and STS Character Limits in the IAM User Guide.
#value ⇒ String
The value for a session tag.
You can pass up to 50 session tags. The plain text session tag values can’t exceed 256 characters. For these and additional limits, see IAM and STS Character Limits in the IAM User Guide.