internal GetStackPolicyResponse GetStackPolicy(GetStackPolicyRequest request) { var marshaller = new GetStackPolicyRequestMarshaller(); var unmarshaller = GetStackPolicyResponseUnmarshaller.Instance; return(Invoke <GetStackPolicyRequest, GetStackPolicyResponse>(request, marshaller, unmarshaller)); }
/// <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)); }
/// <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)); }
/// <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); } }
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)); }
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)); }
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))); }