/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ecr-2015-09-21.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.ECR.Model; using Amazon.ECR.Model.Internal.MarshallTransformations; using Amazon.ECR.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ECR { /// /// Implementation for accessing ECR /// /// Amazon Elastic Container Registry /// /// 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. /// /// /// /// Amazon ECR has service endpoints in each supported Region. For more information, see /// Amazon ECR endpoints /// in the Amazon Web Services General Reference. /// /// public partial class AmazonECRClient : AmazonServiceClient, IAmazonECR { private static IServiceMetadata serviceMetadata = new AmazonECRMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IECRPaginatorFactory _paginators; /// /// Paginators for the service /// public IECRPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ECRPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonECRClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonECRClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonECRConfig()) { } /// /// Constructs AmazonECRClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonECRClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonECRConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonECRClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonECRClient Configuration Object public AmazonECRClient(AmazonECRConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonECRClient with AWS Credentials /// /// AWS Credentials public AmazonECRClient(AWSCredentials credentials) : this(credentials, new AmazonECRConfig()) { } /// /// Constructs AmazonECRClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonECRClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonECRConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonECRClient with AWS Credentials and an /// AmazonECRClient Configuration object. /// /// AWS Credentials /// The AmazonECRClient Configuration Object public AmazonECRClient(AWSCredentials credentials, AmazonECRConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonECRClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonECRClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonECRConfig()) { } /// /// Constructs AmazonECRClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonECRClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonECRConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonECRClient with AWS Access Key ID, AWS Secret Key and an /// AmazonECRClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonECRClient Configuration Object public AmazonECRClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonECRConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonECRClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonECRClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonECRConfig()) { } /// /// Constructs AmazonECRClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonECRClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonECRConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonECRClient with AWS Access Key ID, AWS Secret Key and an /// AmazonECRClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonECRClient Configuration Object public AmazonECRClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonECRConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonECREndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region BatchCheckLayerAvailability /// /// Checks the availability of one or more image layers in a repository. /// /// /// /// When an image is pushed to a repository, each image layer is checked to verify if /// it has been uploaded before. If it has been uploaded, then the image layer is skipped. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the BatchCheckLayerAvailability service method. /// /// The response from the BatchCheckLayerAvailability service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for BatchCheckLayerAvailability Operation public virtual BatchCheckLayerAvailabilityResponse BatchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchCheckLayerAvailabilityRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchCheckLayerAvailabilityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchCheckLayerAvailability operation. /// /// /// Container for the necessary parameters to execute the BatchCheckLayerAvailability operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchCheckLayerAvailability /// operation. /// REST API Reference for BatchCheckLayerAvailability Operation public virtual IAsyncResult BeginBatchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchCheckLayerAvailabilityRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchCheckLayerAvailabilityResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchCheckLayerAvailability operation. /// /// /// The IAsyncResult returned by the call to BeginBatchCheckLayerAvailability. /// /// Returns a BatchCheckLayerAvailabilityResult from ECR. /// REST API Reference for BatchCheckLayerAvailability Operation public virtual BatchCheckLayerAvailabilityResponse EndBatchCheckLayerAvailability(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchDeleteImage /// /// Deletes a list of specified images within a repository. Images are specified with /// either an 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. /// /// /// Container for the necessary parameters to execute the BatchDeleteImage service method. /// /// The response from the BatchDeleteImage service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for BatchDeleteImage Operation public virtual BatchDeleteImageResponse BatchDeleteImage(BatchDeleteImageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteImageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteImageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchDeleteImage operation. /// /// /// Container for the necessary parameters to execute the BatchDeleteImage operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDeleteImage /// operation. /// REST API Reference for BatchDeleteImage Operation public virtual IAsyncResult BeginBatchDeleteImage(BatchDeleteImageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteImageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteImageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchDeleteImage operation. /// /// /// The IAsyncResult returned by the call to BeginBatchDeleteImage. /// /// Returns a BatchDeleteImageResult from ECR. /// REST API Reference for BatchDeleteImage Operation public virtual BatchDeleteImageResponse EndBatchDeleteImage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchGetImage /// /// Gets detailed information for an image. Images are specified with either an imageTag /// or imageDigest. /// /// /// /// When an image is pulled, the BatchGetImage API is called once to retrieve the image /// manifest. /// /// /// Container for the necessary parameters to execute the BatchGetImage service method. /// /// The response from the BatchGetImage service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for BatchGetImage Operation public virtual BatchGetImageResponse BatchGetImage(BatchGetImageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetImageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetImageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchGetImage operation. /// /// /// Container for the necessary parameters to execute the BatchGetImage operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetImage /// operation. /// REST API Reference for BatchGetImage Operation public virtual IAsyncResult BeginBatchGetImage(BatchGetImageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetImageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetImageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchGetImage operation. /// /// /// The IAsyncResult returned by the call to BeginBatchGetImage. /// /// Returns a BatchGetImageResult from ECR. /// REST API Reference for BatchGetImage Operation public virtual BatchGetImageResponse EndBatchGetImage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchGetRepositoryScanningConfiguration /// /// Gets the scanning configuration for one or more repositories. /// /// Container for the necessary parameters to execute the BatchGetRepositoryScanningConfiguration service method. /// /// The response from the BatchGetRepositoryScanningConfiguration service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for BatchGetRepositoryScanningConfiguration Operation public virtual BatchGetRepositoryScanningConfigurationResponse BatchGetRepositoryScanningConfiguration(BatchGetRepositoryScanningConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetRepositoryScanningConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetRepositoryScanningConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchGetRepositoryScanningConfiguration operation. /// /// /// Container for the necessary parameters to execute the BatchGetRepositoryScanningConfiguration operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetRepositoryScanningConfiguration /// operation. /// REST API Reference for BatchGetRepositoryScanningConfiguration Operation public virtual IAsyncResult BeginBatchGetRepositoryScanningConfiguration(BatchGetRepositoryScanningConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetRepositoryScanningConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetRepositoryScanningConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchGetRepositoryScanningConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginBatchGetRepositoryScanningConfiguration. /// /// Returns a BatchGetRepositoryScanningConfigurationResult from ECR. /// REST API Reference for BatchGetRepositoryScanningConfiguration Operation public virtual BatchGetRepositoryScanningConfigurationResponse EndBatchGetRepositoryScanningConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CompleteLayerUpload /// /// 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. /// /// /// /// When an image is pushed, the CompleteLayerUpload API is called once per each new image /// layer to verify that the upload has completed. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the CompleteLayerUpload service method. /// /// The response from the CompleteLayerUpload service method, as returned by ECR. /// /// The specified layer upload does not contain any layer parts. /// /// /// The layer digest calculation performed by Amazon ECR upon receipt of the image layer /// does not match the digest specified. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The operation failed due to a KMS exception. /// /// /// The image layer already exists in the associated repository. /// /// /// Layer parts must be at least 5 MiB in size. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The upload could not be found, or the specified upload ID is not valid for this repository. /// /// REST API Reference for CompleteLayerUpload Operation public virtual CompleteLayerUploadResponse CompleteLayerUpload(CompleteLayerUploadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLayerUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLayerUploadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CompleteLayerUpload operation. /// /// /// Container for the necessary parameters to execute the CompleteLayerUpload operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCompleteLayerUpload /// operation. /// REST API Reference for CompleteLayerUpload Operation public virtual IAsyncResult BeginCompleteLayerUpload(CompleteLayerUploadRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLayerUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLayerUploadResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CompleteLayerUpload operation. /// /// /// The IAsyncResult returned by the call to BeginCompleteLayerUpload. /// /// Returns a CompleteLayerUploadResult from ECR. /// REST API Reference for CompleteLayerUpload Operation public virtual CompleteLayerUploadResponse EndCompleteLayerUpload(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreatePullThroughCacheRule /// /// Creates a pull through cache rule. A pull through cache rule provides a way to cache /// images from an external public registry in your Amazon ECR private registry. /// /// Container for the necessary parameters to execute the CreatePullThroughCacheRule service method. /// /// The response from the CreatePullThroughCacheRule service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The operation did not succeed because it would have exceeded a service limit for your /// account. For more information, see Amazon /// ECR service quotas in the Amazon Elastic Container Registry User Guide. /// /// /// A pull through cache rule with these settings already exists for the private registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The specified upstream registry isn't supported. /// /// /// There was an exception validating this request. /// /// REST API Reference for CreatePullThroughCacheRule Operation public virtual CreatePullThroughCacheRuleResponse CreatePullThroughCacheRule(CreatePullThroughCacheRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePullThroughCacheRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePullThroughCacheRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreatePullThroughCacheRule operation. /// /// /// Container for the necessary parameters to execute the CreatePullThroughCacheRule operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreatePullThroughCacheRule /// operation. /// REST API Reference for CreatePullThroughCacheRule Operation public virtual IAsyncResult BeginCreatePullThroughCacheRule(CreatePullThroughCacheRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePullThroughCacheRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePullThroughCacheRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreatePullThroughCacheRule operation. /// /// /// The IAsyncResult returned by the call to BeginCreatePullThroughCacheRule. /// /// Returns a CreatePullThroughCacheRuleResult from ECR. /// REST API Reference for CreatePullThroughCacheRule Operation public virtual CreatePullThroughCacheRuleResponse EndCreatePullThroughCacheRule(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateRepository /// /// Creates a repository. For more information, see Amazon /// ECR repositories in the Amazon Elastic Container Registry User Guide. /// /// Container for the necessary parameters to execute the CreateRepository service method. /// /// The response from the CreateRepository service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// An invalid parameter has been specified. Tag keys can have a maximum character length /// of 128 characters, and tag values can have a maximum length of 256 characters. /// /// /// The operation failed due to a KMS exception. /// /// /// The operation did not succeed because it would have exceeded a service limit for your /// account. For more information, see Amazon /// ECR service quotas in the Amazon Elastic Container Registry User Guide. /// /// /// The specified repository already exists in the specified registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The list of tags on the repository is over the limit. The maximum number of tags that /// can be applied to a repository is 50. /// /// REST API Reference for CreateRepository Operation public virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateRepository operation. /// /// /// Container for the necessary parameters to execute the CreateRepository operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateRepository /// operation. /// REST API Reference for CreateRepository Operation public virtual IAsyncResult BeginCreateRepository(CreateRepositoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRepositoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateRepository operation. /// /// /// The IAsyncResult returned by the call to BeginCreateRepository. /// /// Returns a CreateRepositoryResult from ECR. /// REST API Reference for CreateRepository Operation public virtual CreateRepositoryResponse EndCreateRepository(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteLifecyclePolicy /// /// Deletes the lifecycle policy associated with the specified repository. /// /// Container for the necessary parameters to execute the DeleteLifecyclePolicy service method. /// /// The response from the DeleteLifecyclePolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The lifecycle policy could not be found, and no policy is set to the repository. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for DeleteLifecyclePolicy Operation public virtual DeleteLifecyclePolicyResponse DeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteLifecyclePolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteLifecyclePolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLifecyclePolicy /// operation. /// REST API Reference for DeleteLifecyclePolicy Operation public virtual IAsyncResult BeginDeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteLifecyclePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteLifecyclePolicy. /// /// Returns a DeleteLifecyclePolicyResult from ECR. /// REST API Reference for DeleteLifecyclePolicy Operation public virtual DeleteLifecyclePolicyResponse EndDeleteLifecyclePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeletePullThroughCacheRule /// /// Deletes a pull through cache rule. /// /// Container for the necessary parameters to execute the DeletePullThroughCacheRule service method. /// /// The response from the DeletePullThroughCacheRule service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The pull through cache rule was not found. Specify a valid pull through cache rule /// and try again. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for DeletePullThroughCacheRule Operation public virtual DeletePullThroughCacheRuleResponse DeletePullThroughCacheRule(DeletePullThroughCacheRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePullThroughCacheRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePullThroughCacheRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeletePullThroughCacheRule operation. /// /// /// Container for the necessary parameters to execute the DeletePullThroughCacheRule operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePullThroughCacheRule /// operation. /// REST API Reference for DeletePullThroughCacheRule Operation public virtual IAsyncResult BeginDeletePullThroughCacheRule(DeletePullThroughCacheRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePullThroughCacheRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePullThroughCacheRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeletePullThroughCacheRule operation. /// /// /// The IAsyncResult returned by the call to BeginDeletePullThroughCacheRule. /// /// Returns a DeletePullThroughCacheRuleResult from ECR. /// REST API Reference for DeletePullThroughCacheRule Operation public virtual DeletePullThroughCacheRuleResponse EndDeletePullThroughCacheRule(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteRegistryPolicy /// /// Deletes the registry permissions policy. /// /// Container for the necessary parameters to execute the DeleteRegistryPolicy service method. /// /// The response from the DeleteRegistryPolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The registry doesn't have an associated registry policy. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for DeleteRegistryPolicy Operation public virtual DeleteRegistryPolicyResponse DeleteRegistryPolicy(DeleteRegistryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRegistryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRegistryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteRegistryPolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteRegistryPolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRegistryPolicy /// operation. /// REST API Reference for DeleteRegistryPolicy Operation public virtual IAsyncResult BeginDeleteRegistryPolicy(DeleteRegistryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRegistryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRegistryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteRegistryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteRegistryPolicy. /// /// Returns a DeleteRegistryPolicyResult from ECR. /// REST API Reference for DeleteRegistryPolicy Operation public virtual DeleteRegistryPolicyResponse EndDeleteRegistryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteRepository /// /// Deletes a repository. If the repository contains images, you must either delete all /// images in the repository or use the force option to delete the repository. /// /// Container for the necessary parameters to execute the DeleteRepository service method. /// /// The response from the DeleteRepository service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The operation failed due to a KMS exception. /// /// /// The specified repository contains images. To delete a repository that contains images, /// you must force the deletion with the force parameter. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for DeleteRepository Operation public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteRepository operation. /// /// /// Container for the necessary parameters to execute the DeleteRepository operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRepository /// operation. /// REST API Reference for DeleteRepository Operation public virtual IAsyncResult BeginDeleteRepository(DeleteRepositoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteRepository operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteRepository. /// /// Returns a DeleteRepositoryResult from ECR. /// REST API Reference for DeleteRepository Operation public virtual DeleteRepositoryResponse EndDeleteRepository(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteRepositoryPolicy /// /// Deletes the repository policy associated with the specified repository. /// /// Container for the necessary parameters to execute the DeleteRepositoryPolicy service method. /// /// The response from the DeleteRepositoryPolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// The specified repository and registry combination does not have an associated repository /// policy. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for DeleteRepositoryPolicy Operation public virtual DeleteRepositoryPolicyResponse DeleteRepositoryPolicy(DeleteRepositoryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteRepositoryPolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteRepositoryPolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRepositoryPolicy /// operation. /// REST API Reference for DeleteRepositoryPolicy Operation public virtual IAsyncResult BeginDeleteRepositoryPolicy(DeleteRepositoryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteRepositoryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteRepositoryPolicy. /// /// Returns a DeleteRepositoryPolicyResult from ECR. /// REST API Reference for DeleteRepositoryPolicy Operation public virtual DeleteRepositoryPolicyResponse EndDeleteRepositoryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeImageReplicationStatus /// /// Returns the replication status for a specified image. /// /// Container for the necessary parameters to execute the DescribeImageReplicationStatus service method. /// /// The response from the DescribeImageReplicationStatus service method, as returned by ECR. /// /// The image requested does not exist in the specified repository. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for DescribeImageReplicationStatus Operation public virtual DescribeImageReplicationStatusResponse DescribeImageReplicationStatus(DescribeImageReplicationStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImageReplicationStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImageReplicationStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeImageReplicationStatus operation. /// /// /// Container for the necessary parameters to execute the DescribeImageReplicationStatus operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeImageReplicationStatus /// operation. /// REST API Reference for DescribeImageReplicationStatus Operation public virtual IAsyncResult BeginDescribeImageReplicationStatus(DescribeImageReplicationStatusRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImageReplicationStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImageReplicationStatusResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeImageReplicationStatus operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeImageReplicationStatus. /// /// Returns a DescribeImageReplicationStatusResult from ECR. /// REST API Reference for DescribeImageReplicationStatus Operation public virtual DescribeImageReplicationStatusResponse EndDescribeImageReplicationStatus(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeImages /// /// Returns metadata about the images in a repository. /// /// /// /// 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. /// /// /// /// Container for the necessary parameters to execute the DescribeImages service method. /// /// The response from the DescribeImages service method, as returned by ECR. /// /// The image requested does not exist in the specified repository. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for DescribeImages Operation public virtual DescribeImagesResponse DescribeImages(DescribeImagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImagesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeImages operation. /// /// /// Container for the necessary parameters to execute the DescribeImages operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeImages /// operation. /// REST API Reference for DescribeImages Operation public virtual IAsyncResult BeginDescribeImages(DescribeImagesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImagesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImagesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeImages operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeImages. /// /// Returns a DescribeImagesResult from ECR. /// REST API Reference for DescribeImages Operation public virtual DescribeImagesResponse EndDescribeImages(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeImageScanFindings /// /// Returns the scan findings for the specified image. /// /// Container for the necessary parameters to execute the DescribeImageScanFindings service method. /// /// The response from the DescribeImageScanFindings service method, as returned by ECR. /// /// The image requested does not exist in the specified repository. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// The specified image scan could not be found. Ensure that image scanning is enabled /// on the repository and try again. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for DescribeImageScanFindings Operation public virtual DescribeImageScanFindingsResponse DescribeImageScanFindings(DescribeImageScanFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImageScanFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImageScanFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeImageScanFindings operation. /// /// /// Container for the necessary parameters to execute the DescribeImageScanFindings operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeImageScanFindings /// operation. /// REST API Reference for DescribeImageScanFindings Operation public virtual IAsyncResult BeginDescribeImageScanFindings(DescribeImageScanFindingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImageScanFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImageScanFindingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeImageScanFindings operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeImageScanFindings. /// /// Returns a DescribeImageScanFindingsResult from ECR. /// REST API Reference for DescribeImageScanFindings Operation public virtual DescribeImageScanFindingsResponse EndDescribeImageScanFindings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribePullThroughCacheRules /// /// Returns the pull through cache rules for a registry. /// /// Container for the necessary parameters to execute the DescribePullThroughCacheRules service method. /// /// The response from the DescribePullThroughCacheRules service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The pull through cache rule was not found. Specify a valid pull through cache rule /// and try again. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for DescribePullThroughCacheRules Operation public virtual DescribePullThroughCacheRulesResponse DescribePullThroughCacheRules(DescribePullThroughCacheRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePullThroughCacheRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePullThroughCacheRulesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribePullThroughCacheRules operation. /// /// /// Container for the necessary parameters to execute the DescribePullThroughCacheRules operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribePullThroughCacheRules /// operation. /// REST API Reference for DescribePullThroughCacheRules Operation public virtual IAsyncResult BeginDescribePullThroughCacheRules(DescribePullThroughCacheRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePullThroughCacheRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePullThroughCacheRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribePullThroughCacheRules operation. /// /// /// The IAsyncResult returned by the call to BeginDescribePullThroughCacheRules. /// /// Returns a DescribePullThroughCacheRulesResult from ECR. /// REST API Reference for DescribePullThroughCacheRules Operation public virtual DescribePullThroughCacheRulesResponse EndDescribePullThroughCacheRules(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeRegistry /// /// Describes the settings for a registry. The replication configuration for a repository /// can be created or updated with the PutReplicationConfiguration API action. /// /// Container for the necessary parameters to execute the DescribeRegistry service method. /// /// The response from the DescribeRegistry service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for DescribeRegistry Operation public virtual DescribeRegistryResponse DescribeRegistry(DescribeRegistryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRegistryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRegistryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeRegistry operation. /// /// /// Container for the necessary parameters to execute the DescribeRegistry operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRegistry /// operation. /// REST API Reference for DescribeRegistry Operation public virtual IAsyncResult BeginDescribeRegistry(DescribeRegistryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRegistryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRegistryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeRegistry operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeRegistry. /// /// Returns a DescribeRegistryResult from ECR. /// REST API Reference for DescribeRegistry Operation public virtual DescribeRegistryResponse EndDescribeRegistry(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeRepositories /// /// Describes image repositories in a registry. /// /// Container for the necessary parameters to execute the DescribeRepositories service method. /// /// The response from the DescribeRepositories service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for DescribeRepositories Operation public virtual DescribeRepositoriesResponse DescribeRepositories(DescribeRepositoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeRepositories operation. /// /// /// Container for the necessary parameters to execute the DescribeRepositories operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRepositories /// operation. /// REST API Reference for DescribeRepositories Operation public virtual IAsyncResult BeginDescribeRepositories(DescribeRepositoriesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoriesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeRepositories operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeRepositories. /// /// Returns a DescribeRepositoriesResult from ECR. /// REST API Reference for DescribeRepositories Operation public virtual DescribeRepositoriesResponse EndDescribeRepositories(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAuthorizationToken /// /// 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. /// /// /// /// The authorizationToken returned is a base64 encoded string that can be /// decoded and used in a docker login command to authenticate to a registry. /// The CLI offers an get-login-password command that simplifies the login /// process. For more information, see Registry /// authentication in the Amazon Elastic Container Registry User Guide. /// /// /// Container for the necessary parameters to execute the GetAuthorizationToken service method. /// /// The response from the GetAuthorizationToken service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for GetAuthorizationToken Operation public virtual GetAuthorizationTokenResponse GetAuthorizationToken(GetAuthorizationTokenRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAuthorizationTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAuthorizationTokenResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAuthorizationToken operation. /// /// /// Container for the necessary parameters to execute the GetAuthorizationToken operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAuthorizationToken /// operation. /// REST API Reference for GetAuthorizationToken Operation public virtual IAsyncResult BeginGetAuthorizationToken(GetAuthorizationTokenRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAuthorizationTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAuthorizationTokenResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAuthorizationToken operation. /// /// /// The IAsyncResult returned by the call to BeginGetAuthorizationToken. /// /// Returns a GetAuthorizationTokenResult from ECR. /// REST API Reference for GetAuthorizationToken Operation public virtual GetAuthorizationTokenResponse EndGetAuthorizationToken(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetDownloadUrlForLayer /// /// 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. /// /// /// /// When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer /// that is not already cached. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the GetDownloadUrlForLayer service method. /// /// The response from the GetDownloadUrlForLayer service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified layer is not available because it is not associated with an image. Unassociated /// image layers may be cleaned up at any time. /// /// /// The specified layers could not be found, or the specified layer is not valid for this /// repository. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for GetDownloadUrlForLayer Operation public virtual GetDownloadUrlForLayerResponse GetDownloadUrlForLayer(GetDownloadUrlForLayerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDownloadUrlForLayerRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDownloadUrlForLayerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetDownloadUrlForLayer operation. /// /// /// Container for the necessary parameters to execute the GetDownloadUrlForLayer operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDownloadUrlForLayer /// operation. /// REST API Reference for GetDownloadUrlForLayer Operation public virtual IAsyncResult BeginGetDownloadUrlForLayer(GetDownloadUrlForLayerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDownloadUrlForLayerRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDownloadUrlForLayerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetDownloadUrlForLayer operation. /// /// /// The IAsyncResult returned by the call to BeginGetDownloadUrlForLayer. /// /// Returns a GetDownloadUrlForLayerResult from ECR. /// REST API Reference for GetDownloadUrlForLayer Operation public virtual GetDownloadUrlForLayerResponse EndGetDownloadUrlForLayer(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetLifecyclePolicy /// /// Retrieves the lifecycle policy for the specified repository. /// /// Container for the necessary parameters to execute the GetLifecyclePolicy service method. /// /// The response from the GetLifecyclePolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The lifecycle policy could not be found, and no policy is set to the repository. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for GetLifecyclePolicy Operation public virtual GetLifecyclePolicyResponse GetLifecyclePolicy(GetLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLifecyclePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetLifecyclePolicy operation. /// /// /// Container for the necessary parameters to execute the GetLifecyclePolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetLifecyclePolicy /// operation. /// REST API Reference for GetLifecyclePolicy Operation public virtual IAsyncResult BeginGetLifecyclePolicy(GetLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLifecyclePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetLifecyclePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetLifecyclePolicy. /// /// Returns a GetLifecyclePolicyResult from ECR. /// REST API Reference for GetLifecyclePolicy Operation public virtual GetLifecyclePolicyResponse EndGetLifecyclePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetLifecyclePolicyPreview /// /// Retrieves the results of the lifecycle policy preview request for the specified repository. /// /// Container for the necessary parameters to execute the GetLifecyclePolicyPreview service method. /// /// The response from the GetLifecyclePolicyPreview service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// There is no dry run for this repository. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for GetLifecyclePolicyPreview Operation public virtual GetLifecyclePolicyPreviewResponse GetLifecyclePolicyPreview(GetLifecyclePolicyPreviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetLifecyclePolicyPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLifecyclePolicyPreviewResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetLifecyclePolicyPreview operation. /// /// /// Container for the necessary parameters to execute the GetLifecyclePolicyPreview operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetLifecyclePolicyPreview /// operation. /// REST API Reference for GetLifecyclePolicyPreview Operation public virtual IAsyncResult BeginGetLifecyclePolicyPreview(GetLifecyclePolicyPreviewRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetLifecyclePolicyPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLifecyclePolicyPreviewResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetLifecyclePolicyPreview operation. /// /// /// The IAsyncResult returned by the call to BeginGetLifecyclePolicyPreview. /// /// Returns a GetLifecyclePolicyPreviewResult from ECR. /// REST API Reference for GetLifecyclePolicyPreview Operation public virtual GetLifecyclePolicyPreviewResponse EndGetLifecyclePolicyPreview(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetRegistryPolicy /// /// Retrieves the permissions policy for a registry. /// /// Container for the necessary parameters to execute the GetRegistryPolicy service method. /// /// The response from the GetRegistryPolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The registry doesn't have an associated registry policy. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for GetRegistryPolicy Operation public virtual GetRegistryPolicyResponse GetRegistryPolicy(GetRegistryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRegistryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRegistryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetRegistryPolicy operation. /// /// /// Container for the necessary parameters to execute the GetRegistryPolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRegistryPolicy /// operation. /// REST API Reference for GetRegistryPolicy Operation public virtual IAsyncResult BeginGetRegistryPolicy(GetRegistryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetRegistryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRegistryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetRegistryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetRegistryPolicy. /// /// Returns a GetRegistryPolicyResult from ECR. /// REST API Reference for GetRegistryPolicy Operation public virtual GetRegistryPolicyResponse EndGetRegistryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetRegistryScanningConfiguration /// /// Retrieves the scanning configuration for a registry. /// /// Container for the necessary parameters to execute the GetRegistryScanningConfiguration service method. /// /// The response from the GetRegistryScanningConfiguration service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for GetRegistryScanningConfiguration Operation public virtual GetRegistryScanningConfigurationResponse GetRegistryScanningConfiguration(GetRegistryScanningConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRegistryScanningConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRegistryScanningConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetRegistryScanningConfiguration operation. /// /// /// Container for the necessary parameters to execute the GetRegistryScanningConfiguration operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRegistryScanningConfiguration /// operation. /// REST API Reference for GetRegistryScanningConfiguration Operation public virtual IAsyncResult BeginGetRegistryScanningConfiguration(GetRegistryScanningConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetRegistryScanningConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRegistryScanningConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetRegistryScanningConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginGetRegistryScanningConfiguration. /// /// Returns a GetRegistryScanningConfigurationResult from ECR. /// REST API Reference for GetRegistryScanningConfiguration Operation public virtual GetRegistryScanningConfigurationResponse EndGetRegistryScanningConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetRepositoryPolicy /// /// Retrieves the repository policy for the specified repository. /// /// Container for the necessary parameters to execute the GetRepositoryPolicy service method. /// /// The response from the GetRepositoryPolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// The specified repository and registry combination does not have an associated repository /// policy. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for GetRepositoryPolicy Operation public virtual GetRepositoryPolicyResponse GetRepositoryPolicy(GetRepositoryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetRepositoryPolicy operation. /// /// /// Container for the necessary parameters to execute the GetRepositoryPolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRepositoryPolicy /// operation. /// REST API Reference for GetRepositoryPolicy Operation public virtual IAsyncResult BeginGetRepositoryPolicy(GetRepositoryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetRepositoryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetRepositoryPolicy. /// /// Returns a GetRepositoryPolicyResult from ECR. /// REST API Reference for GetRepositoryPolicy Operation public virtual GetRepositoryPolicyResponse EndGetRepositoryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region InitiateLayerUpload /// /// Notifies Amazon ECR that you intend to upload an image layer. /// /// /// /// When an image is pushed, the InitiateLayerUpload API is called once per image layer /// that has not already been uploaded. Whether or not an image layer has been uploaded /// is determined by the BatchCheckLayerAvailability API action. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the InitiateLayerUpload service method. /// /// The response from the InitiateLayerUpload service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The operation failed due to a KMS exception. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for InitiateLayerUpload Operation public virtual InitiateLayerUploadResponse InitiateLayerUpload(InitiateLayerUploadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InitiateLayerUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = InitiateLayerUploadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the InitiateLayerUpload operation. /// /// /// Container for the necessary parameters to execute the InitiateLayerUpload operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInitiateLayerUpload /// operation. /// REST API Reference for InitiateLayerUpload Operation public virtual IAsyncResult BeginInitiateLayerUpload(InitiateLayerUploadRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = InitiateLayerUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = InitiateLayerUploadResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the InitiateLayerUpload operation. /// /// /// The IAsyncResult returned by the call to BeginInitiateLayerUpload. /// /// Returns a InitiateLayerUploadResult from ECR. /// REST API Reference for InitiateLayerUpload Operation public virtual InitiateLayerUploadResponse EndInitiateLayerUpload(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListImages /// /// Lists all the image IDs for the specified repository. /// /// /// /// You can filter images based on whether or not they are tagged by using the tagStatus /// filter and specifying either TAGGED, UNTAGGED or ANY. /// 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. /// /// /// Container for the necessary parameters to execute the ListImages service method. /// /// The response from the ListImages service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for ListImages Operation public virtual ListImagesResponse ListImages(ListImagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListImagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListImagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListImages operation. /// /// /// Container for the necessary parameters to execute the ListImages operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListImages /// operation. /// REST API Reference for ListImages Operation public virtual IAsyncResult BeginListImages(ListImagesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListImagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListImagesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListImages operation. /// /// /// The IAsyncResult returned by the call to BeginListImages. /// /// Returns a ListImagesResult from ECR. /// REST API Reference for ListImages Operation public virtual ListImagesResponse EndListImages(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// List the tags for an Amazon ECR resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from ECR. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutImage /// /// Creates or updates the image manifest and tags associated with an image. /// /// /// /// When an image is pushed and all new image layers have been uploaded, the PutImage /// API is called once to create or update the image manifest and the tags associated /// with the image. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the PutImage service method. /// /// The response from the PutImage service method, as returned by ECR. /// /// The specified image has already been pushed, and there were no changes to the manifest /// or image tag after the last push. /// /// /// The specified image digest does not match the digest that Amazon ECR calculated for /// the image. /// /// /// The specified image is tagged with a tag that already exists. The repository is configured /// for tag immutability. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The operation failed due to a KMS exception. /// /// /// The specified layers could not be found, or the specified layer is not valid for this /// repository. /// /// /// The operation did not succeed because it would have exceeded a service limit for your /// account. For more information, see Amazon /// ECR service quotas in the Amazon Elastic Container Registry User Guide. /// /// /// The manifest list is referencing an image that does not exist. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for PutImage Operation public virtual PutImageResponse PutImage(PutImageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutImageRequestMarshaller.Instance; options.ResponseUnmarshaller = PutImageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutImage operation. /// /// /// Container for the necessary parameters to execute the PutImage operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutImage /// operation. /// REST API Reference for PutImage Operation public virtual IAsyncResult BeginPutImage(PutImageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutImageRequestMarshaller.Instance; options.ResponseUnmarshaller = PutImageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutImage operation. /// /// /// The IAsyncResult returned by the call to BeginPutImage. /// /// Returns a PutImageResult from ECR. /// REST API Reference for PutImage Operation public virtual PutImageResponse EndPutImage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutImageScanningConfiguration /// /// /// /// The PutImageScanningConfiguration API is being deprecated, in favor of /// specifying the image scanning configuration at the registry level. For more information, /// see PutRegistryScanningConfiguration. /// /// /// /// Updates the image scanning configuration for the specified repository. /// /// /// Container for the necessary parameters to execute the PutImageScanningConfiguration service method. /// /// The response from the PutImageScanningConfiguration service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for PutImageScanningConfiguration Operation public virtual PutImageScanningConfigurationResponse PutImageScanningConfiguration(PutImageScanningConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutImageScanningConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutImageScanningConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutImageScanningConfiguration operation. /// /// /// Container for the necessary parameters to execute the PutImageScanningConfiguration operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutImageScanningConfiguration /// operation. /// REST API Reference for PutImageScanningConfiguration Operation public virtual IAsyncResult BeginPutImageScanningConfiguration(PutImageScanningConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutImageScanningConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutImageScanningConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutImageScanningConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginPutImageScanningConfiguration. /// /// Returns a PutImageScanningConfigurationResult from ECR. /// REST API Reference for PutImageScanningConfiguration Operation public virtual PutImageScanningConfigurationResponse EndPutImageScanningConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutImageTagMutability /// /// 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. /// /// Container for the necessary parameters to execute the PutImageTagMutability service method. /// /// The response from the PutImageTagMutability service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for PutImageTagMutability Operation public virtual PutImageTagMutabilityResponse PutImageTagMutability(PutImageTagMutabilityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutImageTagMutabilityRequestMarshaller.Instance; options.ResponseUnmarshaller = PutImageTagMutabilityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutImageTagMutability operation. /// /// /// Container for the necessary parameters to execute the PutImageTagMutability operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutImageTagMutability /// operation. /// REST API Reference for PutImageTagMutability Operation public virtual IAsyncResult BeginPutImageTagMutability(PutImageTagMutabilityRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutImageTagMutabilityRequestMarshaller.Instance; options.ResponseUnmarshaller = PutImageTagMutabilityResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutImageTagMutability operation. /// /// /// The IAsyncResult returned by the call to BeginPutImageTagMutability. /// /// Returns a PutImageTagMutabilityResult from ECR. /// REST API Reference for PutImageTagMutability Operation public virtual PutImageTagMutabilityResponse EndPutImageTagMutability(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutLifecyclePolicy /// /// Creates or updates the lifecycle policy for the specified repository. For more information, /// see Lifecycle /// policy template. /// /// Container for the necessary parameters to execute the PutLifecyclePolicy service method. /// /// The response from the PutLifecyclePolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for PutLifecyclePolicy Operation public virtual PutLifecyclePolicyResponse PutLifecyclePolicy(PutLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecyclePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutLifecyclePolicy operation. /// /// /// Container for the necessary parameters to execute the PutLifecyclePolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutLifecyclePolicy /// operation. /// REST API Reference for PutLifecyclePolicy Operation public virtual IAsyncResult BeginPutLifecyclePolicy(PutLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecyclePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutLifecyclePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginPutLifecyclePolicy. /// /// Returns a PutLifecyclePolicyResult from ECR. /// REST API Reference for PutLifecyclePolicy Operation public virtual PutLifecyclePolicyResponse EndPutLifecyclePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutRegistryPolicy /// /// Creates or updates the permissions policy for your registry. /// /// /// /// A registry policy is used to specify permissions for another Amazon Web Services account /// and is used when configuring cross-account replication. For more information, see /// Registry /// permissions in the Amazon Elastic Container Registry User Guide. /// /// /// Container for the necessary parameters to execute the PutRegistryPolicy service method. /// /// The response from the PutRegistryPolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for PutRegistryPolicy Operation public virtual PutRegistryPolicyResponse PutRegistryPolicy(PutRegistryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRegistryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRegistryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutRegistryPolicy operation. /// /// /// Container for the necessary parameters to execute the PutRegistryPolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRegistryPolicy /// operation. /// REST API Reference for PutRegistryPolicy Operation public virtual IAsyncResult BeginPutRegistryPolicy(PutRegistryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutRegistryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRegistryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutRegistryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginPutRegistryPolicy. /// /// Returns a PutRegistryPolicyResult from ECR. /// REST API Reference for PutRegistryPolicy Operation public virtual PutRegistryPolicyResponse EndPutRegistryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutRegistryScanningConfiguration /// /// Creates or updates the scanning configuration for your private registry. /// /// Container for the necessary parameters to execute the PutRegistryScanningConfiguration service method. /// /// The response from the PutRegistryScanningConfiguration service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for PutRegistryScanningConfiguration Operation public virtual PutRegistryScanningConfigurationResponse PutRegistryScanningConfiguration(PutRegistryScanningConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRegistryScanningConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRegistryScanningConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutRegistryScanningConfiguration operation. /// /// /// Container for the necessary parameters to execute the PutRegistryScanningConfiguration operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRegistryScanningConfiguration /// operation. /// REST API Reference for PutRegistryScanningConfiguration Operation public virtual IAsyncResult BeginPutRegistryScanningConfiguration(PutRegistryScanningConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutRegistryScanningConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRegistryScanningConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutRegistryScanningConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginPutRegistryScanningConfiguration. /// /// Returns a PutRegistryScanningConfigurationResult from ECR. /// REST API Reference for PutRegistryScanningConfiguration Operation public virtual PutRegistryScanningConfigurationResponse EndPutRegistryScanningConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutReplicationConfiguration /// /// 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. /// /// /// /// When configuring cross-account replication, the destination account must grant the /// source account permission to replicate. This permission is controlled using a registry /// permissions policy. For more information, see PutRegistryPolicy. /// /// /// /// Container for the necessary parameters to execute the PutReplicationConfiguration service method. /// /// The response from the PutReplicationConfiguration service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// /// There was an exception validating this request. /// /// REST API Reference for PutReplicationConfiguration Operation public virtual PutReplicationConfigurationResponse PutReplicationConfiguration(PutReplicationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutReplicationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutReplicationConfiguration operation. /// /// /// Container for the necessary parameters to execute the PutReplicationConfiguration operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutReplicationConfiguration /// operation. /// REST API Reference for PutReplicationConfiguration Operation public virtual IAsyncResult BeginPutReplicationConfiguration(PutReplicationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutReplicationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutReplicationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutReplicationConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginPutReplicationConfiguration. /// /// Returns a PutReplicationConfigurationResult from ECR. /// REST API Reference for PutReplicationConfiguration Operation public virtual PutReplicationConfigurationResponse EndPutReplicationConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SetRepositoryPolicy /// /// 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. /// /// Container for the necessary parameters to execute the SetRepositoryPolicy service method. /// /// The response from the SetRepositoryPolicy service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for SetRepositoryPolicy Operation public virtual SetRepositoryPolicyResponse SetRepositoryPolicy(SetRepositoryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetRepositoryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SetRepositoryPolicy operation. /// /// /// Container for the necessary parameters to execute the SetRepositoryPolicy operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetRepositoryPolicy /// operation. /// REST API Reference for SetRepositoryPolicy Operation public virtual IAsyncResult BeginSetRepositoryPolicy(SetRepositoryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetRepositoryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SetRepositoryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginSetRepositoryPolicy. /// /// Returns a SetRepositoryPolicyResult from ECR. /// REST API Reference for SetRepositoryPolicy Operation public virtual SetRepositoryPolicyResponse EndSetRepositoryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartImageScan /// /// 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. /// /// Container for the necessary parameters to execute the StartImageScan service method. /// /// The response from the StartImageScan service method, as returned by ECR. /// /// The image requested does not exist in the specified repository. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The operation did not succeed because it would have exceeded a service limit for your /// account. For more information, see Amazon /// ECR service quotas in the Amazon Elastic Container Registry User Guide. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The image is of a type that cannot be scanned. /// /// /// There was an exception validating this request. /// /// REST API Reference for StartImageScan Operation public virtual StartImageScanResponse StartImageScan(StartImageScanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartImageScanRequestMarshaller.Instance; options.ResponseUnmarshaller = StartImageScanResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartImageScan operation. /// /// /// Container for the necessary parameters to execute the StartImageScan operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartImageScan /// operation. /// REST API Reference for StartImageScan Operation public virtual IAsyncResult BeginStartImageScan(StartImageScanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartImageScanRequestMarshaller.Instance; options.ResponseUnmarshaller = StartImageScanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartImageScan operation. /// /// /// The IAsyncResult returned by the call to BeginStartImageScan. /// /// Returns a StartImageScanResult from ECR. /// REST API Reference for StartImageScan Operation public virtual StartImageScanResponse EndStartImageScan(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartLifecyclePolicyPreview /// /// 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. /// /// Container for the necessary parameters to execute the StartLifecyclePolicyPreview service method. /// /// The response from the StartLifecyclePolicyPreview service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The lifecycle policy could not be found, and no policy is set to the repository. /// /// /// The previous lifecycle policy preview request has not completed. Wait and try again. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// REST API Reference for StartLifecyclePolicyPreview Operation public virtual StartLifecyclePolicyPreviewResponse StartLifecyclePolicyPreview(StartLifecyclePolicyPreviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartLifecyclePolicyPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = StartLifecyclePolicyPreviewResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartLifecyclePolicyPreview operation. /// /// /// Container for the necessary parameters to execute the StartLifecyclePolicyPreview operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartLifecyclePolicyPreview /// operation. /// REST API Reference for StartLifecyclePolicyPreview Operation public virtual IAsyncResult BeginStartLifecyclePolicyPreview(StartLifecyclePolicyPreviewRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartLifecyclePolicyPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = StartLifecyclePolicyPreviewResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartLifecyclePolicyPreview operation. /// /// /// The IAsyncResult returned by the call to BeginStartLifecyclePolicyPreview. /// /// Returns a StartLifecyclePolicyPreviewResult from ECR. /// REST API Reference for StartLifecyclePolicyPreview Operation public virtual StartLifecyclePolicyPreviewResponse EndStartLifecyclePolicyPreview(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// 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. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// An invalid parameter has been specified. Tag keys can have a maximum character length /// of 128 characters, and tag values can have a maximum length of 256 characters. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The list of tags on the repository is over the limit. The maximum number of tags that /// can be applied to a repository is 50. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from ECR. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Deletes specified tags from a resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by ECR. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// An invalid parameter has been specified. Tag keys can have a maximum character length /// of 128 characters, and tag values can have a maximum length of 256 characters. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The list of tags on the repository is over the limit. The maximum number of tags that /// can be applied to a repository is 50. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from ECR. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UploadLayerPart /// /// Uploads an image layer part to Amazon ECR. /// /// /// /// When an image is pushed, each new image layer is uploaded in parts. The maximum size /// of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart /// API is called once per each new image layer part. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the UploadLayerPart service method. /// /// The response from the UploadLayerPart service method, as returned by ECR. /// /// The layer part size is not valid, or the first byte specified is not consecutive to /// the last byte of a previous layer part upload. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The operation failed due to a KMS exception. /// /// /// The operation did not succeed because it would have exceeded a service limit for your /// account. For more information, see Amazon /// ECR service quotas in the Amazon Elastic Container Registry User Guide. /// /// /// The specified repository could not be found. Check the spelling of the specified repository /// and ensure that you are performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The upload could not be found, or the specified upload ID is not valid for this repository. /// /// REST API Reference for UploadLayerPart Operation public virtual UploadLayerPartResponse UploadLayerPart(UploadLayerPartRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UploadLayerPartRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadLayerPartResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UploadLayerPart operation. /// /// /// Container for the necessary parameters to execute the UploadLayerPart operation on AmazonECRClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUploadLayerPart /// operation. /// REST API Reference for UploadLayerPart Operation public virtual IAsyncResult BeginUploadLayerPart(UploadLayerPartRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UploadLayerPartRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadLayerPartResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UploadLayerPart operation. /// /// /// The IAsyncResult returned by the call to BeginUploadLayerPart. /// /// Returns a UploadLayerPartResult from ECR. /// REST API Reference for UploadLayerPart Operation public virtual UploadLayerPartResponse EndUploadLayerPart(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }