internal virtual GetCloudFormationTemplateResponse GetCloudFormationTemplate(GetCloudFormationTemplateRequest request) { var marshaller = GetCloudFormationTemplateRequestMarshaller.Instance; var unmarshaller = GetCloudFormationTemplateResponseUnmarshaller.Instance; return(Invoke <GetCloudFormationTemplateRequest, GetCloudFormationTemplateResponse>(request, marshaller, unmarshaller)); }
internal virtual GetCloudFormationTemplateResponse GetCloudFormationTemplate(GetCloudFormationTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCloudFormationTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCloudFormationTemplateResponseUnmarshaller.Instance; return(Invoke <GetCloudFormationTemplateResponse>(request, options)); }
/// <summary> /// Gets the specified AWS CloudFormation template. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCloudFormationTemplate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCloudFormationTemplate service method, as returned by ServerlessApplicationRepository.</returns> /// <exception cref="Amazon.ServerlessApplicationRepository.Model.BadRequestException"> /// One of the parameters in the request is invalid. /// </exception> /// <exception cref="Amazon.ServerlessApplicationRepository.Model.ForbiddenException"> /// The client is not authenticated. /// </exception> /// <exception cref="Amazon.ServerlessApplicationRepository.Model.InternalServerErrorException"> /// The AWS Serverless Application Repository service encountered an internal error. /// </exception> /// <exception cref="Amazon.ServerlessApplicationRepository.Model.NotFoundException"> /// The resource (for example, an access policy statement) specified in the request doesn't /// exist. /// </exception> /// <exception cref="Amazon.ServerlessApplicationRepository.Model.TooManyRequestsException"> /// The client is sending more than the allowed number of requests per unit of time. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetCloudFormationTemplate">REST API Reference for GetCloudFormationTemplate Operation</seealso> public virtual Task <GetCloudFormationTemplateResponse> GetCloudFormationTemplateAsync(GetCloudFormationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCloudFormationTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCloudFormationTemplateResponseUnmarshaller.Instance; return(InvokeAsync <GetCloudFormationTemplateResponse>(request, options, cancellationToken)); }