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.| 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)
Inform Amazon ECR that the image layer upload for a specified registry,
repository name, and upload ID, has completed.
|
CreateRepositoryResult |
createRepository(CreateRepositoryRequest request)
Creates an image repository.
|
DeleteRepositoryResult |
deleteRepository(DeleteRepositoryRequest request)
Deletes an existing image repository.
|
DeleteRepositoryPolicyResult |
deleteRepositoryPolicy(DeleteRepositoryPolicyRequest request)
Deletes the repository policy from a specified repository.
|
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.
|
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 associated with an image.
|
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.
|
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 AmazonECRendpoint - 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)
AmazonECRAmazonECR.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 AmazonECRregion - 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)
AmazonECRCheck 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. Use the docker CLI to pull,
tag, and push images.
batchCheckLayerAvailability in interface AmazonECRpublic BatchDeleteImageResult batchDeleteImage(BatchDeleteImageRequest request)
AmazonECR
Deletes a list of specified images within a specified repository. Images
are specified with either imageTag or
imageDigest.
batchDeleteImage in interface AmazonECRrequest - 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 AmazonECRpublic CompleteLayerUploadResult completeLayerUpload(CompleteLayerUploadRequest request)
AmazonECR
Inform Amazon ECR that the image layer upload for a specified registry,
repository name, and upload ID, has completed. 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. Use the docker CLI to pull,
tag, and push images.
completeLayerUpload in interface AmazonECRpublic CreateRepositoryResult createRepository(CreateRepositoryRequest request)
AmazonECRCreates an image repository.
createRepository in interface AmazonECRpublic 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 AmazonECRpublic DeleteRepositoryPolicyResult deleteRepositoryPolicy(DeleteRepositoryPolicyRequest request)
AmazonECRDeletes the repository policy from a specified repository.
deleteRepositoryPolicy in interface AmazonECRpublic DescribeRepositoriesResult describeRepositories(DescribeRepositoriesRequest request)
AmazonECRDescribes image repositories in a registry.
describeRepositories in interface AmazonECRpublic 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 AmazonECRpublic GetDownloadUrlForLayerResult getDownloadUrlForLayer(GetDownloadUrlForLayerRequest request)
AmazonECRRetrieves 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. Use the docker CLI to pull,
tag, and push images.
getDownloadUrlForLayer in interface AmazonECRpublic GetRepositoryPolicyResult getRepositoryPolicy(GetRepositoryPolicyRequest request)
AmazonECRRetrieves the repository policy for a specified repository.
getRepositoryPolicy in interface AmazonECRpublic InitiateLayerUploadResult initiateLayerUpload(InitiateLayerUploadRequest request)
AmazonECRNotify 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. Use the docker CLI to pull,
tag, and push images.
initiateLayerUpload in interface AmazonECRpublic ListImagesResult listImages(ListImagesRequest request)
AmazonECRLists all the image IDs for a given repository.
listImages in interface AmazonECRpublic PutImageResult putImage(PutImageRequest request)
AmazonECRCreates or updates the image manifest associated with an image.
This operation is used by the Amazon ECR proxy, and it is not intended
for general use by customers. Use the docker CLI to pull,
tag, and push images.
public SetRepositoryPolicyResult setRepositoryPolicy(SetRepositoryPolicyRequest request)
AmazonECRApplies a repository policy on a specified repository to control access permissions.
setRepositoryPolicy in interface AmazonECRpublic UploadLayerPartResult uploadLayerPart(UploadLayerPartRequest request)
AmazonECRUploads 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. Use the docker CLI to pull,
tag, and push images.
uploadLayerPart in interface AmazonECRpublic void shutdown()
AmazonECRpublic ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonECRResponse 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 AmazonECRrequest - The originally executed request.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.