@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonECR extends Object implements AmazonECR
AmazonECR
. Convenient method forms pass through to the corresponding overload that
takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
BatchCheckLayerAvailabilityResult |
batchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request)
Check the availability of multiple image layers in a specified registry and repository.
|
BatchDeleteImageResult |
batchDeleteImage(BatchDeleteImageRequest request)
Deletes a list of specified images within a specified repository.
|
BatchGetImageResult |
batchGetImage(BatchGetImageRequest request)
Gets detailed information for specified images within a specified repository.
|
CompleteLayerUploadResult |
completeLayerUpload(CompleteLayerUploadRequest request)
Informs Amazon ECR that the image layer upload has completed for a specified registry, repository name, and
upload ID.
|
CreateRepositoryResult |
createRepository(CreateRepositoryRequest request)
Creates an image repository.
|
DeleteLifecyclePolicyResult |
deleteLifecyclePolicy(DeleteLifecyclePolicyRequest request)
Deletes the specified lifecycle policy.
|
DeleteRepositoryResult |
deleteRepository(DeleteRepositoryRequest request)
Deletes an existing image repository.
|
DeleteRepositoryPolicyResult |
deleteRepositoryPolicy(DeleteRepositoryPolicyRequest request)
Deletes the repository policy from a specified repository.
|
DescribeImagesResult |
describeImages(DescribeImagesRequest request)
Returns metadata about the images in a repository, including image size, image tags, and creation date.
|
DescribeRepositoriesResult |
describeRepositories(DescribeRepositoriesRequest request)
Describes image repositories in a registry.
|
GetAuthorizationTokenResult |
getAuthorizationToken(GetAuthorizationTokenRequest request)
Retrieves a token that is valid for a specified registry for 12 hours.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetDownloadUrlForLayerResult |
getDownloadUrlForLayer(GetDownloadUrlForLayerRequest request)
Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer.
|
GetLifecyclePolicyResult |
getLifecyclePolicy(GetLifecyclePolicyRequest request)
Retrieves the specified lifecycle policy.
|
GetLifecyclePolicyPreviewResult |
getLifecyclePolicyPreview(GetLifecyclePolicyPreviewRequest request)
Retrieves the results of the specified lifecycle policy preview request.
|
GetRepositoryPolicyResult |
getRepositoryPolicy(GetRepositoryPolicyRequest request)
Retrieves the repository policy for a specified repository.
|
InitiateLayerUploadResult |
initiateLayerUpload(InitiateLayerUploadRequest request)
Notify Amazon ECR that you intend to upload an image layer.
|
ListImagesResult |
listImages(ListImagesRequest request)
Lists all the image IDs for a given repository.
|
PutImageResult |
putImage(PutImageRequest request)
Creates or updates the image manifest and tags associated with an image.
|
PutLifecyclePolicyResult |
putLifecyclePolicy(PutLifecyclePolicyRequest request)
Creates or updates a lifecycle policy.
|
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client ("ecr.us-east-1.amazonaws.com").
|
void |
setRegion(Region region)
An alternative to
AmazonECR.setEndpoint(String) , sets the regional endpoint for this client's service
calls. |
SetRepositoryPolicyResult |
setRepositoryPolicy(SetRepositoryPolicyRequest request)
Applies a repository policy on a specified repository to control access permissions.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StartLifecyclePolicyPreviewResult |
startLifecyclePolicyPreview(StartLifecyclePolicyPreviewRequest request)
Starts a preview of the specified lifecycle policy.
|
UploadLayerPartResult |
uploadLayerPart(UploadLayerPartRequest request)
Uploads an image layer part to Amazon ECR.
|
public void setEndpoint(String endpoint)
AmazonECR
Callers can pass in just the endpoint (ex: "ecr.us-east-1.amazonaws.com") or a full URL, including the protocol
(ex: "ecr.us-east-1.amazonaws.com"). If the protocol is not specified here, the default protocol from this
client's ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setEndpoint
in interface AmazonECR
endpoint
- The endpoint (ex: "ecr.us-east-1.amazonaws.com") or a full URL, including the protocol (ex:
"ecr.us-east-1.amazonaws.com") of the region specific AWS endpoint this client will communicate with.public void setRegion(Region region)
AmazonECR
AmazonECR.setEndpoint(String)
, sets the regional endpoint for this client's service
calls. Callers can use this method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setRegion
in interface AmazonECR
region
- The region this client will communicate with. See Region.getRegion(com.amazonaws.regions.Regions)
for accessing a given region. Must not be null and must be a region where the service is available.Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
,
Region.isServiceSupported(String)
public BatchCheckLayerAvailabilityResult batchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request)
AmazonECR
Check the availability of multiple image layers in a specified registry and repository.
This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling
and pushing images. In most cases, you should use the docker
CLI to pull, tag, and push images.
batchCheckLayerAvailability
in interface AmazonECR
public BatchDeleteImageResult batchDeleteImage(BatchDeleteImageRequest request)
AmazonECR
Deletes a list of specified images within a specified repository. Images are specified with either
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.
batchDeleteImage
in interface AmazonECR
request
- Deletes specified images within a specified repository. Images are specified with either the
imageTag
or imageDigest
.public BatchGetImageResult batchGetImage(BatchGetImageRequest request)
AmazonECR
Gets detailed information for specified images within a specified repository. Images are specified with either
imageTag
or imageDigest
.
batchGetImage
in interface AmazonECR
public CompleteLayerUploadResult completeLayerUpload(CompleteLayerUploadRequest request)
AmazonECR
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.
This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling
and pushing images. In most cases, you should use the docker
CLI to pull, tag, and push images.
completeLayerUpload
in interface AmazonECR
public CreateRepositoryResult createRepository(CreateRepositoryRequest request)
AmazonECR
Creates an image repository.
createRepository
in interface AmazonECR
public DeleteLifecyclePolicyResult deleteLifecyclePolicy(DeleteLifecyclePolicyRequest request)
AmazonECR
Deletes the specified lifecycle policy.
deleteLifecyclePolicy
in interface AmazonECR
public DeleteRepositoryResult deleteRepository(DeleteRepositoryRequest request)
AmazonECR
Deletes an existing image repository. If a repository contains images, you must use the force
option
to delete it.
deleteRepository
in interface AmazonECR
public DeleteRepositoryPolicyResult deleteRepositoryPolicy(DeleteRepositoryPolicyRequest request)
AmazonECR
Deletes the repository policy from a specified repository.
deleteRepositoryPolicy
in interface AmazonECR
public DescribeImagesResult describeImages(DescribeImagesRequest request)
AmazonECR
Returns metadata about the images in a repository, including image size, image tags, and creation date.
Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker
registry. The output of the docker images
command shows the uncompressed image size, so it may
return a larger image size than the image sizes returned by DescribeImages.
describeImages
in interface AmazonECR
public DescribeRepositoriesResult describeRepositories(DescribeRepositoriesRequest request)
AmazonECR
Describes image repositories in a registry.
describeRepositories
in interface AmazonECR
public GetAuthorizationTokenResult getAuthorizationToken(GetAuthorizationTokenRequest request)
AmazonECR
Retrieves a token that is valid for a specified registry for 12 hours. This command allows you to use the
docker
CLI to push and pull images with Amazon ECR. If you do not specify a registry, the default
registry is assumed.
The authorizationToken
returned for each registry specified 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
aws ecr get-login
command that simplifies the login process.
getAuthorizationToken
in interface AmazonECR
public GetDownloadUrlForLayerResult getDownloadUrlForLayer(GetDownloadUrlForLayerRequest request)
AmazonECR
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.
This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling
and pushing images. In most cases, you should use the docker
CLI to pull, tag, and push images.
getDownloadUrlForLayer
in interface AmazonECR
public GetLifecyclePolicyResult getLifecyclePolicy(GetLifecyclePolicyRequest request)
AmazonECR
Retrieves the specified lifecycle policy.
getLifecyclePolicy
in interface AmazonECR
public GetLifecyclePolicyPreviewResult getLifecyclePolicyPreview(GetLifecyclePolicyPreviewRequest request)
AmazonECR
Retrieves the results of the specified lifecycle policy preview request.
getLifecyclePolicyPreview
in interface AmazonECR
public GetRepositoryPolicyResult getRepositoryPolicy(GetRepositoryPolicyRequest request)
AmazonECR
Retrieves the repository policy for a specified repository.
getRepositoryPolicy
in interface AmazonECR
public InitiateLayerUploadResult initiateLayerUpload(InitiateLayerUploadRequest request)
AmazonECR
Notify Amazon ECR that you intend to upload an image layer.
This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling
and pushing images. In most cases, you should use the docker
CLI to pull, tag, and push images.
initiateLayerUpload
in interface AmazonECR
public ListImagesResult listImages(ListImagesRequest request)
AmazonECR
Lists all the image IDs for a given repository.
You can filter images based on whether or not they are tagged by setting the tagStatus
parameter to
TAGGED
or UNTAGGED
. 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.
listImages
in interface AmazonECR
public PutImageResult putImage(PutImageRequest request)
AmazonECR
Creates or updates the image manifest and tags associated with an image.
This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling
and pushing images. In most cases, you should use the docker
CLI to pull, tag, and push images.
putImage
in interface AmazonECR
public PutLifecyclePolicyResult putLifecyclePolicy(PutLifecyclePolicyRequest request)
AmazonECR
Creates or updates a lifecycle policy.
putLifecyclePolicy
in interface AmazonECR
public SetRepositoryPolicyResult setRepositoryPolicy(SetRepositoryPolicyRequest request)
AmazonECR
Applies a repository policy on a specified repository to control access permissions.
setRepositoryPolicy
in interface AmazonECR
public StartLifecyclePolicyPreviewResult startLifecyclePolicyPreview(StartLifecyclePolicyPreviewRequest request)
AmazonECR
Starts a preview of the specified lifecycle policy. This allows you to see the results before creating the lifecycle policy.
startLifecyclePolicyPreview
in interface AmazonECR
public UploadLayerPartResult uploadLayerPart(UploadLayerPartRequest request)
AmazonECR
Uploads an image layer part to Amazon ECR.
This operation is used by the Amazon ECR proxy, and it is not intended for general use by customers for pulling
and pushing images. In most cases, you should use the docker
CLI to pull, tag, and push images.
uploadLayerPart
in interface AmazonECR
public void shutdown()
AmazonECR
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonECR
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata
in interface AmazonECR
request
- The originally executed request.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.