Exemplo n.º 1
0
        internal GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request)
        {
            var marshaller   = new GetStackPolicyRequestMarshaller();
            var unmarshaller = GetStackPolicyResponseUnmarshaller.Instance;

            return(Invoke <GetStackPolicyRequest, GetStackPolicyResponse>(request, marshaller, unmarshaller));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetStackPolicy operation.
        /// <seealso cref="Amazon.CloudFormation.IAmazonCloudFormation.GetStackPolicy"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy 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 <GetStackPolicyResponse> GetStackPolicyAsync(GetStackPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetStackPolicyRequestMarshaller();
            var unmarshaller = GetStackPolicyResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, GetStackPolicyRequest, GetStackPolicyResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetStackPolicy operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy 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 <GetStackPolicyResponse> GetStackPolicyAsync(GetStackPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetStackPolicyRequestMarshaller();
            var unmarshaller = GetStackPolicyResponseUnmarshaller.Instance;

            return(InvokeAsync <GetStackPolicyRequest, GetStackPolicyResponse>(request, marshaller,
                                                                               unmarshaller, cancellationToken));
        }
Exemplo n.º 4
0
        /// <summary>
        /// <para>Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.</para>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetStackPolicy service method on
        /// AmazonCloudFormation.</param>
        ///
        /// <returns>The response from the GetStackPolicy service method, as returned by AmazonCloudFormation.</returns>
        public GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request)
        {
            var task = GetStackPolicyAsync(request);

            try
            {
                return(task.Result);
            }
            catch (AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return(null);
            }
        }
Exemplo n.º 5
0
 public async Task <GetStackPolicyResponse> GetStackPolicyAsync(string stackName, string stackId, GetStackPolicyRequest request)
 {
     AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
     return(await GetStackPolicyWithOptionsAsync(stackName, stackId, request, runtime));
 }
Exemplo n.º 6
0
 public GetStackPolicyResponse GetStackPolicy(string stackName, string stackId, GetStackPolicyRequest request)
 {
     AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
     return(GetStackPolicyWithOptions(stackName, stackId, request, runtime));
 }
Exemplo n.º 7
0
 public async Task <GetStackPolicyResponse> GetStackPolicyWithOptionsAsync(string stackName, string stackId, GetStackPolicyRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
 {
     AlibabaCloud.TeaUtil.Common.ValidateModel(request);
     return(TeaModel.ToObject <GetStackPolicyResponse>(await DoRequestAsync("2015-09-01", "HTTPS", "GET", "AK", "/stacks/" + stackName + "/" + stackId + "/policy", null, request.Headers, null, runtime)));
 }