Class: Aws::S3::Types::SessionCredentials

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-s3/types.rb

Overview

The established temporary security credentials of the session.

<note markdown=“1”> **Directory buckets** - These session credentials are only supported for the authentication and authorization of Zonal endpoint APIs on directory buckets.

</note>

Constant Summary collapse

SENSITIVE =
[:secret_access_key, :session_token]

Instance Attribute Summary collapse

Instance Attribute Details

#access_key_idString

A unique identifier that’s associated with a secret access key. The access key ID and the secret access key are used together to sign programmatic Amazon Web Services requests cryptographically.

Returns:

  • (String)


16162
16163
16164
16165
16166
16167
16168
16169
# File 'lib/aws-sdk-s3/types.rb', line 16162

class SessionCredentials < Struct.new(
  :access_key_id,
  :secret_access_key,
  :session_token,
  :expiration)
  SENSITIVE = [:secret_access_key, :session_token]
  include Aws::Structure
end

#expirationTime

Temporary security credentials expire after a specified interval. After temporary credentials expire, any calls that you make with those credentials will fail. So you must generate a new set of temporary credentials. Temporary credentials cannot be extended or refreshed beyond the original specified interval.

Returns:

  • (Time)


16162
16163
16164
16165
16166
16167
16168
16169
# File 'lib/aws-sdk-s3/types.rb', line 16162

class SessionCredentials < Struct.new(
  :access_key_id,
  :secret_access_key,
  :session_token,
  :expiration)
  SENSITIVE = [:secret_access_key, :session_token]
  include Aws::Structure
end

#secret_access_keyString

A key that’s used with the access key ID to cryptographically sign programmatic Amazon Web Services requests. Signing a request identifies the sender and prevents the request from being altered.

Returns:

  • (String)


16162
16163
16164
16165
16166
16167
16168
16169
# File 'lib/aws-sdk-s3/types.rb', line 16162

class SessionCredentials < Struct.new(
  :access_key_id,
  :secret_access_key,
  :session_token,
  :expiration)
  SENSITIVE = [:secret_access_key, :session_token]
  include Aws::Structure
end

#session_tokenString

A part of the temporary security credentials. The session token is used to validate the temporary security credentials.

Returns:

  • (String)


16162
16163
16164
16165
16166
16167
16168
16169
# File 'lib/aws-sdk-s3/types.rb', line 16162

class SessionCredentials < Struct.new(
  :access_key_id,
  :secret_access_key,
  :session_token,
  :expiration)
  SENSITIVE = [:secret_access_key, :session_token]
  include Aws::Structure
end