Class: Aws::Crt::Auth::StaticCredentialsProvider
- Inherits:
-
Object
- Object
- Aws::Crt::Auth::StaticCredentialsProvider
- Includes:
- ManagedNative
- Defined in:
- lib/aws-crt/auth/static_credentials_provider.rb
Overview
Utility class for Credentials.
Instance Method Summary collapse
-
#initialize(access_key_id, secret_access_key, session_token = nil) ⇒ StaticCredentialsProvider
constructor
A new instance of StaticCredentialsProvider.
Methods included from ManagedNative
included, #manage_native, #native, #native_set?, #release
Constructor Details
#initialize(access_key_id, secret_access_key, session_token = nil) ⇒ StaticCredentialsProvider
Returns a new instance of StaticCredentialsProvider.
52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/aws-crt/auth/static_credentials_provider.rb', line 52 def initialize(access_key_id, secret_access_key, session_token = nil) = StaticCredentialsProviderOptions.new( access_key_id, secret_access_key, session_token ) manage_native do Aws::Crt::Native.credentials_provider_static_new( .native ) end end |