Exemple #1
0
        /// <summary>
        /// Initiates the asynchronous execution of the ValidateTemplate operation.
        /// <seealso cref="Amazon.CloudFormation.IAmazonCloudFormation.ValidateTemplate"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the ValidateTemplate 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 <ValidateTemplateResponse> ValidateTemplateAsync(ValidateTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new ValidateTemplateRequestMarshaller();
            var unmarshaller = ValidateTemplateResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, ValidateTemplateRequest, ValidateTemplateResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
        /// <summary>
        /// <para> Validates a specified template. </para>
        /// </summary>
        ///
        /// <param name="validateTemplateRequest">Container for the necessary parameters to execute the ValidateTemplate service method on
        ///           AmazonCloudFormation.</param>
        ///
        /// <returns>The response from the ValidateTemplate service method, as returned by AmazonCloudFormation.</returns>
        ///
        public ValidateTemplateResponse ValidateTemplate(ValidateTemplateRequest validateTemplateRequest)
        {
            IRequest <ValidateTemplateRequest> request  = new ValidateTemplateRequestMarshaller().Marshall(validateTemplateRequest);
            ValidateTemplateResponse           response = Invoke <ValidateTemplateRequest, ValidateTemplateResponse> (request, this.signer, ValidateTemplateResponseUnmarshaller.GetInstance());

            return(response);
        }