/// <summary> /// Initiates the asynchronous execution of the DescribeStackResource operation. /// <seealso cref="Amazon.CloudFormation.IAmazonCloudFormation.DescribeStackResource"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource 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 <DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStackResourceRequestMarshaller(); var unmarshaller = DescribeStackResourceResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DescribeStackResourceRequest, DescribeStackResourceResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest request) { var marshaller = new DescribeStackResourceRequestMarshaller(); var unmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return(Invoke <DescribeStackResourceRequest, DescribeStackResourceResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// <para> Returns the description for the specified resource in the specified stack. </para> <para>For deleted stacks, DescribeStackResource /// returns resource information for up to 90 days after the stack has been deleted. </para> <para> You must specify <c>StackName</c> and /// <c>LogicalResourceId</c> . /// </para> /// </summary> /// /// <param name="describeStackResourceRequest">Container for the necessary parameters to execute the DescribeStackResource service method on /// AmazonCloudFormation.</param> /// /// <returns>The response from the DescribeStackResource service method, as returned by AmazonCloudFormation.</returns> /// public DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest describeStackResourceRequest) { IRequest <DescribeStackResourceRequest> request = new DescribeStackResourceRequestMarshaller().Marshall(describeStackResourceRequest); DescribeStackResourceResponse response = Invoke <DescribeStackResourceRequest, DescribeStackResourceResponse> (request, this.signer, DescribeStackResourceResponseUnmarshaller.GetInstance()); return(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeStackResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource 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 <DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStackResourceRequestMarshaller(); var unmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return(InvokeAsync <DescribeStackResourceRequest, DescribeStackResourceResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void DescribeStackResourceMarshallTest() { var operation = service_model.FindOperation("DescribeStackResource"); var request = InstantiateClassGenerator.Execute <DescribeStackResourceRequest>(); var marshaller = new DescribeStackResourceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DescribeStackResourceResponseUnmarshaller.Instance.Unmarshall(context) as DescribeStackResourceResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeStackResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource 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<DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStackResourceRequestMarshaller(); var unmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return InvokeAsync<DescribeStackResourceRequest,DescribeStackResourceResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest request) { var marshaller = new DescribeStackResourceRequestMarshaller(); var unmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return Invoke<DescribeStackResourceRequest,DescribeStackResourceResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeDescribeStackResource(DescribeStackResourceRequest describeStackResourceRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeStackResourceRequestMarshaller().Marshall(describeStackResourceRequest); var unmarshaller = DescribeStackResourceResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DescribeStackResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource operation on AmazonCloudFormationClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeStackResource /// operation.</returns> public IAsyncResult BeginDescribeStackResource(DescribeStackResourceRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeStackResourceRequestMarshaller(); var unmarshaller = DescribeStackResourceResponseUnmarshaller.Instance; return BeginInvoke<DescribeStackResourceRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para>Returns a description of the specified resource in the specified stack.</para> <para>For deleted stacks, DescribeStackResource returns /// resource information for up to 90 days after the stack has been deleted.</para> /// </summary> /// /// <param name="describeStackResourceRequest">Container for the necessary parameters to execute the DescribeStackResource service method on /// AmazonCloudFormation.</param> /// /// <returns>The response from the DescribeStackResource service method, as returned by AmazonCloudFormation.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest describeStackResourceRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStackResourceRequestMarshaller(); var unmarshaller = DescribeStackResourceResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeStackResourceRequest, DescribeStackResourceResponse>(describeStackResourceRequest, marshaller, unmarshaller, signer, cancellationToken); }
public void DescribeStackResourceMarshallTest() { var operation = service_model.FindOperation("DescribeStackResource"); var request = InstantiateClassGenerator.Execute<DescribeStackResourceRequest>(); var marshaller = new DescribeStackResourceRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DescribeStackResourceResponseUnmarshaller.Instance.Unmarshall(context) as DescribeStackResourceResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Returns the description for the specified resource in the specified stack. </para> <para>For deleted stacks, DescribeStackResource /// returns resource information for up to 90 days after the stack has been deleted. </para> <para> You must specify <c>StackName</c> and /// <c>LogicalResourceId</c> . /// </para> /// </summary> /// /// <param name="describeStackResourceRequest">Container for the necessary parameters to execute the DescribeStackResource service method on /// AmazonCloudFormation.</param> /// /// <returns>The response from the DescribeStackResource service method, as returned by AmazonCloudFormation.</returns> /// public DescribeStackResourceResponse DescribeStackResource(DescribeStackResourceRequest describeStackResourceRequest) { IRequest<DescribeStackResourceRequest> request = new DescribeStackResourceRequestMarshaller().Marshall(describeStackResourceRequest); DescribeStackResourceResponse response = Invoke<DescribeStackResourceRequest, DescribeStackResourceResponse> (request, this.signer, DescribeStackResourceResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the DescribeStackResource operation. /// <seealso cref="Amazon.CloudFormation.IAmazonCloudFormation.DescribeStackResource"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStackResource 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 async Task<DescribeStackResourceResponse> DescribeStackResourceAsync(DescribeStackResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStackResourceRequestMarshaller(); var unmarshaller = DescribeStackResourceResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeStackResourceRequest, DescribeStackResourceResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }