sagemaker.core.partner_app.auth_utils#

Partner App Auth Utils Module

Classes

PartnerAppAuthUtils()

Partner App Auth Utils Class

class sagemaker.core.partner_app.auth_utils.PartnerAppAuthUtils[source]#

Bases: object

Partner App Auth Utils Class

static get_body_header(body: object)[source]#

Calculate the body header for the SigV4 header.

Parameters:

body (object) – Request body

static get_signed_request(sigv4: SigV4Auth, app_arn: str, url: str, method: str, headers: dict, body: object) Tuple[str, Dict[str, str]][source]#

Generate the SigV4 header and add it to the request headers.

Parameters:
  • sigv4 (SigV4Auth) – SigV4Auth object

  • app_arn (str) – Application ARN

  • url (str) – Request URL

  • method (str) – HTTP method

  • headers (dict) – Request headers

  • body (object) – Request body

Returns:

(url, headers)

Return type:

tuple