aws_ecr
Summary
Functions
-
batch_check_layer_availability(Client, Input)
Checks the availability of one or more image layers in a repository.
- batch_check_layer_availability(Client, Input, Options)
-
batch_delete_image(Client, Input)
Deletes a list of specified images within a repository.
- batch_delete_image(Client, Input, Options)
-
batch_get_image(Client, Input)
Gets detailed information for an image.
- batch_get_image(Client, Input, Options)
-
complete_layer_upload(Client, Input)
Informs Amazon ECR that the image layer upload has completed for a specified registry, repository name, and upload ID.
- complete_layer_upload(Client, Input, Options)
-
create_repository(Client, Input)
Creates a repository.
- create_repository(Client, Input, Options)
-
delete_lifecycle_policy(Client, Input)
Deletes the lifecycle policy associated with the specified repository.
- delete_lifecycle_policy(Client, Input, Options)
-
delete_repository(Client, Input)
Deletes a repository.
- delete_repository(Client, Input, Options)
-
delete_repository_policy(Client, Input)
Deletes the repository policy associated with the specified repository.
- delete_repository_policy(Client, Input, Options)
-
describe_image_scan_findings(Client, Input)
Returns the scan findings for the specified image.
- describe_image_scan_findings(Client, Input, Options)
-
describe_images(Client, Input)
Returns metadata about the images in a repository.
- describe_images(Client, Input, Options)
-
describe_repositories(Client, Input)
Describes image repositories in a registry.
- describe_repositories(Client, Input, Options)
-
get_authorization_token(Client, Input)
Retrieves an authorization token.
- get_authorization_token(Client, Input, Options)
-
get_download_url_for_layer(Client, Input)
Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer.
- get_download_url_for_layer(Client, Input, Options)
-
get_lifecycle_policy(Client, Input)
Retrieves the lifecycle policy for the specified repository.
- get_lifecycle_policy(Client, Input, Options)
-
get_lifecycle_policy_preview(Client, Input)
Retrieves the results of the lifecycle policy preview request for the specified repository.
- get_lifecycle_policy_preview(Client, Input, Options)
-
get_repository_policy(Client, Input)
Retrieves the repository policy for the specified repository.
- get_repository_policy(Client, Input, Options)
-
initiate_layer_upload(Client, Input)
Notifies Amazon ECR that you intend to upload an image layer.
- initiate_layer_upload(Client, Input, Options)
-
list_images(Client, Input)
Lists all the image IDs for the specified repository.
- list_images(Client, Input, Options)
-
list_tags_for_resource(Client, Input)
List the tags for an Amazon ECR resource.
- list_tags_for_resource(Client, Input, Options)
-
put_image(Client, Input)
Creates or updates the image manifest and tags associated with an image.
- put_image(Client, Input, Options)
-
put_image_scanning_configuration(Client, Input)
Updates the image scanning configuration for the specified repository.
- put_image_scanning_configuration(Client, Input, Options)
-
put_image_tag_mutability(Client, Input)
Updates the image tag mutability settings for the specified repository.
- put_image_tag_mutability(Client, Input, Options)
-
put_lifecycle_policy(Client, Input)
Creates or updates the lifecycle policy for the specified repository.
- put_lifecycle_policy(Client, Input, Options)
-
set_repository_policy(Client, Input)
Applies a repository policy to the specified repository to control access permissions.
- set_repository_policy(Client, Input, Options)
-
start_image_scan(Client, Input)
Starts an image vulnerability scan.
- start_image_scan(Client, Input, Options)
-
start_lifecycle_policy_preview(Client, Input)
Starts a preview of a lifecycle policy for the specified repository.
- start_lifecycle_policy_preview(Client, Input, Options)
-
tag_resource(Client, Input)
Adds specified tags to a resource with the specified ARN.
- tag_resource(Client, Input, Options)
-
untag_resource(Client, Input)
Deletes specified tags from a resource.
- untag_resource(Client, Input, Options)
-
upload_layer_part(Client, Input)
Uploads an image layer part to Amazon ECR.
- upload_layer_part(Client, Input, Options)
Functions
batch_check_layer_availability(Client, Input)
Checks the availability of one or more image layers in a repository.
When an image is pushed to a repository, each image layer is checked to verify if it has been uploaded before. If it has been uploaded, then the image layer is skipped.
docker
CLI to pull, tag, and push images.
batch_check_layer_availability(Client, Input, Options)
batch_delete_image(Client, Input)
Deletes a list of specified images within a repository. Images are
specified with either an imageTag
or
imageDigest
.
You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.
You can completely delete an image (and all of its tags) by specifying the image's digest in your request.batch_delete_image(Client, Input, Options)
batch_get_image(Client, Input)
Gets detailed information for an image. Images are specified with
either an imageTag
or imageDigest
.
batch_get_image(Client, Input, Options)
complete_layer_upload(Client, Input)
Informs Amazon ECR that the image layer upload has completed for a
specified registry, repository name, and upload ID. You can optionally
provide a sha256
digest of the image layer for data
validation purposes.
When an image is pushed, the CompleteLayerUpload API is called once per each new image layer to verify that the upload has completed.
docker
CLI to pull, tag, and push images.
complete_layer_upload(Client, Input, Options)
create_repository(Client, Input)
Creates a repository. For more information, see Amazon ECR Repositories in the Amazon Elastic Container Registry User Guide.
create_repository(Client, Input, Options)
delete_lifecycle_policy(Client, Input)
Deletes the lifecycle policy associated with the specified repository.
delete_lifecycle_policy(Client, Input, Options)
delete_repository(Client, Input)
Deletes a repository. If the repository contains images, you must
either delete all images in the repository or use the force
option to delete the repository.
delete_repository(Client, Input, Options)
delete_repository_policy(Client, Input)
Deletes the repository policy associated with the specified repository.
delete_repository_policy(Client, Input, Options)
describe_image_scan_findings(Client, Input)
Returns the scan findings for the specified image.
describe_image_scan_findings(Client, Input, Options)
describe_images(Client, Input)
Returns metadata about the images in a repository.
docker images
command shows the uncompressed image size,
so it may return a larger image size than the image sizes returned by
DescribeImages.
describe_images(Client, Input, Options)
describe_repositories(Client, Input)
Describes image repositories in a registry.
describe_repositories(Client, Input, Options)
get_authorization_token(Client, Input)
Retrieves an authorization token. An authorization token represents your IAM authentication credentials and can be used to access any Amazon ECR registry that your IAM principal has access to. The authorization token is valid for 12 hours.
TheauthorizationToken
returned is a base64 encoded string
that can be decoded and used in a docker login
command to
authenticate to a registry. The AWS CLI offers an
get-login-password
command that simplifies the login process.
For more information, see Registry
Authentication in the Amazon Elastic Container Registry User
Guide.
get_authorization_token(Client, Input, Options)
get_download_url_for_layer(Client, Input)
Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image.
When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer that is not already cached.
docker
CLI to pull, tag, and push images.
get_download_url_for_layer(Client, Input, Options)
get_lifecycle_policy(Client, Input)
Retrieves the lifecycle policy for the specified repository.
get_lifecycle_policy(Client, Input, Options)
get_lifecycle_policy_preview(Client, Input)
Retrieves the results of the lifecycle policy preview request for the specified repository.
get_lifecycle_policy_preview(Client, Input, Options)
get_repository_policy(Client, Input)
Retrieves the repository policy for the specified repository.
get_repository_policy(Client, Input, Options)
initiate_layer_upload(Client, Input)
Notifies Amazon ECR that you intend to upload an image layer.
When an image is pushed, the InitiateLayerUpload API is called once per image layer that has not already been uploaded. Whether or not an image layer has been uploaded is determined by the BatchCheckLayerAvailability API action.
docker
CLI to pull, tag, and push images.
initiate_layer_upload(Client, Input, Options)
list_images(Client, Input)
Lists all the image IDs for the specified repository.
You can filter images based on whether or not they are tagged by using thetagStatus
filter and specifying either TAGGED
,
UNTAGGED
or ANY
. For example, you can filter
your results to return only UNTAGGED
images and then pipe
that result to a BatchDeleteImage operation to delete them. Or, you
can filter your results to return only TAGGED
images to list
all of the tags in your repository.
list_images(Client, Input, Options)
list_tags_for_resource(Client, Input)
List the tags for an Amazon ECR resource.
list_tags_for_resource(Client, Input, Options)
put_image(Client, Input)
Creates or updates the image manifest and tags associated with an image.
When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags associated with the image.
docker
CLI to pull, tag, and push images.
put_image(Client, Input, Options)
put_image_scanning_configuration(Client, Input)
Updates the image scanning configuration for the specified repository.
put_image_scanning_configuration(Client, Input, Options)
put_image_tag_mutability(Client, Input)
Updates the image tag mutability settings for the specified repository. For more information, see Image Tag Mutability in the Amazon Elastic Container Registry User Guide.
put_image_tag_mutability(Client, Input, Options)
put_lifecycle_policy(Client, Input)
Creates or updates the lifecycle policy for the specified repository. For more information, see Lifecycle Policy Template.
put_lifecycle_policy(Client, Input, Options)
set_repository_policy(Client, Input)
Applies a repository policy to the specified repository to control access permissions. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
set_repository_policy(Client, Input, Options)
start_image_scan(Client, Input)
Starts an image vulnerability scan. An image scan can only be started once per day on an individual image. This limit includes if an image was scanned on initial push. For more information, see Image Scanning in the Amazon Elastic Container Registry User Guide.
start_image_scan(Client, Input, Options)
start_lifecycle_policy_preview(Client, Input)
Starts a preview of a lifecycle policy for the specified repository. This allows you to see the results before associating the lifecycle policy with the repository.
start_lifecycle_policy_preview(Client, Input, Options)
tag_resource(Client, Input)
Adds specified tags to a resource with the specified ARN. Existing tags on a resource are not changed if they are not specified in the request parameters.
tag_resource(Client, Input, Options)
untag_resource(Client, Input)
Deletes specified tags from a resource.
untag_resource(Client, Input, Options)
upload_layer_part(Client, Input)
Uploads an image layer part to Amazon ECR.
When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API is called once per each new image layer part.
docker
CLI to pull, tag, and push images.