Class: AWS::STS::FederatedSession

Inherits:
Session
  • Object
show all
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

Attributes inherited from Session

#credentials, #expires_at

Instance Attribute Details

#packed_policy_sizeInteger (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.

Returns:

  • (Integer)


45
46
47
# File 'lib/aws/sts/federated_session.rb', line 45

def packed_policy_size
  @packed_policy_size
end

#user_arnString (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.

Returns:

  • (String)


38
39
40
# File 'lib/aws/sts/federated_session.rb', line 38

def user_arn
  @user_arn
end

#user_idString (readonly)

The string identifying the federated user associated with the session, similar to the UserId of an IAM user.

Returns:

  • (String)


28
29
30
# File 'lib/aws/sts/federated_session.rb', line 28

def user_id
  @user_id
end