Class: Aws::S3::ExpressCredentials Private
- Inherits:
-
Object
- Object
- Aws::S3::ExpressCredentials
- 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
- #client ⇒ S3::Client readonly private
Class Method Summary collapse
- .create_session_options ⇒ Object private
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ExpressCredentials
constructor
private
A new instance of ExpressCredentials.
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( = {}) @client = [:client] @create_session_params = {} .each_pair do |key, value| if self.class..include?(key) @create_session_params[key] = value end end @async_refresh = true super end |
Instance Attribute Details
#client ⇒ S3::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.
28 29 30 |
# File 'lib/aws-sdk-s3/express_credentials.rb', line 28 def client @client end |
Class Method Details
.create_session_options ⇒ Object
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 @cso ||= begin input = S3::Client.api.operation(:create_session).input Set.new(input.shape.member_names) end end |