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 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. 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
.
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
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 AmazonECR
public CreateRepositoryResult createRepository(CreateRepositoryRequest request)
AmazonECR
Creates an image repository.
createRepository
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 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. Use the docker
CLI to pull,
tag, and push images.
getDownloadUrlForLayer
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. 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.
listImages
in interface AmazonECR
public PutImageResult putImage(PutImageRequest request)
AmazonECR
Creates 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)
AmazonECR
Applies a repository policy on a specified repository to control access permissions.
setRepositoryPolicy
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. 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.