airflow.providers.amazon.aws.utils.connection_wrapper
¶
Module Contents¶
Classes¶
AWS Connection Wrapper class helper. |
- class airflow.providers.amazon.aws.utils.connection_wrapper.AwsConnectionWrapper(context=None)[source]¶
Bases:
airflow.utils.log.logging_mixin.LoggingMixin
AWS Connection Wrapper class helper.
Use for validate and resolve AWS Connection parameters.
conn
references an Airflow Connection object or AwsConnectionWrapperif it set to
None
than default values would use.- The precedence rules for
region_name
Explicit set (in Hook)
region_name
.Airflow Connection Extra ‘region_name’.
- The precedence rules for
botocore_config
Explicit set (in Hook)
botocore_config
.Construct from Airflow Connection Extra ‘botocore_kwargs’.
The wrapper’s default value
- conn: dataclasses.InitVar[airflow.models.connection.Connection | AwsConnectionWrapper | _ConnectionMetadata | None][source]¶
- get_service_config(service_name)[source]¶
Get AWS Service related config dictionary.
- Parameters
service_name (str) – Name of botocore/boto3 service.
- get_service_endpoint_url(service_name, *, sts_connection_assume=False, sts_test_connection=False)[source]¶