airflow.secrets.base_secrets
¶
Module Contents¶
Classes¶
Abstract base class to retrieve Connection object given a conn_id or Variable given a key |
- class airflow.secrets.base_secrets.BaseSecretsBackend(**kwargs)[source]¶
Bases:
abc.ABC
Abstract base class to retrieve Connection object given a conn_id or Variable given a key
- static build_path(path_prefix: str, secret_id: str, sep: str = '/') str [source]¶
Given conn_id, build path for Secrets Backend
- abstract get_conn_uri(self, conn_id: str) Optional[str] [source]¶
Get conn_uri from Secrets Backend
- Parameters
conn_id (str) -- connection id
- get_connection(self, conn_id: str) Optional[airflow.models.connection.Connection] [source]¶
Return connection object with a given
conn_id
.- Parameters
conn_id (str) -- connection id
- get_connections(self, conn_id: str) List[airflow.models.connection.Connection] [source]¶
Return connection object with a given
conn_id
.- Parameters
conn_id (str) -- connection id