IAsyncResult invokeDisableSnapshotCopy(DisableSnapshotCopyRequest disableSnapshotCopyRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DisableSnapshotCopyRequestMarshaller().Marshall(disableSnapshotCopyRequest); var unmarshaller = DisableSnapshotCopyResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Disables the automatic copying of snapshots from one region to another region for /// a specified cluster. /// /// /// <para> /// If your cluster and its snapshots are encrypted using a customer master key (CMK) /// from AWS KMS, use <a>DeleteSnapshotCopyGrant</a> to delete the grant that grants Amazon /// Redshift permission to the CMK in the destination region. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableSnapshotCopy service method.</param> /// /// <returns>The response from the DisableSnapshotCopy service method, as returned by Redshift.</returns> /// <exception cref="Amazon.Redshift.Model.ClusterNotFoundException"> /// The <i>ClusterIdentifier</i> parameter does not refer to an existing cluster. /// </exception> /// <exception cref="Amazon.Redshift.Model.InvalidClusterStateException"> /// The specified cluster is not in the <code>available</code> state. /// </exception> /// <exception cref="Amazon.Redshift.Model.SnapshotCopyAlreadyDisabledException"> /// The cluster already has cross-region snapshot copy disabled. /// </exception> /// <exception cref="Amazon.Redshift.Model.UnauthorizedOperationException"> /// Your account is not authorized to perform the requested operation. /// </exception> public DisableSnapshotCopyResponse DisableSnapshotCopy(DisableSnapshotCopyRequest request) { var marshaller = new DisableSnapshotCopyRequestMarshaller(); var unmarshaller = DisableSnapshotCopyResponseUnmarshaller.Instance; return Invoke<DisableSnapshotCopyRequest,DisableSnapshotCopyResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DisableSnapshotCopy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableSnapshotCopy operation on AmazonRedshiftClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableSnapshotCopy /// operation.</returns> public IAsyncResult BeginDisableSnapshotCopy(DisableSnapshotCopyRequest request, AsyncCallback callback, object state) { var marshaller = new DisableSnapshotCopyRequestMarshaller(); var unmarshaller = DisableSnapshotCopyResponseUnmarshaller.Instance; return BeginInvoke<DisableSnapshotCopyRequest>(request, marshaller, unmarshaller, callback, state); }
public void DisableSnapshotCopyMarshallTest() { var operation = service_model.FindOperation("DisableSnapshotCopy"); var request = InstantiateClassGenerator.Execute<DisableSnapshotCopyRequest>(); var marshaller = new DisableSnapshotCopyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DisableSnapshotCopyResponseUnmarshaller.Instance.Unmarshall(context) as DisableSnapshotCopyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>Disables the automatic copying of snapshots from one region to another region for a specified cluster.</para> /// </summary> /// /// <param name="disableSnapshotCopyRequest">Container for the necessary parameters to execute the DisableSnapshotCopy service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DisableSnapshotCopy service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.SnapshotCopyAlreadyDisabledException" /> /// <exception cref="T:Amazon.Redshift.Model.UnauthorizedOperationException" /> /// <exception cref="T:Amazon.Redshift.Model.InvalidClusterStateException" /> /// <exception cref="T:Amazon.Redshift.Model.ClusterNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DisableSnapshotCopyResponse> DisableSnapshotCopyAsync(DisableSnapshotCopyRequest disableSnapshotCopyRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisableSnapshotCopyRequestMarshaller(); var unmarshaller = DisableSnapshotCopyResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DisableSnapshotCopyRequest, DisableSnapshotCopyResponse>(disableSnapshotCopyRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para>Disables the automatic copying of snapshots from one region to another region for a specified cluster.</para> /// </summary> /// /// <param name="disableSnapshotCopyRequest">Container for the necessary parameters to execute the DisableSnapshotCopy service method on /// AmazonRedshift.</param> /// /// <returns>The response from the DisableSnapshotCopy service method, as returned by AmazonRedshift.</returns> /// /// <exception cref="T:Amazon.Redshift.Model.SnapshotCopyAlreadyDisabledException" /> /// <exception cref="T:Amazon.Redshift.Model.UnauthorizedOperationException" /> /// <exception cref="T:Amazon.Redshift.Model.ClusterNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DisableSnapshotCopyResponse> DisableSnapshotCopyAsync(DisableSnapshotCopyRequest disableSnapshotCopyRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisableSnapshotCopyRequestMarshaller(); var unmarshaller = DisableSnapshotCopyResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DisableSnapshotCopyRequest, DisableSnapshotCopyResponse>(disableSnapshotCopyRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DisableSnapshotCopy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableSnapshotCopy operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<DisableSnapshotCopyResponse> DisableSnapshotCopyAsync(DisableSnapshotCopyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisableSnapshotCopyRequestMarshaller(); var unmarshaller = DisableSnapshotCopyResponseUnmarshaller.Instance; return InvokeAsync<DisableSnapshotCopyRequest,DisableSnapshotCopyResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDisableSnapshotCopy(DisableSnapshotCopyRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DisableSnapshotCopyRequestMarshaller(); var unmarshaller = DisableSnapshotCopyResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }