Class: Aws::STS::Types::GetScopedCredentialsResponse

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

Overview

Contains the response to a successful GetScopedCredentials request, including the scoped-down temporary Amazon Web Services credentials and metadata about the resulting session.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#credentials ⇒ Types::Credentials

The temporary security credentials for the scoped down session, which include an access key ID, a secret access key, and a security token.

The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.

Returns:



1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1694

class GetScopedCredentialsResponse < Struct.new(
  :credentials,
  :session_info,
  :session_token_utilization,
  :session_token_size,
  :scoped_policies_count,
  :source_identity)
  SENSITIVE = []
  include Aws::Structure
end

#scoped_policies_count ⇒ Integer

GetScopedCredentials can be called recursively and ScopedPoliciesCount specifies the number of scope down policies applied to the session. Each recursive call adds another scope down policy layer. A maximum of 3 scope down policy layers are allowed per session. If a session already has 3 GetScopedCredentials scope-down policies, a subsequent GetScopedCredentials call that supplies a Policy (attempting to append a fourth scope-down policy) is denied.

Returns:

  • (Integer)


1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1694

class GetScopedCredentialsResponse < Struct.new(
  :credentials,
  :session_info,
  :session_token_utilization,
  :session_token_size,
  :scoped_policies_count,
  :source_identity)
  SENSITIVE = []
  include Aws::Structure
end

#session_info ⇒ Types::ScopedSession

Metadata about the resulting scoped session, including its identifier and ARN. Because the identity does not change, the identifiers reflect the same principal and session name as the calling session.



1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1694

class GetScopedCredentialsResponse < Struct.new(
  :credentials,
  :session_info,
  :session_token_utilization,
  :session_token_size,
  :scoped_policies_count,
  :source_identity)
  SENSITIVE = []
  include Aws::Structure
end

#session_token_size ⇒ Integer

The size, in bytes, of the session token returned in the Credentials for this response.

Returns:

  • (Integer)


1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1694

class GetScopedCredentialsResponse < Struct.new(
  :credentials,
  :session_info,
  :session_token_utilization,
  :session_token_size,
  :scoped_policies_count,
  :source_identity)
  SENSITIVE = []
  include Aws::Structure
end

#session_token_utilization ⇒ Integer

The percentage (0-100) of the maximum allowed session token size that the returned session token consumes.

Returns:

  • (Integer)


1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1694

class GetScopedCredentialsResponse < Struct.new(
  :credentials,
  :session_info,
  :session_token_utilization,
  :session_token_size,
  :scoped_policies_count,
  :source_identity)
  SENSITIVE = []
  include Aws::Structure
end

#source_identity ⇒ String

The source identity of the calling session, carried forward unchanged. This operation never sets or modifies the source identity; it reflects the value established when the source identity was first set. For more information, see Monitor and control actions taken with assumed roles in the IAM User Guide.

Returns:

  • (String)


1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 1694

class GetScopedCredentialsResponse < Struct.new(
  :credentials,
  :session_info,
  :session_token_utilization,
  :session_token_size,
  :scoped_policies_count,
  :source_identity)
  SENSITIVE = []
  include Aws::Structure
end