Class AmazonECRAsyncClient
- All Implemented Interfaces:
AmazonECR, AmazonECRAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Amazon EC2 Container Registry (Amazon ECR) is a managed AWS Docker registry service. Customers can use the familiar Docker CLI to push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable registry. Amazon ECR supports private Docker repositories with resource-based permissions using AWS IAM so that specific users or Amazon EC2 instances can access repositories and images. Developers can use the Docker CLI to author and manage images.
-
Field Summary
Fields inherited from class AmazonECRClient
configFactoryFields inherited from class AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new asynchronous client to invoke service methods on Amazon ECR.AmazonECRAsyncClient(AWSCredentials awsCredentials) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials.AmazonECRAsyncClient(AWSCredentialsProvider awsCredentialsProvider) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials provider.AmazonECRAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the provided AWS account credentials provider and client configuration options.AmazonECRAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials provider, executor service, and client configuration options.AmazonECRAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials provider and executor service.AmazonECRAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials, executor service, and client configuration options.AmazonECRAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials and executor service.AmazonECRAsyncClient(ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Amazon ECR. -
Method Summary
Modifier and TypeMethodDescriptionCheck the availability of multiple image layers in a specified registry and repository.batchCheckLayerAvailabilityAsync(BatchCheckLayerAvailabilityRequest request, AsyncHandler<BatchCheckLayerAvailabilityRequest, BatchCheckLayerAvailabilityResult> asyncHandler) Check the availability of multiple image layers in a specified registry and repository.Deletes a list of specified images within a specified repository.batchDeleteImageAsync(BatchDeleteImageRequest request, AsyncHandler<BatchDeleteImageRequest, BatchDeleteImageResult> asyncHandler) Deletes a list of specified images within a specified repository.batchGetImageAsync(BatchGetImageRequest request) Gets detailed information for specified images within a specified repository.batchGetImageAsync(BatchGetImageRequest request, AsyncHandler<BatchGetImageRequest, BatchGetImageResult> asyncHandler) Gets detailed information for specified images within a specified repository.Inform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed.completeLayerUploadAsync(CompleteLayerUploadRequest request, AsyncHandler<CompleteLayerUploadRequest, CompleteLayerUploadResult> asyncHandler) Inform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed.Creates an image repository.createRepositoryAsync(CreateRepositoryRequest request, AsyncHandler<CreateRepositoryRequest, CreateRepositoryResult> asyncHandler) Creates an image repository.Deletes an existing image repository.deleteRepositoryAsync(DeleteRepositoryRequest request, AsyncHandler<DeleteRepositoryRequest, DeleteRepositoryResult> asyncHandler) Deletes an existing image repository.Deletes the repository policy from a specified repository.deleteRepositoryPolicyAsync(DeleteRepositoryPolicyRequest request, AsyncHandler<DeleteRepositoryPolicyRequest, DeleteRepositoryPolicyResult> asyncHandler) Deletes the repository policy from a specified repository.Describes image repositories in a registry.describeRepositoriesAsync(DescribeRepositoriesRequest request, AsyncHandler<DescribeRepositoriesRequest, DescribeRepositoriesResult> asyncHandler) Describes image repositories in a registry.Retrieves a token that is valid for a specified registry for 12 hours.getAuthorizationTokenAsync(GetAuthorizationTokenRequest request, AsyncHandler<GetAuthorizationTokenRequest, GetAuthorizationTokenResult> asyncHandler) Retrieves a token that is valid for a specified registry for 12 hours.Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer.getDownloadUrlForLayerAsync(GetDownloadUrlForLayerRequest request, AsyncHandler<GetDownloadUrlForLayerRequest, GetDownloadUrlForLayerResult> asyncHandler) Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer.Returns the executor service used by this client to execute async requests.Retrieves the repository policy for a specified repository.getRepositoryPolicyAsync(GetRepositoryPolicyRequest request, AsyncHandler<GetRepositoryPolicyRequest, GetRepositoryPolicyResult> asyncHandler) Retrieves the repository policy for a specified repository.Notify Amazon ECR that you intend to upload an image layer.initiateLayerUploadAsync(InitiateLayerUploadRequest request, AsyncHandler<InitiateLayerUploadRequest, InitiateLayerUploadResult> asyncHandler) Notify Amazon ECR that you intend to upload an image layer.listImagesAsync(ListImagesRequest request) Lists all the image IDs for a given repository.listImagesAsync(ListImagesRequest request, AsyncHandler<ListImagesRequest, ListImagesResult> asyncHandler) Lists all the image IDs for a given repository.putImageAsync(PutImageRequest request) Creates or updates the image manifest associated with an image.putImageAsync(PutImageRequest request, AsyncHandler<PutImageRequest, PutImageResult> asyncHandler) Creates or updates the image manifest associated with an image.Applies a repository policy on a specified repository to control access permissions.setRepositoryPolicyAsync(SetRepositoryPolicyRequest request, AsyncHandler<SetRepositoryPolicyRequest, SetRepositoryPolicyResult> asyncHandler) Applies a repository policy on a specified repository to control access permissions.voidshutdown()Shuts down the client, releasing all managed resources.Uploads an image layer part to Amazon ECR.uploadLayerPartAsync(UploadLayerPartRequest request, AsyncHandler<UploadLayerPartRequest, UploadLayerPartResult> asyncHandler) Uploads an image layer part to Amazon ECR.Methods inherited from class AmazonECRClient
batchCheckLayerAvailability, batchDeleteImage, batchGetImage, completeLayerUpload, createRepository, deleteRepository, deleteRepositoryPolicy, describeRepositories, getAuthorizationToken, getCachedResponseMetadata, getDownloadUrlForLayer, getRepositoryPolicy, initiateLayerUpload, listImages, putImage, setRepositoryPolicy, uploadLayerPartMethods inherited from class AmazonWebServiceClient
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AmazonECR
batchCheckLayerAvailability, batchDeleteImage, batchGetImage, completeLayerUpload, createRepository, deleteRepository, deleteRepositoryPolicy, describeRepositories, getAuthorizationToken, getCachedResponseMetadata, getDownloadUrlForLayer, getRepositoryPolicy, initiateLayerUpload, listImages, putImage, setEndpoint, setRegion, setRepositoryPolicy, uploadLayerPart
-
Constructor Details
-
AmazonECRAsyncClient
public AmazonECRAsyncClient()Constructs a new asynchronous client to invoke service methods on Amazon ECR. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- See Also:
-
AmazonECRAsyncClient
Constructs a new asynchronous client to invoke service methods on Amazon ECR. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections().- Parameters:
clientConfiguration- The client configuration options controlling how this client connects to Amazon ECR (ex: proxy settings, retry counts, etc).- See Also:
-
AmazonECRAsyncClient
Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.- See Also:
-
AmazonECRAsyncClient
Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials and executor service. Default client settings will be used.- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonECRAsyncClient
public AmazonECRAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials, executor service, and client configuration options.- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonECRAsyncClient
Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials provider. Default client settings will be used.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.- See Also:
-
AmazonECRAsyncClient
public AmazonECRAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the provided AWS account credentials provider and client configuration options.Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections().- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).- See Also:
-
AmazonECRAsyncClient
public AmazonECRAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials provider and executor service. Default client settings will be used.- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonECRAsyncClient
public AmazonECRAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Amazon ECR using the specified AWS account credentials provider, executor service, and client configuration options.- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).executorService- The executor service by which all asynchronous requests will be executed.
-
-
Method Details
-
getExecutorService
Returns the executor service used by this client to execute async requests.- Returns:
- The executor service used by this client to execute async requests.
-
batchCheckLayerAvailabilityAsync
public Future<BatchCheckLayerAvailabilityResult> batchCheckLayerAvailabilityAsync(BatchCheckLayerAvailabilityRequest request) Description copied from interface:AmazonECRAsyncCheck 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
dockerCLI to pull, tag, and push images.- Specified by:
batchCheckLayerAvailabilityAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the BatchCheckLayerAvailability operation returned by the service.
-
batchCheckLayerAvailabilityAsync
public Future<BatchCheckLayerAvailabilityResult> batchCheckLayerAvailabilityAsync(BatchCheckLayerAvailabilityRequest request, AsyncHandler<BatchCheckLayerAvailabilityRequest, BatchCheckLayerAvailabilityResult> asyncHandler) Description copied from interface:AmazonECRAsyncCheck 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
dockerCLI to pull, tag, and push images.- Specified by:
batchCheckLayerAvailabilityAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the BatchCheckLayerAvailability operation returned by the service.
-
batchDeleteImageAsync
Description copied from interface:AmazonECRAsyncDeletes a list of specified images within a specified repository. Images are specified with either
imageTagorimageDigest.- Specified by:
batchDeleteImageAsyncin interfaceAmazonECRAsync- Parameters:
request- Deletes specified images within a specified repository. Images are specified with either theimageTagorimageDigest.- Returns:
- A Java Future containing the result of the BatchDeleteImage operation returned by the service.
-
batchDeleteImageAsync
public Future<BatchDeleteImageResult> batchDeleteImageAsync(BatchDeleteImageRequest request, AsyncHandler<BatchDeleteImageRequest, BatchDeleteImageResult> asyncHandler) Description copied from interface:AmazonECRAsyncDeletes a list of specified images within a specified repository. Images are specified with either
imageTagorimageDigest.- Specified by:
batchDeleteImageAsyncin interfaceAmazonECRAsync- Parameters:
request- Deletes specified images within a specified repository. Images are specified with either theimageTagorimageDigest.asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the BatchDeleteImage operation returned by the service.
-
batchGetImageAsync
Description copied from interface:AmazonECRAsyncGets detailed information for specified images within a specified repository. Images are specified with either
imageTagorimageDigest.- Specified by:
batchGetImageAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the BatchGetImage operation returned by the service.
-
batchGetImageAsync
public Future<BatchGetImageResult> batchGetImageAsync(BatchGetImageRequest request, AsyncHandler<BatchGetImageRequest, BatchGetImageResult> asyncHandler) Description copied from interface:AmazonECRAsyncGets detailed information for specified images within a specified repository. Images are specified with either
imageTagorimageDigest.- Specified by:
batchGetImageAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the BatchGetImage operation returned by the service.
-
completeLayerUploadAsync
public Future<CompleteLayerUploadResult> completeLayerUploadAsync(CompleteLayerUploadRequest request) Description copied from interface:AmazonECRAsyncInform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed. You can optionally provide a
sha256digest 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
dockerCLI to pull, tag, and push images.- Specified by:
completeLayerUploadAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CompleteLayerUpload operation returned by the service.
-
completeLayerUploadAsync
public Future<CompleteLayerUploadResult> completeLayerUploadAsync(CompleteLayerUploadRequest request, AsyncHandler<CompleteLayerUploadRequest, CompleteLayerUploadResult> asyncHandler) Description copied from interface:AmazonECRAsyncInform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed. You can optionally provide a
sha256digest 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
dockerCLI to pull, tag, and push images.- Specified by:
completeLayerUploadAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CompleteLayerUpload operation returned by the service.
-
createRepositoryAsync
Description copied from interface:AmazonECRAsyncCreates an image repository.
- Specified by:
createRepositoryAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateRepository operation returned by the service.
-
createRepositoryAsync
public Future<CreateRepositoryResult> createRepositoryAsync(CreateRepositoryRequest request, AsyncHandler<CreateRepositoryRequest, CreateRepositoryResult> asyncHandler) Description copied from interface:AmazonECRAsyncCreates an image repository.
- Specified by:
createRepositoryAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateRepository operation returned by the service.
-
deleteRepositoryAsync
Description copied from interface:AmazonECRAsyncDeletes an existing image repository. If a repository contains images, you must use the
forceoption to delete it.- Specified by:
deleteRepositoryAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteRepository operation returned by the service.
-
deleteRepositoryAsync
public Future<DeleteRepositoryResult> deleteRepositoryAsync(DeleteRepositoryRequest request, AsyncHandler<DeleteRepositoryRequest, DeleteRepositoryResult> asyncHandler) Description copied from interface:AmazonECRAsyncDeletes an existing image repository. If a repository contains images, you must use the
forceoption to delete it.- Specified by:
deleteRepositoryAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteRepository operation returned by the service.
-
deleteRepositoryPolicyAsync
public Future<DeleteRepositoryPolicyResult> deleteRepositoryPolicyAsync(DeleteRepositoryPolicyRequest request) Description copied from interface:AmazonECRAsyncDeletes the repository policy from a specified repository.
- Specified by:
deleteRepositoryPolicyAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteRepositoryPolicy operation returned by the service.
-
deleteRepositoryPolicyAsync
public Future<DeleteRepositoryPolicyResult> deleteRepositoryPolicyAsync(DeleteRepositoryPolicyRequest request, AsyncHandler<DeleteRepositoryPolicyRequest, DeleteRepositoryPolicyResult> asyncHandler) Description copied from interface:AmazonECRAsyncDeletes the repository policy from a specified repository.
- Specified by:
deleteRepositoryPolicyAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteRepositoryPolicy operation returned by the service.
-
describeRepositoriesAsync
public Future<DescribeRepositoriesResult> describeRepositoriesAsync(DescribeRepositoriesRequest request) Description copied from interface:AmazonECRAsyncDescribes image repositories in a registry.
- Specified by:
describeRepositoriesAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeRepositories operation returned by the service.
-
describeRepositoriesAsync
public Future<DescribeRepositoriesResult> describeRepositoriesAsync(DescribeRepositoriesRequest request, AsyncHandler<DescribeRepositoriesRequest, DescribeRepositoriesResult> asyncHandler) Description copied from interface:AmazonECRAsyncDescribes image repositories in a registry.
- Specified by:
describeRepositoriesAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeRepositories operation returned by the service.
-
getAuthorizationTokenAsync
public Future<GetAuthorizationTokenResult> getAuthorizationTokenAsync(GetAuthorizationTokenRequest request) Description copied from interface:AmazonECRAsyncRetrieves a token that is valid for a specified registry for 12 hours. This command allows you to use the
dockerCLI to push and pull images with Amazon ECR. If you do not specify a registry, the default registry is assumed.The
authorizationTokenreturned for each registry specified is a base64 encoded string that can be decoded and used in adocker logincommand to authenticate to a registry. The AWS CLI offers anaws ecr get-logincommand that simplifies the login process.- Specified by:
getAuthorizationTokenAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the GetAuthorizationToken operation returned by the service.
-
getAuthorizationTokenAsync
public Future<GetAuthorizationTokenResult> getAuthorizationTokenAsync(GetAuthorizationTokenRequest request, AsyncHandler<GetAuthorizationTokenRequest, GetAuthorizationTokenResult> asyncHandler) Description copied from interface:AmazonECRAsyncRetrieves a token that is valid for a specified registry for 12 hours. This command allows you to use the
dockerCLI to push and pull images with Amazon ECR. If you do not specify a registry, the default registry is assumed.The
authorizationTokenreturned for each registry specified is a base64 encoded string that can be decoded and used in adocker logincommand to authenticate to a registry. The AWS CLI offers anaws ecr get-logincommand that simplifies the login process.- Specified by:
getAuthorizationTokenAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetAuthorizationToken operation returned by the service.
-
getDownloadUrlForLayerAsync
public Future<GetDownloadUrlForLayerResult> getDownloadUrlForLayerAsync(GetDownloadUrlForLayerRequest request) Description copied from interface:AmazonECRAsyncRetrieves 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
dockerCLI to pull, tag, and push images.- Specified by:
getDownloadUrlForLayerAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the GetDownloadUrlForLayer operation returned by the service.
-
getDownloadUrlForLayerAsync
public Future<GetDownloadUrlForLayerResult> getDownloadUrlForLayerAsync(GetDownloadUrlForLayerRequest request, AsyncHandler<GetDownloadUrlForLayerRequest, GetDownloadUrlForLayerResult> asyncHandler) Description copied from interface:AmazonECRAsyncRetrieves 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
dockerCLI to pull, tag, and push images.- Specified by:
getDownloadUrlForLayerAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetDownloadUrlForLayer operation returned by the service.
-
getRepositoryPolicyAsync
public Future<GetRepositoryPolicyResult> getRepositoryPolicyAsync(GetRepositoryPolicyRequest request) Description copied from interface:AmazonECRAsyncRetrieves the repository policy for a specified repository.
- Specified by:
getRepositoryPolicyAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the GetRepositoryPolicy operation returned by the service.
-
getRepositoryPolicyAsync
public Future<GetRepositoryPolicyResult> getRepositoryPolicyAsync(GetRepositoryPolicyRequest request, AsyncHandler<GetRepositoryPolicyRequest, GetRepositoryPolicyResult> asyncHandler) Description copied from interface:AmazonECRAsyncRetrieves the repository policy for a specified repository.
- Specified by:
getRepositoryPolicyAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the GetRepositoryPolicy operation returned by the service.
-
initiateLayerUploadAsync
public Future<InitiateLayerUploadResult> initiateLayerUploadAsync(InitiateLayerUploadRequest request) Description copied from interface:AmazonECRAsyncNotify 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
dockerCLI to pull, tag, and push images.- Specified by:
initiateLayerUploadAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the InitiateLayerUpload operation returned by the service.
-
initiateLayerUploadAsync
public Future<InitiateLayerUploadResult> initiateLayerUploadAsync(InitiateLayerUploadRequest request, AsyncHandler<InitiateLayerUploadRequest, InitiateLayerUploadResult> asyncHandler) Description copied from interface:AmazonECRAsyncNotify 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
dockerCLI to pull, tag, and push images.- Specified by:
initiateLayerUploadAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the InitiateLayerUpload operation returned by the service.
-
listImagesAsync
Description copied from interface:AmazonECRAsyncLists all the image IDs for a given repository.
- Specified by:
listImagesAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the ListImages operation returned by the service.
-
listImagesAsync
public Future<ListImagesResult> listImagesAsync(ListImagesRequest request, AsyncHandler<ListImagesRequest, ListImagesResult> asyncHandler) Description copied from interface:AmazonECRAsyncLists all the image IDs for a given repository.
- Specified by:
listImagesAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ListImages operation returned by the service.
-
putImageAsync
Description copied from interface:AmazonECRAsyncCreates 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
dockerCLI to pull, tag, and push images.- Specified by:
putImageAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the PutImage operation returned by the service.
-
putImageAsync
public Future<PutImageResult> putImageAsync(PutImageRequest request, AsyncHandler<PutImageRequest, PutImageResult> asyncHandler) Description copied from interface:AmazonECRAsyncCreates 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
dockerCLI to pull, tag, and push images.- Specified by:
putImageAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutImage operation returned by the service.
-
setRepositoryPolicyAsync
public Future<SetRepositoryPolicyResult> setRepositoryPolicyAsync(SetRepositoryPolicyRequest request) Description copied from interface:AmazonECRAsyncApplies a repository policy on a specified repository to control access permissions.
- Specified by:
setRepositoryPolicyAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the SetRepositoryPolicy operation returned by the service.
-
setRepositoryPolicyAsync
public Future<SetRepositoryPolicyResult> setRepositoryPolicyAsync(SetRepositoryPolicyRequest request, AsyncHandler<SetRepositoryPolicyRequest, SetRepositoryPolicyResult> asyncHandler) Description copied from interface:AmazonECRAsyncApplies a repository policy on a specified repository to control access permissions.
- Specified by:
setRepositoryPolicyAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SetRepositoryPolicy operation returned by the service.
-
uploadLayerPartAsync
Description copied from interface:AmazonECRAsyncUploads 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
dockerCLI to pull, tag, and push images.- Specified by:
uploadLayerPartAsyncin interfaceAmazonECRAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the UploadLayerPart operation returned by the service.
-
uploadLayerPartAsync
public Future<UploadLayerPartResult> uploadLayerPartAsync(UploadLayerPartRequest request, AsyncHandler<UploadLayerPartRequest, UploadLayerPartResult> asyncHandler) Description copied from interface:AmazonECRAsyncUploads 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
dockerCLI to pull, tag, and push images.- Specified by:
uploadLayerPartAsyncin interfaceAmazonECRAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UploadLayerPart operation returned by the service.
-
shutdown
public void shutdown()Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should callgetExecutorService().shutdown()followed bygetExecutorService().awaitTermination()prior to calling this method.- Specified by:
shutdownin interfaceAmazonECR- Overrides:
shutdownin classAmazonWebServiceClient
-