Package-level declarations

Types

Link copied to clipboard
interface EcrClient : SdkClient

Amazon Elastic Container Registry (Amazon ECR) is a managed container image registry service. Customers can use the familiar Docker CLI, or their preferred client, to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry for your Docker or Open Container Initiative (OCI) images. Amazon ECR supports private repositories with resource-based permissions using IAM so that specific users or Amazon EC2 instances can access repositories and images.

Properties

Link copied to clipboard
const val SdkVersion: String
Link copied to clipboard
Link copied to clipboard
const val ServiceId: String

Functions

Link copied to clipboard

Checks the availability of one or more image layers in a repository.

Link copied to clipboard

Deletes a list of specified images within a repository. Images are specified with either an imageTag or imageDigest.

Link copied to clipboard
inline suspend fun EcrClient.batchGetImage(crossinline block: BatchGetImageRequest.Builder.() -> Unit): BatchGetImageResponse

Gets detailed information for an image. Images are specified with either an imageTag or imageDigest.

Link copied to clipboard

Gets the scanning configuration for one or more repositories.

Link copied to clipboard

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.

Link copied to clipboard

Creates a pull through cache rule. A pull through cache rule provides a way to cache images from an upstream registry source in your Amazon ECR private registry. For more information, see Using pull through cache rules in the Amazon Elastic Container Registry User Guide.

Link copied to clipboard

Creates a repository. For more information, see Amazon ECR repositories in the Amazon Elastic Container Registry User Guide.

Link copied to clipboard

Deletes the lifecycle policy associated with the specified repository.

Link copied to clipboard

Deletes a pull through cache rule.

Link copied to clipboard

Deletes the registry permissions policy.

Link copied to clipboard

Deletes a repository. If the repository isn't empty, you must either delete the contents of the repository or use the force option to delete the repository and have Amazon ECR delete all of its contents on your behalf.

Link copied to clipboard

Deletes the repository policy associated with the specified repository.

Link copied to clipboard

Returns the replication status for a specified image.

Link copied to clipboard

Returns metadata about the images in a repository.

Link copied to clipboard

Returns the scan findings for the specified image.

Link copied to clipboard

Returns the pull through cache rules for a registry.

Link copied to clipboard

Describes the settings for a registry. The replication configuration for a repository can be created or updated with the PutReplicationConfiguration API action.

Link copied to clipboard

Describes image repositories in a registry.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Retrieves the lifecycle policy for the specified repository.

Link copied to clipboard

Retrieves the results of the lifecycle policy preview request for the specified repository.

Link copied to clipboard

Retrieves the permissions policy for a registry.

Link copied to clipboard

Retrieves the scanning configuration for a registry.

Link copied to clipboard

Retrieves the repository policy for the specified repository.

Link copied to clipboard

Notifies Amazon ECR that you intend to upload an image layer.

Link copied to clipboard
inline suspend fun EcrClient.listImages(crossinline block: ListImagesRequest.Builder.() -> Unit): ListImagesResponse

Lists all the image IDs for the specified repository.

Link copied to clipboard

List the tags for an Amazon ECR resource.

Link copied to clipboard
inline suspend fun EcrClient.putImage(crossinline block: PutImageRequest.Builder.() -> Unit): PutImageResponse

Creates or updates the image manifest and tags associated with an image.

Link copied to clipboard

The PutImageScanningConfiguration API is being deprecated, in favor of specifying the image scanning configuration at the registry level. For more information, see PutRegistryScanningConfiguration.

Link copied to clipboard

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.

Link copied to clipboard

Creates or updates the lifecycle policy for the specified repository. For more information, see Lifecycle policy template.

Link copied to clipboard

Creates or updates the permissions policy for your registry.

Link copied to clipboard

Creates or updates the scanning configuration for your private registry.

Link copied to clipboard

Creates or updates the replication configuration for a registry. The existing replication configuration for a repository can be retrieved with the DescribeRegistry API action. The first time the PutReplicationConfiguration API is called, a service-linked IAM role is created in your account for the replication process. For more information, see Using service-linked roles for Amazon ECR in the Amazon Elastic Container Registry User Guide.

Link copied to clipboard

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.

Link copied to clipboard

Starts an image vulnerability scan. An image scan can only be started once per 24 hours 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.

Link copied to clipboard

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.

Link copied to clipboard
inline suspend fun EcrClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

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.

Link copied to clipboard
inline suspend fun EcrClient.untagResource(crossinline block: UntagResourceRequest.Builder.() -> Unit): UntagResourceResponse

Deletes specified tags from a resource.

Link copied to clipboard

Updates an existing pull through cache rule.

Link copied to clipboard

Uploads an image layer part to Amazon ECR.

Link copied to clipboard

Validates an existing pull through cache rule for an upstream registry that requires authentication. This will retrieve the contents of the Amazon Web Services Secrets Manager secret, verify the syntax, and then validate that authentication to the upstream registry is successful.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.