Class: Aws::S3::ExpressCredentials Private

Inherits:
Object
  • Object
show all
Includes:
CredentialProvider, RefreshingCredentials
Defined in:
lib/aws-sdk-s3/express_credentials.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

SYNC_EXPIRATION_LENGTH =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

1 minute

60
ASYNC_EXPIRATION_LENGTH =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

2 minutes

120

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ExpressCredentials

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ExpressCredentials.



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/aws-sdk-s3/express_credentials.rb', line 15

def initialize(options = {})
  @client = options[:client]
  @create_session_params = {}
  options.each_pair do |key, value|
    if self.class.create_session_options.include?(key)
      @create_session_params[key] = value
    end
  end
  @async_refresh = true
  super
end

Instance Attribute Details

#clientS3::Client (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:



28
29
30
# File 'lib/aws-sdk-s3/express_credentials.rb', line 28

def client
  @client
end

Class Method Details

.create_session_optionsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



45
46
47
48
49
50
# File 'lib/aws-sdk-s3/express_credentials.rb', line 45

def create_session_options
  @cso ||= begin
    input = S3::Client.api.operation(:create_session).input
    Set.new(input.shape.member_names)
  end
end