Esempio n. 1
0
        internal virtual CreateCloudFormationTemplateResponse CreateCloudFormationTemplate(CreateCloudFormationTemplateRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = CreateCloudFormationTemplateRequestMarshaller.Instance;
            options.ResponseUnmarshaller = CreateCloudFormationTemplateResponseUnmarshaller.Instance;

            return(Invoke <CreateCloudFormationTemplateResponse>(request, options));
        }
Esempio n. 2
0
        /// <summary>
        /// Creates an AWS CloudFormation template.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the CreateCloudFormationTemplate 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 CreateCloudFormationTemplate 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/CreateCloudFormationTemplate">REST API Reference for CreateCloudFormationTemplate Operation</seealso>
        public virtual Task <CreateCloudFormationTemplateResponse> CreateCloudFormationTemplateAsync(CreateCloudFormationTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = CreateCloudFormationTemplateRequestMarshaller.Instance;
            options.ResponseUnmarshaller = CreateCloudFormationTemplateResponseUnmarshaller.Instance;

            return(InvokeAsync <CreateCloudFormationTemplateResponse>(request, options, cancellationToken));
        }
Esempio n. 3
0
        internal virtual CreateCloudFormationTemplateResponse CreateCloudFormationTemplate(CreateCloudFormationTemplateRequest request)
        {
            var marshaller   = CreateCloudFormationTemplateRequestMarshaller.Instance;
            var unmarshaller = CreateCloudFormationTemplateResponseUnmarshaller.Instance;

            return(Invoke <CreateCloudFormationTemplateRequest, CreateCloudFormationTemplateResponse>(request, marshaller, unmarshaller));
        }