/// <summary> /// <para> Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted. </para> /// <para><b>NOTE:</b> The specified database parameter group cannot be associated with any DB Instances. </para> /// </summary> /// /// <param name="deleteDBParameterGroupRequest">Container for the necessary parameters to execute the DeleteDBParameterGroup service method on /// AmazonRDS.</param> /// /// <exception cref="DBParameterGroupNotFoundException"/> /// <exception cref="InvalidDBParameterGroupStateException"/> public DeleteDBParameterGroupResponse DeleteDBParameterGroup(DeleteDBParameterGroupRequest deleteDBParameterGroupRequest) { IRequest <DeleteDBParameterGroupRequest> request = new DeleteDBParameterGroupRequestMarshaller().Marshall(deleteDBParameterGroupRequest); DeleteDBParameterGroupResponse response = Invoke <DeleteDBParameterGroupRequest, DeleteDBParameterGroupResponse> (request, this.signer, DeleteDBParameterGroupResponseUnmarshaller.GetInstance()); return(response); }
IAsyncResult invokeDeleteDBParameterGroup(DeleteDBParameterGroupRequest deleteDBParameterGroupRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteDBParameterGroupRequestMarshaller().Marshall(deleteDBParameterGroupRequest); var unmarshaller = DeleteDBParameterGroupResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DeleteDBParameterGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDBParameterGroup 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<DeleteDBParameterGroupResponse> DeleteDBParameterGroupAsync(DeleteDBParameterGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDBParameterGroupRequestMarshaller(); var unmarshaller = DeleteDBParameterGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteDBParameterGroupRequest,DeleteDBParameterGroupResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted cannot be /// associated with any DB instances. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDBParameterGroup service method.</param> /// /// <returns>The response from the DeleteDBParameterGroup service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.DBParameterGroupNotFoundException"> /// <i>DBParameterGroupName</i> does not refer to an existing DB parameter group. /// </exception> /// <exception cref="Amazon.RDS.Model.InvalidDBParameterGroupStateException"> /// The DB parameter group cannot be deleted because it is in use. /// </exception> public DeleteDBParameterGroupResponse DeleteDBParameterGroup(DeleteDBParameterGroupRequest request) { var marshaller = new DeleteDBParameterGroupRequestMarshaller(); var unmarshaller = DeleteDBParameterGroupResponseUnmarshaller.Instance; return Invoke<DeleteDBParameterGroupRequest,DeleteDBParameterGroupResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteDBParameterGroup operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.DeleteDBParameterGroup"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDBParameterGroup 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<DeleteDBParameterGroupResponse> DeleteDBParameterGroupAsync(DeleteDBParameterGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDBParameterGroupRequestMarshaller(); var unmarshaller = DeleteDBParameterGroupResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteDBParameterGroupRequest, DeleteDBParameterGroupResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void DeleteDBParameterGroupMarshallTest() { var operation = service_model.FindOperation("DeleteDBParameterGroup"); var request = InstantiateClassGenerator.Execute<DeleteDBParameterGroupRequest>(); var marshaller = new DeleteDBParameterGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para> Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted. </para> /// <para><b>NOTE:</b> The specified DB parameter group cannot be associated with any DB instances. </para> /// </summary> /// /// <param name="deleteDBParameterGroupRequest">Container for the necessary parameters to execute the DeleteDBParameterGroup service method on /// AmazonRDS.</param> /// /// <exception cref="T:Amazon.RDS.Model.DBParameterGroupNotFoundException" /> /// <exception cref="T:Amazon.RDS.Model.InvalidDBParameterGroupStateException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteDBParameterGroupResponse> DeleteDBParameterGroupAsync(DeleteDBParameterGroupRequest deleteDBParameterGroupRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDBParameterGroupRequestMarshaller(); var unmarshaller = DeleteDBParameterGroupResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteDBParameterGroupRequest, DeleteDBParameterGroupResponse>(deleteDBParameterGroupRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteDBParameterGroup operation. /// <seealso cref="Amazon.RDS.IAmazonRDS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDBParameterGroup operation on AmazonRDSClient.</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 EndDeleteDBParameterGroup /// operation.</returns> public IAsyncResult BeginDeleteDBParameterGroup(DeleteDBParameterGroupRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteDBParameterGroupRequestMarshaller(); var unmarshaller = DeleteDBParameterGroupResponseUnmarshaller.Instance; return BeginInvoke<DeleteDBParameterGroupRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Deletes a specified DBParameterGroup. The DBParameterGroup cannot be associated with any RDS instances to be deleted. </para> /// <para><b>NOTE:</b> The specified DB Parameter Group cannot be associated with any DB Instances. </para> /// </summary> /// /// <param name="deleteDBParameterGroupRequest">Container for the necessary parameters to execute the DeleteDBParameterGroup service method on /// AmazonRDS.</param> /// /// <exception cref="DBParameterGroupNotFoundException"/> /// <exception cref="InvalidDBParameterGroupStateException"/> public DeleteDBParameterGroupResponse DeleteDBParameterGroup(DeleteDBParameterGroupRequest deleteDBParameterGroupRequest) { IRequest<DeleteDBParameterGroupRequest> request = new DeleteDBParameterGroupRequestMarshaller().Marshall(deleteDBParameterGroupRequest); DeleteDBParameterGroupResponse response = Invoke<DeleteDBParameterGroupRequest, DeleteDBParameterGroupResponse> (request, this.signer, DeleteDBParameterGroupResponseUnmarshaller.GetInstance()); return response; }