public void DeleteCacheParameterGroupMarshallTest() { var operation = service_model.FindOperation("DeleteCacheParameterGroup"); var request = InstantiateClassGenerator.Execute <DeleteCacheParameterGroupRequest>(); var marshaller = new DeleteCacheParameterGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Initiates the asynchronous execution of the DeleteCacheParameterGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCacheParameterGroup 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<DeleteCacheParameterGroupResponse> DeleteCacheParameterGroupAsync(DeleteCacheParameterGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteCacheParameterGroupRequestMarshaller(); var unmarshaller = DeleteCacheParameterGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteCacheParameterGroupRequest,DeleteCacheParameterGroupResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// The <i>DeleteCacheParameterGroup</i> operation deletes the specified cache parameter /// group. You cannot delete a cache parameter group if it is associated with any cache /// clusters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCacheParameterGroup service method.</param> /// /// <returns>The response from the DeleteCacheParameterGroup service method, as returned by ElastiCache.</returns> /// <exception cref="Amazon.ElastiCache.Model.CacheParameterGroupNotFoundException"> /// The requested cache parameter group name does not refer to an existing cache parameter /// group. /// </exception> /// <exception cref="Amazon.ElastiCache.Model.InvalidCacheParameterGroupStateException"> /// The current state of the cache parameter group does not allow the requested action /// to occur. /// </exception> /// <exception cref="Amazon.ElastiCache.Model.InvalidParameterCombinationException"> /// Two or more incompatible parameters were specified. /// </exception> /// <exception cref="Amazon.ElastiCache.Model.InvalidParameterValueException"> /// The value for a parameter is invalid. /// </exception> public DeleteCacheParameterGroupResponse DeleteCacheParameterGroup(DeleteCacheParameterGroupRequest request) { var marshaller = new DeleteCacheParameterGroupRequestMarshaller(); var unmarshaller = DeleteCacheParameterGroupResponseUnmarshaller.Instance; return Invoke<DeleteCacheParameterGroupRequest,DeleteCacheParameterGroupResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteCacheParameterGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCacheParameterGroup operation on AmazonElastiCacheClient.</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 EndDeleteCacheParameterGroup /// operation.</returns> public IAsyncResult BeginDeleteCacheParameterGroup(DeleteCacheParameterGroupRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteCacheParameterGroupRequestMarshaller(); var unmarshaller = DeleteCacheParameterGroupResponseUnmarshaller.Instance; return BeginInvoke<DeleteCacheParameterGroupRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the DeleteCacheParameterGroup operation. /// <seealso cref="Amazon.ElastiCache.IAmazonElastiCache.DeleteCacheParameterGroup"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCacheParameterGroup 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<DeleteCacheParameterGroupResponse> DeleteCacheParameterGroupAsync(DeleteCacheParameterGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteCacheParameterGroupRequestMarshaller(); var unmarshaller = DeleteCacheParameterGroupResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteCacheParameterGroupRequest, DeleteCacheParameterGroupResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeDeleteCacheParameterGroup(DeleteCacheParameterGroupRequest deleteCacheParameterGroupRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteCacheParameterGroupRequestMarshaller().Marshall(deleteCacheParameterGroupRequest); var unmarshaller = DeleteCacheParameterGroupResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
public void DeleteCacheParameterGroupMarshallTest() { var operation = service_model.FindOperation("DeleteCacheParameterGroup"); var request = InstantiateClassGenerator.Execute<DeleteCacheParameterGroupRequest>(); var marshaller = new DeleteCacheParameterGroupRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para>The <i>DeleteCacheParameterGroup</i> operation deletes the specified cache parameter group. You cannot delete a cache parameter group /// if it is associated with any cache clusters.</para> /// </summary> /// /// <param name="deleteCacheParameterGroupRequest">Container for the necessary parameters to execute the DeleteCacheParameterGroup service /// method on AmazonElastiCache.</param> /// /// <exception cref="T:Amazon.ElastiCache.Model.InvalidParameterValueException" /> /// <exception cref="T:Amazon.ElastiCache.Model.InvalidParameterCombinationException" /> /// <exception cref="T:Amazon.ElastiCache.Model.InvalidCacheParameterGroupStateException" /> /// <exception cref="T:Amazon.ElastiCache.Model.CacheParameterGroupNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteCacheParameterGroupResponse> DeleteCacheParameterGroupAsync(DeleteCacheParameterGroupRequest deleteCacheParameterGroupRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteCacheParameterGroupRequestMarshaller(); var unmarshaller = DeleteCacheParameterGroupResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteCacheParameterGroupRequest, DeleteCacheParameterGroupResponse>(deleteCacheParameterGroupRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para> Deletes the specified CacheParameterGroup. The CacheParameterGroup cannot be deleted if it is associated with any cache clusters. /// </para> /// </summary> /// /// <param name="deleteCacheParameterGroupRequest">Container for the necessary parameters to execute the DeleteCacheParameterGroup service /// method on AmazonElastiCache.</param> /// /// <exception cref="InvalidParameterValueException"/> /// <exception cref="InvalidParameterCombinationException"/> /// <exception cref="InvalidCacheParameterGroupStateException"/> /// <exception cref="CacheParameterGroupNotFoundException"/> public DeleteCacheParameterGroupResponse DeleteCacheParameterGroup(DeleteCacheParameterGroupRequest deleteCacheParameterGroupRequest) { IRequest<DeleteCacheParameterGroupRequest> request = new DeleteCacheParameterGroupRequestMarshaller().Marshall(deleteCacheParameterGroupRequest); DeleteCacheParameterGroupResponse response = Invoke<DeleteCacheParameterGroupRequest, DeleteCacheParameterGroupResponse> (request, this.signer, DeleteCacheParameterGroupResponseUnmarshaller.GetInstance()); return response; }