airflow.providers.amazon.aws.utils.redshift

Module Contents

Functions

build_credentials_block(credentials: botocore.credentials.ReadOnlyCredentials) → str

Generate AWS credentials block for Redshift COPY and UNLOAD

Attributes

log

airflow.providers.amazon.aws.utils.redshift.log[source]
airflow.providers.amazon.aws.utils.redshift.build_credentials_block(credentials: botocore.credentials.ReadOnlyCredentials) str[source]

Generate AWS credentials block for Redshift COPY and UNLOAD commands, as noted in AWS docs https://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-authorization.html#copy-credentials

Parameters

credentials -- ReadOnlyCredentials object from botocore

Returns

str

Was this entry helpful?