/* * 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 cloudcontrol-2021-09-30.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CloudControlApi.Model; using Amazon.CloudControlApi.Model.Internal.MarshallTransformations; using Amazon.CloudControlApi.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CloudControlApi { /// /// Implementation for accessing CloudControlApi /// /// For more information about Amazon Web Services Cloud Control API, see the Amazon /// Web Services Cloud Control API User Guide. /// public partial class AmazonCloudControlApiClient : AmazonServiceClient, IAmazonCloudControlApi { private static IServiceMetadata serviceMetadata = new AmazonCloudControlApiMetadata(); private ICloudControlApiPaginatorFactory _paginators; /// /// Paginators for the service /// public ICloudControlApiPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CloudControlApiPaginatorFactory(this); } return this._paginators; } } #region Constructors /// /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudControlApiConfig()) { } /// /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient Configuration Object public AmazonCloudControlApiClient(AmazonCloudControlApiConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonCloudControlApiClient with AWS Credentials /// /// AWS Credentials public AmazonCloudControlApiClient(AWSCredentials credentials) : this(credentials, new AmazonCloudControlApiConfig()) { } /// /// Constructs AmazonCloudControlApiClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCloudControlApiClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCloudControlApiClient with AWS Credentials and an /// AmazonCloudControlApiClient Configuration object. /// /// AWS Credentials /// The AmazonCloudControlApiClient Configuration Object public AmazonCloudControlApiClient(AWSCredentials credentials, AmazonCloudControlApiConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCloudControlApiClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudControlApiConfig()) { } /// /// Constructs AmazonCloudControlApiClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloudControlApiConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCloudControlApiClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudControlApiClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCloudControlApiClient Configuration Object public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudControlApiConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCloudControlApiClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudControlApiConfig()) { } /// /// Constructs AmazonCloudControlApiClient 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 AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloudControlApiConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCloudControlApiClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCloudControlApiClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCloudControlApiClient Configuration Object public AmazonCloudControlApiClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudControlApiConfig 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 AmazonCloudControlApiEndpointResolver()); } /// /// 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 CancelResourceRequest /// /// Cancels the specified resource operation request. For more information, see Canceling /// resource operation requests in the Amazon Web Services Cloud Control API User /// Guide. /// /// /// /// Only resource operations requests with a status of PENDING or IN_PROGRESS /// can be canceled. /// /// /// Container for the necessary parameters to execute the CancelResourceRequest service method. /// /// The response from the CancelResourceRequest service method, as returned by CloudControlApi. /// /// The resource is currently being modified by another operation. /// /// /// A resource operation with the specified request token can't be found. /// /// REST API Reference for CancelResourceRequest Operation public virtual CancelResourceRequestResponse CancelResourceRequest(CancelResourceRequestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelResourceRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelResourceRequestResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Cancels the specified resource operation request. For more information, see Canceling /// resource operation requests in the Amazon Web Services Cloud Control API User /// Guide. /// /// /// /// Only resource operations requests with a status of PENDING or IN_PROGRESS /// can be canceled. /// /// /// Container for the necessary parameters to execute the CancelResourceRequest service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelResourceRequest service method, as returned by CloudControlApi. /// /// The resource is currently being modified by another operation. /// /// /// A resource operation with the specified request token can't be found. /// /// REST API Reference for CancelResourceRequest Operation public virtual Task CancelResourceRequestAsync(CancelResourceRequestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelResourceRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelResourceRequestResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateResource /// /// Creates the specified resource. For more information, see Creating /// a resource in the Amazon Web Services Cloud Control API User Guide. /// /// /// /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling GetResourceRequestStatus /// using the RequestToken of the ProgressEvent type returned /// by CreateResource. /// /// /// Container for the necessary parameters to execute the CreateResource service method. /// /// The response from the CreateResource service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The specified client token has already been used in another resource request. /// /// /// /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// /// /// /// Another resource operation is currently being performed on this resource. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for CreateResource Operation public virtual CreateResourceResponse CreateResource(CreateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates the specified resource. For more information, see Creating /// a resource in the Amazon Web Services Cloud Control API User Guide. /// /// /// /// After you have initiated a resource creation request, you can monitor the progress /// of your request by calling GetResourceRequestStatus /// using the RequestToken of the ProgressEvent type returned /// by CreateResource. /// /// /// Container for the necessary parameters to execute the CreateResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateResource service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The specified client token has already been used in another resource request. /// /// /// /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// /// /// /// Another resource operation is currently being performed on this resource. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for CreateResource Operation public virtual Task CreateResourceAsync(CreateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteResource /// /// Deletes the specified resource. For details, see Deleting /// a resource in the Amazon Web Services Cloud Control API User Guide. /// /// /// /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling GetResourceRequestStatus /// using the RequestToken of the ProgressEvent returned by /// DeleteResource. /// /// /// Container for the necessary parameters to execute the DeleteResource service method. /// /// The response from the DeleteResource service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The specified client token has already been used in another resource request. /// /// /// /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// /// /// /// Another resource operation is currently being performed on this resource. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for DeleteResource Operation public virtual DeleteResourceResponse DeleteResource(DeleteResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the specified resource. For details, see Deleting /// a resource in the Amazon Web Services Cloud Control API User Guide. /// /// /// /// After you have initiated a resource deletion request, you can monitor the progress /// of your request by calling GetResourceRequestStatus /// using the RequestToken of the ProgressEvent returned by /// DeleteResource. /// /// /// Container for the necessary parameters to execute the DeleteResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteResource service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The specified client token has already been used in another resource request. /// /// /// /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// /// /// /// Another resource operation is currently being performed on this resource. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for DeleteResource Operation public virtual Task DeleteResourceAsync(DeleteResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetResource /// /// Returns information about the current state of the specified resource. For details, /// see Reading /// a resource's current state. /// /// /// /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// /// /// Container for the necessary parameters to execute the GetResource service method. /// /// The response from the GetResource service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for GetResource Operation public virtual GetResourceResponse GetResource(GetResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the current state of the specified resource. For details, /// see Reading /// a resource's current state. /// /// /// /// You can use this action to return information about an existing resource in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// /// /// Container for the necessary parameters to execute the GetResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResource service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for GetResource Operation public virtual Task GetResourceAsync(GetResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetResourceRequestStatus /// /// Returns the current status of a resource operation request. For more information, /// see Tracking /// the progress of resource operation requests in the Amazon Web Services Cloud /// Control API User Guide. /// /// Container for the necessary parameters to execute the GetResourceRequestStatus service method. /// /// The response from the GetResourceRequestStatus service method, as returned by CloudControlApi. /// /// A resource operation with the specified request token can't be found. /// /// REST API Reference for GetResourceRequestStatus Operation public virtual GetResourceRequestStatusResponse GetResourceRequestStatus(GetResourceRequestStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceRequestStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the current status of a resource operation request. For more information, /// see Tracking /// the progress of resource operation requests in the Amazon Web Services Cloud /// Control API User Guide. /// /// Container for the necessary parameters to execute the GetResourceRequestStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourceRequestStatus service method, as returned by CloudControlApi. /// /// A resource operation with the specified request token can't be found. /// /// REST API Reference for GetResourceRequestStatus Operation public virtual Task GetResourceRequestStatusAsync(GetResourceRequestStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceRequestStatusResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListResourceRequests /// /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see Listing /// active resource operation requests in the Amazon Web Services Cloud Control /// API User Guide. /// /// /// /// Resource operation requests expire after 7 days. /// /// /// /// Container for the necessary parameters to execute the ListResourceRequests service method. /// /// The response from the ListResourceRequests service method, as returned by CloudControlApi. /// REST API Reference for ListResourceRequests Operation public virtual ListResourceRequestsResponse ListResourceRequests(ListResourceRequestsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourceRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourceRequestsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns existing resource operation requests. This includes requests of all status /// types. For more information, see Listing /// active resource operation requests in the Amazon Web Services Cloud Control /// API User Guide. /// /// /// /// Resource operation requests expire after 7 days. /// /// /// /// Container for the necessary parameters to execute the ListResourceRequests service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListResourceRequests service method, as returned by CloudControlApi. /// REST API Reference for ListResourceRequests Operation public virtual Task ListResourceRequestsAsync(ListResourceRequestsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourceRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourceRequestsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListResources /// /// Returns information about the specified resources. For more information, see Discovering /// resources in the Amazon Web Services Cloud Control API User Guide. /// /// /// /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// /// /// Container for the necessary parameters to execute the ListResources service method. /// /// The response from the ListResources service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for ListResources Operation public virtual ListResourcesResponse ListResources(ListResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the specified resources. For more information, see Discovering /// resources in the Amazon Web Services Cloud Control API User Guide. /// /// /// /// You can use this action to return information about existing resources in your account /// and Amazon Web Services Region, whether those resources were provisioned using Cloud /// Control API. /// /// /// Container for the necessary parameters to execute the ListResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListResources service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for ListResources Operation public virtual Task ListResourcesAsync(ListResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListResourcesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateResource /// /// Updates the specified property values in the resource. /// /// /// /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the /// RFC 6902 - JavaScript Object Notation (JSON) Patch standard. /// /// /// /// For details on how Cloud Control API performs resource update operations, see Updating /// a resource in the Amazon Web Services Cloud Control API User Guide. /// /// /// /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling GetResourceRequestStatus /// using the RequestToken of the ProgressEvent returned by /// UpdateResource. /// /// /// /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the Resource /// and property types reference in the CloudFormation Users Guide. /// /// /// Container for the necessary parameters to execute the UpdateResource service method. /// /// The response from the UpdateResource service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The specified client token has already been used in another resource request. /// /// /// /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// /// /// /// Another resource operation is currently being performed on this resource. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for UpdateResource Operation public virtual UpdateResourceResponse UpdateResource(UpdateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the specified property values in the resource. /// /// /// /// You specify your resource property updates as a list of patch operations contained /// in a JSON patch document that adheres to the /// RFC 6902 - JavaScript Object Notation (JSON) Patch standard. /// /// /// /// For details on how Cloud Control API performs resource update operations, see Updating /// a resource in the Amazon Web Services Cloud Control API User Guide. /// /// /// /// After you have initiated a resource update request, you can monitor the progress of /// your request by calling GetResourceRequestStatus /// using the RequestToken of the ProgressEvent returned by /// UpdateResource. /// /// /// /// For more information about the properties of a specific resource, refer to the related /// topic for the resource in the Resource /// and property types reference in the CloudFormation Users Guide. /// /// /// Container for the necessary parameters to execute the UpdateResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateResource service method, as returned by CloudControlApi. /// /// The resource with the name requested already exists. /// /// /// The specified client token has already been used in another resource request. /// /// /// /// It's best practice for client tokens to be unique for each resource operation request. /// However, client token expire after 36 hours. /// /// /// /// Another resource operation is currently being performed on this resource. /// /// /// The resource handler has returned that the downstream service generated an error that /// doesn't map to any other handler error code. /// /// /// The resource handler has failed without a returning a more specific error code. This /// can include timeouts. /// /// /// The resource handler has returned that an unexpected error occurred within the resource /// handler. /// /// /// The resource handler has returned that the credentials provided by the user are invalid. /// /// /// The resource handler has returned that invalid input from the user has generated a /// generic exception. /// /// /// The resource handler has returned that the request couldn't be completed due to networking /// issues, such as a failure to receive a response from the server. /// /// /// The resource handler has returned that the downstream resource failed to complete /// all of its ready-state checks. /// /// /// One or more properties included in this resource operation are defined as create-only, /// and therefore can't be updated. /// /// /// Cloud Control API hasn't received a valid response from the resource handler, due /// to a configuration error. This includes issues such as the resource handler returning /// an invalid response, or timing out. /// /// /// The resource is temporarily unavailable to be acted upon. For example, if the resource /// is currently undergoing an operation and can't be acted upon until that operation /// is finished. /// /// /// A resource with the specified identifier can't be found. /// /// /// The resource handler has returned that the downstream service returned an internal /// error, typically with a 5XX HTTP status code. /// /// /// The resource handler has returned that a non-transient resource limit was reached /// on the service side. /// /// /// The request was denied due to request throttling. /// /// /// The specified extension doesn't exist in the CloudFormation registry. /// /// /// The specified resource doesn't support this resource operation. /// /// REST API Reference for UpdateResource Operation public virtual Task UpdateResourceAsync(UpdateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }