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

            return(Invoke <IRequest, DeleteStackRequest, DeleteStackResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
 public override DeleteStackResponse GetResponse(UnmarshallerContext unmarshallerContext)
 {
     return(DeleteStackResponseUnmarshaller.Unmarshall(unmarshallerContext));
 }
        /// <summary>
        /// <para> Deletes a specified stack. Once the call completes successfully, stack deletion starts. Deleted stacks do not show up in the
        /// DescribeStacks API if the deletion has been completed successfully. </para>
        /// </summary>
        ///
        /// <param name="deleteStackRequest">Container for the necessary parameters to execute the DeleteStack service method on
        ///           AmazonCloudFormation.</param>
        ///
        public DeleteStackResponse DeleteStack(DeleteStackRequest deleteStackRequest)
        {
            IRequest <DeleteStackRequest> request  = new DeleteStackRequestMarshaller().Marshall(deleteStackRequest);
            DeleteStackResponse           response = Invoke <DeleteStackRequest, DeleteStackResponse> (request, this.signer, DeleteStackResponseUnmarshaller.GetInstance());

            return(response);
        }