Class: Aws::STS::Types::GetScopedCredentialsRequest

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#duration_seconds ⇒ Integer

The duration, in seconds, of the resulting scoped down credentials. The value can range from 1 second to 129,600 seconds (36 hours).

If you do not specify this value, the scoped down credentials will inherit the calling session's expiration time.

Returns:

  • (Integer)


1715
1716
1717
1718
1719
1720
1721
1722
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1715

class GetScopedCredentialsRequest < Struct.new(
  :policy,
  :duration_seconds,
  :minimum_session_token_size,
  :scoped_session_description)
  SENSITIVE = []
  include Aws::Structure
end

#minimum_session_token_size ⇒ Integer

The minimum size, in bytes, of the session token that STS issues for the request. STS increases the session token to at least this size, regardless of its actual content. The value must not exceed 4,096 bytes. When set to 0 or not specified, the session token size is unchanged.

Returns:

  • (Integer)


1715
1716
1717
1718
1719
1720
1721
1722
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1715

class GetScopedCredentialsRequest < Struct.new(
  :policy,
  :duration_seconds,
  :minimum_session_token_size,
  :scoped_session_description)
  SENSITIVE = []
  include Aws::Structure
end

#policy ⇒ String

An IAM policy in JSON format that you want to use as a scope down policy.

A request must provide at least one of Policy or DurationSeconds. Both parameters are optional individually, but you must specify at least one of them.

The resulting session's permissions are the intersection of the calling session's existing permissions and this scope down policy. You cannot use this scope down policy to grant more permissions than the calling session already has.

The plaintext of the scope down policy cannot exceed 2,048 characters. The JSON policy characters can be any ASCII character from the space character to the end of the valid character list (\u0020 through \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D) characters.

If the session token exceeds the maximum allowed size, GetScopedCredentials returns a PackedPolicyTooLarge error. Reduce the size of the scope down policy and try again.

If the document is not valid IAM policy JSON, GetScopedCredentials returns a MalformedPolicyDocument error. Correct the policy document and try again.

Returns:

  • (String)


1715
1716
1717
1718
1719
1720
1721
1722
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1715

class GetScopedCredentialsRequest < Struct.new(
  :policy,
  :duration_seconds,
  :minimum_session_token_size,
  :scoped_session_description)
  SENSITIVE = []
  include Aws::Structure
end

#scoped_session_description ⇒ String

A caller-supplied description of the scoped session. The value cannot exceed 256 characters. This description is logged to CloudTrail for the request, so you can use it to record the purpose of the scoped session.

Returns:

  • (String)


1715
1716
1717
1718
1719
1720
1721
1722
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1715

class GetScopedCredentialsRequest < Struct.new(
  :policy,
  :duration_seconds,
  :minimum_session_token_size,
  :scoped_session_description)
  SENSITIVE = []
  include Aws::Structure
end