Example #1
0
        /// <summary>
        /// Initiates the asynchronous execution of the CreateStack operation.
        /// <seealso cref="Amazon.CloudFormation.IAmazonCloudFormation.CreateStack"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the CreateStack 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 <CreateStackResponse> CreateStackAsync(CreateStackRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new CreateStackRequestMarshaller();
            var unmarshaller = CreateStackResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, CreateStackRequest, CreateStackResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
Example #2
0
 public override CreateStackResponse GetResponse(UnmarshallerContext unmarshallerContext)
 {
     return(CreateStackResponseUnmarshaller.Unmarshall(unmarshallerContext));
 }
        /// <summary>
        /// <para> Creates a stack as specified in the template. After the call completes successfully, the stack creation starts. You can check the
        /// status of the stack via the DescribeStacks API. </para> <para><b>NOTE:</b> Currently, the limit for stacks is 20 stacks per account per
        /// region. </para>
        /// </summary>
        ///
        /// <param name="createStackRequest">Container for the necessary parameters to execute the CreateStack service method on
        ///           AmazonCloudFormation.</param>
        ///
        /// <returns>The response from the CreateStack service method, as returned by AmazonCloudFormation.</returns>
        ///
        /// <exception cref="AlreadyExistsException"/>
        /// <exception cref="LimitExceededException"/>
        public CreateStackResponse CreateStack(CreateStackRequest createStackRequest)
        {
            IRequest <CreateStackRequest> request  = new CreateStackRequestMarshaller().Marshall(createStackRequest);
            CreateStackResponse           response = Invoke <CreateStackRequest, CreateStackResponse> (request, this.signer, CreateStackResponseUnmarshaller.GetInstance());

            return(response);
        }