You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::STS::Types::Credentials

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

Overview

AWS credentials for API authentication.

Instance Attribute Summary collapse

Instance Attribute Details

#access_key_idString

The access key ID that identifies the temporary security credentials.

Returns:

  • (String)


615
616
617
618
619
620
621
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 615

class Credentials < Struct.new(
  :access_key_id,
  :secret_access_key,
  :session_token,
  :expiration)
  include Aws::Structure
end

#expirationTime

The date on which the current credentials expire.

Returns:

  • (Time)


615
616
617
618
619
620
621
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 615

class Credentials < Struct.new(
  :access_key_id,
  :secret_access_key,
  :session_token,
  :expiration)
  include Aws::Structure
end

#secret_access_keyString

The secret access key that can be used to sign requests.

Returns:

  • (String)


615
616
617
618
619
620
621
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 615

class Credentials < Struct.new(
  :access_key_id,
  :secret_access_key,
  :session_token,
  :expiration)
  include Aws::Structure
end

#session_tokenString

The token that users must pass to the service API to use the temporary credentials.

Returns:

  • (String)


615
616
617
618
619
620
621
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 615

class Credentials < Struct.new(
  :access_key_id,
  :secret_access_key,
  :session_token,
  :expiration)
  include Aws::Structure
end