googleauth - Class Google::Auth::ExternalAccount::AwsRequestSigner (v1.12.1)

Reference documentation and code samples for the googleauth class Google::Auth::ExternalAccount::AwsRequestSigner.

Implements an AWS request signer based on the AWS Signature Version 4 signing process. https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html

Inherits

  • Object

Methods

#generate_signed_request

def generate_signed_request(aws_credentials, original_request) -> hash{string => string}

Generates the signed request for the provided HTTP request for calling an AWS API. This follows the steps described at: https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html

Parameters
  • aws_security_credentials (Hash[string, string]) — A dictionary containing the AWS security credentials.
  • url (string) — The AWS service URL containing the canonical URI and query string.
  • method (string) — The HTTP method used to call this API.
Returns
  • (hash{string => string}) — The AWS signed request dictionary object.

#initialize

def initialize(region_name) -> AwsRequestSigner

Instantiates an AWS request signer used to compute authenticated signed requests to AWS APIs based on the AWS Signature Version 4 signing process.

Parameter
  • region_name (string) — The AWS region to use.
Returns