foundry_dev_tools.utils.s3 module#

Custom foundry boto3 credential provider used by the FoundryRestClient.

class foundry_dev_tools.utils.s3.CustomFoundryCredentialProvider[source]#

Bases: CredentialProvider

Boto3 credential provider for s3 credentials.

METHOD = 'foundry'#
CANONICAL_NAME = 'foundry'#
__init__(s3_client, session=None)[source]#
Parameters:
  • s3_client (S3Client)

  • session (botocore.session.Session | None)

load()[source]#

Return the credentials from FoundryRestClient.

Return type:

DeferredRefreshableCredentials

foundry_dev_tools.utils.s3.parse_s3_credentials_response(requests_response_text)[source]#

Parses the AssumeRoleWithWebIdentity XML response.

Parameters:

requests_response_text (str)

Return type:

dict