Class: AWS::STS::FederatedSession
- Defined in:
- lib/aws/sts/federated_session.rb
Overview
Represents a federated session using temporary AWS credentials. Use #new_federated_session to get an instance of this class.
Instance Attribute Summary collapse
-
#packed_policy_size ⇒ Integer
readonly
A percentage value indicating the size of the policy in packed form.
-
#user_arn ⇒ String
readonly
The ARN specifying the federated user associated with the session.
-
#user_id ⇒ String
readonly
The string identifying the federated user associated with the session, similar to the UserId of an IAM user.
Attributes inherited from Session
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ FederatedSession
constructor
A new instance of FederatedSession.
Constructor Details
#initialize(opts = {}) ⇒ FederatedSession
Returns a new instance of FederatedSession.
46 47 48 49 50 51 |
# File 'lib/aws/sts/federated_session.rb', line 46 def initialize(opts = {}) @user_id = opts[:user_id] @user_arn = opts[:user_arn] @packed_policy_size = opts[:packed_policy_size] super end |
Instance Attribute Details
#packed_policy_size ⇒ Integer (readonly)
A percentage value indicating the size of the policy in packed form. Policies for which the packed size is greater than 100% of the allowed value are rejected by the service.
43 44 45 |
# File 'lib/aws/sts/federated_session.rb', line 43 def packed_policy_size @packed_policy_size end |
#user_arn ⇒ String (readonly)
The ARN specifying the federated user associated with the session. For more information about ARNs and how to use them in policies, see Identifiers for IAM Entities in Using AWS Identity and Access Management.
36 37 38 |
# File 'lib/aws/sts/federated_session.rb', line 36 def user_arn @user_arn end |
#user_id ⇒ String (readonly)
The string identifying the federated user associated with the session, similar to the UserId of an IAM user.
26 27 28 |
# File 'lib/aws/sts/federated_session.rb', line 26 def user_id @user_id end |