/// <summary> /// <para> Returns policy adjustment types for use in the PutScalingPolicy action. </para> /// </summary> /// /// <param name="describeAdjustmentTypesRequest">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method on /// AmazonAutoScaling.</param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AmazonAutoScaling.</returns> /// public DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest) { IRequest <DescribeAdjustmentTypesRequest> request = new DescribeAdjustmentTypesRequestMarshaller().Marshall(describeAdjustmentTypesRequest); DescribeAdjustmentTypesResponse response = Invoke <DescribeAdjustmentTypesRequest, DescribeAdjustmentTypesResponse> (request, this.signer, DescribeAdjustmentTypesResponseUnmarshaller.GetInstance()); return(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeAdjustmentTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes 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<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeAdjustmentTypesRequestMarshaller(); var unmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAdjustmentTypesRequest,DescribeAdjustmentTypesResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request) { var marshaller = new DescribeAdjustmentTypesRequestMarshaller(); var unmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return Invoke<DescribeAdjustmentTypesRequest,DescribeAdjustmentTypesResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeDescribeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeAdjustmentTypesRequestMarshaller().Marshall(describeAdjustmentTypesRequest); var unmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DescribeAdjustmentTypes operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.DescribeAdjustmentTypes"/> /// </summary> /// /// <param name="describeAdjustmentTypesRequest">Container for the necessary parameters to execute the DescribeAdjustmentTypes operation on /// AmazonAutoScaling.</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 /// EndDescribeAdjustmentTypes operation.</returns> public IAsyncResult BeginDescribeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest, AsyncCallback callback, object state) { return invokeDescribeAdjustmentTypes(describeAdjustmentTypesRequest, callback, state, false); }
/// <summary> /// <para> Returns policy adjustment types for use in the PutScalingPolicy action. </para> /// </summary> /// /// <param name="describeAdjustmentTypesRequest">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method on /// AmazonAutoScaling.</param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AmazonAutoScaling.</returns> /// public DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest) { IAsyncResult asyncResult = invokeDescribeAdjustmentTypes(describeAdjustmentTypesRequest, null, null, true); return EndDescribeAdjustmentTypes(asyncResult); }
/// <summary> /// Initiates the asynchronous execution of the DescribeAdjustmentTypes operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.DescribeAdjustmentTypes"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes 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<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeAdjustmentTypesRequestMarshaller(); var unmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeAdjustmentTypesRequest, DescribeAdjustmentTypesResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para> Returns policy adjustment types for use in the PutScalingPolicy action. </para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method on /// AmazonAutoScaling.</param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AmazonAutoScaling.</returns> public DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request) { var task = DescribeAdjustmentTypesAsync(request); try { return task.Result; } catch(AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return null; } }
/// <summary> /// Initiates the asynchronous execution of the DescribeAdjustmentTypes operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes operation on AmazonAutoScalingClient.</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 EndDescribeAdjustmentTypes /// operation.</returns> public IAsyncResult BeginDescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeAdjustmentTypesRequestMarshaller(); var unmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return BeginInvoke<DescribeAdjustmentTypesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Returns policy adjustment types for use in the PutScalingPolicy action. </para> /// </summary> /// /// <param name="describeAdjustmentTypesRequest">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method on /// AmazonAutoScaling.</param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AmazonAutoScaling.</returns> /// public DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest) { IRequest<DescribeAdjustmentTypesRequest> request = new DescribeAdjustmentTypesRequestMarshaller().Marshall(describeAdjustmentTypesRequest); DescribeAdjustmentTypesResponse response = Invoke<DescribeAdjustmentTypesRequest, DescribeAdjustmentTypesResponse> (request, this.signer, DescribeAdjustmentTypesResponseUnmarshaller.GetInstance()); return response; }
internal DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request) { var task = DescribeAdjustmentTypesAsync(request); try { return task.Result; } catch(AggregateException e) { throw e.InnerException; } }
/// <summary> /// Initiates the asynchronous execution of the DescribeAdjustmentTypes operation. /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.DescribeAdjustmentTypes"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes 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 async Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeAdjustmentTypesRequestMarshaller(); var unmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeAdjustmentTypesRequest, DescribeAdjustmentTypesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }