IAsyncResult invokeRotateEncryptionKey(RotateEncryptionKeyRequest rotateEncryptionKeyRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new RotateEncryptionKeyRequestMarshaller().Marshall(rotateEncryptionKeyRequest); var unmarshaller = RotateEncryptionKeyResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Rotates the encryption keys for a cluster. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RotateEncryptionKey service method.</param> /// /// <returns>The response from the RotateEncryptionKey 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> public RotateEncryptionKeyResponse RotateEncryptionKey(RotateEncryptionKeyRequest request) { var marshaller = new RotateEncryptionKeyRequestMarshaller(); var unmarshaller = RotateEncryptionKeyResponseUnmarshaller.Instance; return Invoke<RotateEncryptionKeyRequest,RotateEncryptionKeyResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the RotateEncryptionKey operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RotateEncryptionKey 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 EndRotateEncryptionKey /// operation.</returns> public IAsyncResult BeginRotateEncryptionKey(RotateEncryptionKeyRequest request, AsyncCallback callback, object state) { var marshaller = new RotateEncryptionKeyRequestMarshaller(); var unmarshaller = RotateEncryptionKeyResponseUnmarshaller.Instance; return BeginInvoke<RotateEncryptionKeyRequest>(request, marshaller, unmarshaller, callback, state); }
public void RotateEncryptionKeyMarshallTest() { var operation = service_model.FindOperation("RotateEncryptionKey"); var request = InstantiateClassGenerator.Execute<RotateEncryptionKeyRequest>(); var marshaller = new RotateEncryptionKeyRequestMarshaller(); 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 = RotateEncryptionKeyResponseUnmarshaller.Instance.Unmarshall(context) as RotateEncryptionKeyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Rotates the encryption keys for a cluster. </para> /// </summary> /// /// <param name="rotateEncryptionKeyRequest">Container for the necessary parameters to execute the RotateEncryptionKey service method on /// AmazonRedshift.</param> /// /// <returns>The response from the RotateEncryptionKey service method, as returned by AmazonRedshift.</returns> /// /// <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<RotateEncryptionKeyResponse> RotateEncryptionKeyAsync(RotateEncryptionKeyRequest rotateEncryptionKeyRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RotateEncryptionKeyRequestMarshaller(); var unmarshaller = RotateEncryptionKeyResponseUnmarshaller.GetInstance(); return Invoke<IRequest, RotateEncryptionKeyRequest, RotateEncryptionKeyResponse>(rotateEncryptionKeyRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para> Rotates the encryption keys for a cluster. </para> /// </summary> /// /// <param name="rotateEncryptionKeyRequest">Container for the necessary parameters to execute the RotateEncryptionKey service method on /// AmazonRedshift.</param> /// /// <returns>The response from the RotateEncryptionKey service method, as returned by AmazonRedshift.</returns> /// /// <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 async Task<RotateEncryptionKeyResponse> RotateEncryptionKeyAsync(RotateEncryptionKeyRequest rotateEncryptionKeyRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RotateEncryptionKeyRequestMarshaller(); var unmarshaller = RotateEncryptionKeyResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, RotateEncryptionKeyRequest, RotateEncryptionKeyResponse>(rotateEncryptionKeyRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the RotateEncryptionKey operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RotateEncryptionKey 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<RotateEncryptionKeyResponse> RotateEncryptionKeyAsync(RotateEncryptionKeyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RotateEncryptionKeyRequestMarshaller(); var unmarshaller = RotateEncryptionKeyResponseUnmarshaller.Instance; return InvokeAsync<RotateEncryptionKeyRequest,RotateEncryptionKeyResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeRotateEncryptionKey(RotateEncryptionKeyRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new RotateEncryptionKeyRequestMarshaller(); var unmarshaller = RotateEncryptionKeyResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }