airflow.contrib.hooks.aws_hook
¶
This module contains Base AWS Hook
Module Contents¶
-
airflow.contrib.hooks.aws_hook.
_parse_s3_config
(config_file_name, config_format='boto', profile=None)[source]¶ -
Parses a config file for s3 credentials. Can currently
-
parse boto, s3cmd.conf and AWS SDK config formats
-
class
airflow.contrib.hooks.aws_hook.
AwsHook
(aws_conn_id='aws_default', verify=None)[source]¶ Bases:
airflow.hooks.base_hook.BaseHook
Interact with AWS. This class is a thin wrapper around the boto3 python library.
-
get_client_type
(self, client_type, region_name=None, config=None)[source]¶ Get the underlying boto3 client using boto3 session
-
get_resource_type
(self, resource_type, region_name=None, config=None)[source]¶ Get the underlying boto3 resource using boto3 session
-