public void DeleteDBSubnetGroupMarshallTest() { var operation = service_model.FindOperation("DeleteDBSubnetGroup"); var request = InstantiateClassGenerator.Execute <DeleteDBSubnetGroupRequest>(); var marshaller = new DeleteDBSubnetGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
IAsyncResult invokeDeleteDBSubnetGroup(DeleteDBSubnetGroupRequest deleteDBSubnetGroupRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteDBSubnetGroupRequestMarshaller().Marshall(deleteDBSubnetGroupRequest); var unmarshaller = DeleteDBSubnetGroupResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DeleteDBSubnetGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDBSubnetGroup 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<DeleteDBSubnetGroupResponse> DeleteDBSubnetGroupAsync(DeleteDBSubnetGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDBSubnetGroupRequestMarshaller(); var unmarshaller = DeleteDBSubnetGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteDBSubnetGroupRequest,DeleteDBSubnetGroupResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Deletes a DB subnet group. /// /// <note>The specified database subnet group must not be associated with any DB instances.</note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDBSubnetGroup service method.</param> /// /// <returns>The response from the DeleteDBSubnetGroup service method, as returned by RDS.</returns> /// <exception cref="Amazon.RDS.Model.DBSubnetGroupNotFoundException"> /// <i>DBSubnetGroupName</i> does not refer to an existing DB subnet group. /// </exception> /// <exception cref="Amazon.RDS.Model.InvalidDBSubnetGroupStateException"> /// The DB subnet group cannot be deleted because it is in use. /// </exception> /// <exception cref="Amazon.RDS.Model.InvalidDBSubnetStateException"> /// The DB subnet is not in the <i>available</i> state. /// </exception> public DeleteDBSubnetGroupResponse DeleteDBSubnetGroup(DeleteDBSubnetGroupRequest request) { var marshaller = new DeleteDBSubnetGroupRequestMarshaller(); var unmarshaller = DeleteDBSubnetGroupResponseUnmarshaller.Instance; return Invoke<DeleteDBSubnetGroupRequest,DeleteDBSubnetGroupResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteDBSubnetGroup operation. /// <seealso cref="Amazon.RDS.IAmazonRDS.DeleteDBSubnetGroup"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDBSubnetGroup 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<DeleteDBSubnetGroupResponse> DeleteDBSubnetGroupAsync(DeleteDBSubnetGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDBSubnetGroupRequestMarshaller(); var unmarshaller = DeleteDBSubnetGroupResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteDBSubnetGroupRequest, DeleteDBSubnetGroupResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void DeleteDBSubnetGroupMarshallTest() { var operation = service_model.FindOperation("DeleteDBSubnetGroup"); var request = InstantiateClassGenerator.Execute<DeleteDBSubnetGroupRequest>(); var marshaller = new DeleteDBSubnetGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para> Deletes a DB subnet group. </para> <para><b>NOTE:</b>The specified database subnet group must not be associated with any DB /// instances.</para> /// </summary> /// /// <param name="deleteDBSubnetGroupRequest">Container for the necessary parameters to execute the DeleteDBSubnetGroup service method on /// AmazonRDS.</param> /// /// <exception cref="T:Amazon.RDS.Model.DBSubnetGroupNotFoundException" /> /// <exception cref="T:Amazon.RDS.Model.InvalidDBSubnetGroupStateException" /> /// <exception cref="T:Amazon.RDS.Model.InvalidDBSubnetStateException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteDBSubnetGroupResponse> DeleteDBSubnetGroupAsync(DeleteDBSubnetGroupRequest deleteDBSubnetGroupRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDBSubnetGroupRequestMarshaller(); var unmarshaller = DeleteDBSubnetGroupResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteDBSubnetGroupRequest, DeleteDBSubnetGroupResponse>(deleteDBSubnetGroupRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteDBSubnetGroup operation. /// <seealso cref="Amazon.RDS.IAmazonRDS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDBSubnetGroup 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 EndDeleteDBSubnetGroup /// operation.</returns> public IAsyncResult BeginDeleteDBSubnetGroup(DeleteDBSubnetGroupRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteDBSubnetGroupRequestMarshaller(); var unmarshaller = DeleteDBSubnetGroupResponseUnmarshaller.Instance; return BeginInvoke<DeleteDBSubnetGroupRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Deletes a DB subnet group. </para> <para><b>NOTE:</b>The specified database subnet group must not be associated with any DB /// instances.</para> /// </summary> /// /// <param name="deleteDBSubnetGroupRequest">Container for the necessary parameters to execute the DeleteDBSubnetGroup service method on /// AmazonRDS.</param> /// /// <exception cref="DBSubnetGroupNotFoundException"/> /// <exception cref="InvalidDBSubnetGroupStateException"/> /// <exception cref="InvalidDBSubnetStateException"/> public DeleteDBSubnetGroupResponse DeleteDBSubnetGroup(DeleteDBSubnetGroupRequest deleteDBSubnetGroupRequest) { IRequest<DeleteDBSubnetGroupRequest> request = new DeleteDBSubnetGroupRequestMarshaller().Marshall(deleteDBSubnetGroupRequest); DeleteDBSubnetGroupResponse response = Invoke<DeleteDBSubnetGroupRequest, DeleteDBSubnetGroupResponse> (request, this.signer, DeleteDBSubnetGroupResponseUnmarshaller.GetInstance()); return response; }