File: apig_credentials_configuration.rb

package info (click to toggle)
ruby-aws-sdk-core 3.104.3-3%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,444 kB
  • sloc: ruby: 11,201; makefile: 4
file content (36 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# frozen_string_literal: true

module Aws
  # @api private
  module Plugins
    # @api private
    # Used for APIGateway generated SDKs credentials config
    class APIGCredentialsConfiguration < Seahorse::Client::Plugin

      option(:access_key_id, doc_type: String, docstring: '')

      option(:secret_access_key, doc_type: String, docstring: '')

      option(:session_token, doc_type: String, docstring: '')

      option(:profile, doc_type: String, docstring: '')

      option(:credentials,
        required: false,
        doc_type: 'Aws::CredentialProvider',
        docstring: <<-DOCS
AWS Credentials options is only required when your API uses 
[AWS Signature Version 4](http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html),
more AWS Credentials Configuration Options are available [here](https://github.com/aws/aws-sdk-ruby#configuration).
        DOCS
      ) do |config|
        CredentialProviderChain.new(config).resolve
      end

      option(:instance_profile_credentials_retries, 0)

      option(:instance_profile_credentials_timeout, 1)

    end
  end
end