Class: Aws::STS::Types::GetScopedCredentialsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::STS::Types::GetScopedCredentialsRequest
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-sts/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#duration_seconds ⇒ Integer
The duration, in seconds, of the resulting scoped down credentials.
-
#minimum_session_token_size ⇒ Integer
The minimum size, in bytes, of the session token that STS issues for the request.
-
#policy ⇒ String
An IAM policy in JSON format that you want to use as a scope down policy.
-
#scoped_session_description ⇒ String
A caller-supplied description of the scoped session.
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.
1627 1628 1629 1630 1631 1632 1633 1634 |
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1627 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.
1627 1628 1629 1630 1631 1632 1633 1634 |
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1627 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.
PackedPolicyTooLarge.
If the document is not valid IAM policy JSON, the request fails with
MalformedPolicyDocument.
1627 1628 1629 1630 1631 1632 1633 1634 |
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1627 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.
1627 1628 1629 1630 1631 1632 1633 1634 |
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1627 class GetScopedCredentialsRequest < Struct.new( :policy, :duration_seconds, :minimum_session_token_size, :scoped_session_description) SENSITIVE = [] include Aws::Structure end |