Beispiel #1
0
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeStacks operation.
        /// <seealso cref="Amazon.CloudFormation.IAmazonCloudFormation.DescribeStacks"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DescribeStacks 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 <DescribeStacksResponse> DescribeStacksAsync(DescribeStacksRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new DescribeStacksRequestMarshaller();
            var unmarshaller = DescribeStacksResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, DescribeStacksRequest, DescribeStacksResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
        /// <summary>
        /// <para> Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks
        /// created. </para>
        /// </summary>
        ///
        /// <param name="describeStacksRequest">Container for the necessary parameters to execute the DescribeStacks service method on
        ///           AmazonCloudFormation.</param>
        ///
        /// <returns>The response from the DescribeStacks service method, as returned by AmazonCloudFormation.</returns>
        ///
        public DescribeStacksResponse DescribeStacks(DescribeStacksRequest describeStacksRequest)
        {
            IRequest <DescribeStacksRequest> request  = new DescribeStacksRequestMarshaller().Marshall(describeStacksRequest);
            DescribeStacksResponse           response = Invoke <DescribeStacksRequest, DescribeStacksResponse> (request, this.signer, DescribeStacksResponseUnmarshaller.GetInstance());

            return(response);
        }