IAsyncResult invokeDeleteClusterParameterGroup(DeleteClusterParameterGroupRequest deleteClusterParameterGroupRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteClusterParameterGroupRequestMarshaller().Marshall(deleteClusterParameterGroupRequest); var unmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Deletes a specified Amazon Redshift parameter group. <note>You cannot delete a parameter /// group if it is associated with a cluster.</note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteClusterParameterGroup service method.</param> /// /// <returns>The response from the DeleteClusterParameterGroup service method, as returned by Redshift.</returns> /// <exception cref="Amazon.Redshift.Model.ClusterParameterGroupNotFoundException"> /// The parameter group name does not refer to an existing parameter group. /// </exception> /// <exception cref="Amazon.Redshift.Model.InvalidClusterParameterGroupStateException"> /// The cluster parameter group action can not be completed because another task is in /// progress that involves the parameter group. Wait a few moments and try the operation /// again. /// </exception> public DeleteClusterParameterGroupResponse DeleteClusterParameterGroup(DeleteClusterParameterGroupRequest request) { var marshaller = new DeleteClusterParameterGroupRequestMarshaller(); var unmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.Instance; return Invoke<DeleteClusterParameterGroupRequest,DeleteClusterParameterGroupResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteClusterParameterGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteClusterParameterGroup 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 EndDeleteClusterParameterGroup /// operation.</returns> public IAsyncResult BeginDeleteClusterParameterGroup(DeleteClusterParameterGroupRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteClusterParameterGroupRequestMarshaller(); var unmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.Instance; return BeginInvoke<DeleteClusterParameterGroupRequest>(request, marshaller, unmarshaller, callback, state); }
public void DeleteClusterParameterGroupMarshallTest() { var operation = service_model.FindOperation("DeleteClusterParameterGroup"); var request = InstantiateClassGenerator.Execute<DeleteClusterParameterGroupRequest>(); var marshaller = new DeleteClusterParameterGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para> Deletes a specified Amazon Redshift parameter group. <para><b>NOTE:</b>You cannot delete a parameter group if it is associated with a /// cluster.</para> </para> /// </summary> /// /// <param name="deleteClusterParameterGroupRequest">Container for the necessary parameters to execute the DeleteClusterParameterGroup service /// method on AmazonRedshift.</param> /// /// <exception cref="T:Amazon.Redshift.Model.InvalidClusterParameterGroupStateException" /> /// <exception cref="T:Amazon.Redshift.Model.ClusterParameterGroupNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DeleteClusterParameterGroupResponse> DeleteClusterParameterGroupAsync(DeleteClusterParameterGroupRequest deleteClusterParameterGroupRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteClusterParameterGroupRequestMarshaller(); var unmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteClusterParameterGroupRequest, DeleteClusterParameterGroupResponse>(deleteClusterParameterGroupRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para> Deletes a specified Amazon Redshift parameter group. <para><b>NOTE:</b>You cannot delete a parameter group if it is associated with a /// cluster.</para> </para> /// </summary> /// /// <param name="deleteClusterParameterGroupRequest">Container for the necessary parameters to execute the DeleteClusterParameterGroup service /// method on AmazonRedshift.</param> /// /// <exception cref="T:Amazon.Redshift.Model.InvalidClusterParameterGroupStateException" /> /// <exception cref="T:Amazon.Redshift.Model.ClusterParameterGroupNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteClusterParameterGroupResponse> DeleteClusterParameterGroupAsync(DeleteClusterParameterGroupRequest deleteClusterParameterGroupRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteClusterParameterGroupRequestMarshaller(); var unmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteClusterParameterGroupRequest, DeleteClusterParameterGroupResponse>(deleteClusterParameterGroupRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteClusterParameterGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteClusterParameterGroup 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<DeleteClusterParameterGroupResponse> DeleteClusterParameterGroupAsync(DeleteClusterParameterGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteClusterParameterGroupRequestMarshaller(); var unmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteClusterParameterGroupRequest,DeleteClusterParameterGroupResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeDeleteClusterParameterGroup(DeleteClusterParameterGroupRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteClusterParameterGroupRequestMarshaller(); var unmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }