/// <summary>
        /// <para>Runs the policy you create for your Auto Scaling group in PutScalingPolicy.</para>
        /// </summary>
        ///
        /// <param name="executePolicyRequest">Container for the necessary parameters to execute the ExecutePolicy service method on
        ///           AmazonAutoScaling.</param>
        ///
        /// <exception cref="ScalingActivityInProgressException"/>
        public ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest executePolicyRequest)
        {
            IRequest <ExecutePolicyRequest> request  = new ExecutePolicyRequestMarshaller().Marshall(executePolicyRequest);
            ExecutePolicyResponse           response = Invoke <ExecutePolicyRequest, ExecutePolicyResponse> (request, this.signer, ExecutePolicyResponseUnmarshaller.GetInstance());

            return(response);
        }
        public void ExecutePolicyMarshallTest()
        {
            var operation = service_model.FindOperation("ExecutePolicy");

            var request         = InstantiateClassGenerator.Execute <ExecutePolicyRequest>();
            var marshaller      = new ExecutePolicyRequestMarshaller();
            var internalRequest = marshaller.Marshall(request);
            var validator       = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation);

            validator.Validate();
        }
        /// <summary>
        /// Initiates the asynchronous execution of the ExecutePolicy operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy 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<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ExecutePolicyRequestMarshaller();
            var unmarshaller = ExecutePolicyResponseUnmarshaller.Instance;

            return InvokeAsync<ExecutePolicyRequest,ExecutePolicyResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
        internal ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request)
        {
            var marshaller = new ExecutePolicyRequestMarshaller();
            var unmarshaller = ExecutePolicyResponseUnmarshaller.Instance;

            return Invoke<ExecutePolicyRequest,ExecutePolicyResponse>(request, marshaller, unmarshaller);
        }
 IAsyncResult invokeExecutePolicy(ExecutePolicyRequest executePolicyRequest, AsyncCallback callback, object state, bool synchronized)
 {
     IRequest irequest = new ExecutePolicyRequestMarshaller().Marshall(executePolicyRequest);
     var unmarshaller = ExecutePolicyResponseUnmarshaller.GetInstance();
     AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);
     Invoke(result);
     return result;
 }
        /// <summary>
        /// Initiates the asynchronous execution of the ExecutePolicy operation.
        /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.ExecutePolicy"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy 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<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ExecutePolicyRequestMarshaller();
            var unmarshaller = ExecutePolicyResponseUnmarshaller.GetInstance();
            return Invoke<IRequest, ExecutePolicyRequest, ExecutePolicyResponse>(request, marshaller, unmarshaller, signer, cancellationToken);
        }
        /// <summary>
        /// Initiates the asynchronous execution of the ExecutePolicy operation.
        /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy 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 EndExecutePolicy
        ///         operation.</returns>
        public IAsyncResult BeginExecutePolicy(ExecutePolicyRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new ExecutePolicyRequestMarshaller();
            var unmarshaller = ExecutePolicyResponseUnmarshaller.Instance;

            return BeginInvoke<ExecutePolicyRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
        public void ExecutePolicyMarshallTest()
        {
            var operation = service_model.FindOperation("ExecutePolicy");

            var request = InstantiateClassGenerator.Execute<ExecutePolicyRequest>();
            var marshaller = new ExecutePolicyRequestMarshaller();
            var internalRequest = marshaller.Marshall(request);
            var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation);
            validator.Validate();


        }
 /// <summary>
 /// <para>Runs the policy you create for your Auto Scaling group in PutScalingPolicy.</para>
 /// </summary>
 /// 
 /// <param name="executePolicyRequest">Container for the necessary parameters to execute the ExecutePolicy service method on
 ///           AmazonAutoScaling.</param>
 /// 
 /// <exception cref="ScalingActivityInProgressException"/>
 public ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest executePolicyRequest)
 {
     IRequest<ExecutePolicyRequest> request = new ExecutePolicyRequestMarshaller().Marshall(executePolicyRequest);
     ExecutePolicyResponse response = Invoke<ExecutePolicyRequest, ExecutePolicyResponse> (request, this.signer, ExecutePolicyResponseUnmarshaller.GetInstance());
     return response;
 }
        /// <summary>
        /// Initiates the asynchronous execution of the ExecutePolicy operation.
        /// <seealso cref="Amazon.AutoScaling.IAmazonAutoScaling.ExecutePolicy"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy 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<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ExecutePolicyRequestMarshaller();
            var unmarshaller = ExecutePolicyResponseUnmarshaller.GetInstance();
            var response = await Invoke<IRequest, ExecutePolicyRequest, ExecutePolicyResponse>(request, marshaller, unmarshaller, signer, cancellationToken)
                .ConfigureAwait(continueOnCapturedContext: false);
            return response;
        }