airflow.providers.amazon.aws.hooks.ecr
¶
Module Contents¶
Classes¶
Helper (frozen dataclass) for storing temporary ECR credentials. |
|
Interact with Amazon Elastic Container Registry (ECR). |
Attributes¶
- class airflow.providers.amazon.aws.hooks.ecr.EcrCredentials[source]¶
Helper (frozen dataclass) for storing temporary ECR credentials.
- expires_at: datetime.datetime[source]¶
- class airflow.providers.amazon.aws.hooks.ecr.EcrHook(**kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook
Interact with Amazon Elastic Container Registry (ECR). Provide thin wrapper around
boto3.client("ecr")
.Additional arguments (such as
aws_conn_id
) may be specified and are passed down to the underlying AwsBaseHook.- get_temporary_credentials(registry_ids=None)[source]¶
Get temporary credentials for Amazon ECR.
See also
- Parameters
registry_ids (list[str] | str | None) – Either AWS Account ID or list of AWS Account IDs that are associated with the registries from which credentials are obtained. If you do not specify a registry, the default registry is assumed.
- Returns
list of
airflow.providers.amazon.aws.hooks.ecr.EcrCredentials
, obtained credentials valid for 12 hours.- Return type