Public Instance Aliases
| aws_auth | -> | aws_sdk_authentication |
Public Instance methods
aws_sdk_authentication( credentials: AwsSdkAuthentication.credentials(@options.aws_profile), region: AwsSdkAuthentication.region(@options.aws_profile), **options )
returns a session which will use the AWS credentials provided by your AWS system configuration.
session = HTTPX.plugin(:aws_sdk_authentication) auth_session = session.aws_authentication # OR auth_session = session.aws_authentication(credentials: Aws::Credentials.new('akid', 'secret')) auth_session.get("http://...")
[show source]
# File lib/httpx/plugins/aws_sdk_authentication.rb 96 def aws_sdk_authentication( 97 credentials: AwsSdkAuthentication.credentials(@options.aws_profile), 98 region: AwsSdkAuthentication.region(@options.aws_profile), 99 **options 100 ) 101 aws_sigv4_authentication( 102 credentials: credentials, 103 region: region, 104 provider_prefix: "aws", 105 header_provider_field: "amz", 106 **options 107 ) 108 end