internal DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request) { var marshaller = new DescribeChangeSetRequestMarshaller(); var unmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return(Invoke <DescribeChangeSetRequest, DescribeChangeSetResponse>(request, marshaller, unmarshaller)); }
public void DescribeChangeSetMarshallTest() { var operation = service_model.FindOperation("DescribeChangeSet"); var request = InstantiateClassGenerator.Execute <DescribeChangeSetRequest>(); var marshaller = new DescribeChangeSetRequestMarshaller(); var internalRequest = marshaller.Marshall(request); TestTools.RequestValidator.Validate("DescribeChangeSet", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var payloadResponse = new JsonSampleGenerator(service_model, operation.ResponseStructure).Execute(); webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as DescribeChangeSetResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet 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 <DescribeChangeSetResponse> DescribeChangeSetAsync(DescribeChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeChangeSetRequestMarshaller(); var unmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return(InvokeAsync <DescribeChangeSetRequest, DescribeChangeSetResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void DescribeChangeSetMarshallTest() { var operation = service_model.FindOperation("DescribeChangeSet"); var request = InstantiateClassGenerator.Execute <DescribeChangeSetRequest>(); var marshaller = new DescribeChangeSetRequestMarshaller(); 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 = DescribeChangeSetResponseUnmarshaller.Instance.Unmarshall(context) as DescribeChangeSetResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
public void DescribeChangeSetMarshallTest() { var operation = service_model.FindOperation("DescribeChangeSet"); var request = InstantiateClassGenerator.Execute<DescribeChangeSetRequest>(); var marshaller = new DescribeChangeSetRequestMarshaller(); 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 = DescribeChangeSetResponseUnmarshaller.Instance.Unmarshall(context) as DescribeChangeSetResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DescribeChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet 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<DescribeChangeSetResponse> DescribeChangeSetAsync(DescribeChangeSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeChangeSetRequestMarshaller(); var unmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return InvokeAsync<DescribeChangeSetRequest,DescribeChangeSetResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Returns the inputs for the change set and a list of changes that AWS CloudFormation /// will make if you execute the change set. For more information, see <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html">Updating /// Stacks Using Change Sets</a> in the AWS CloudFormation User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet service method.</param> /// /// <returns>The response from the DescribeChangeSet service method, as returned by CloudFormation.</returns> /// <exception cref="Amazon.CloudFormation.Model.ChangeSetNotFoundException"> /// The specified change set name or ID doesn't exit. To view valid change sets for a /// stack, use the <code>ListChangeSets</code> action. /// </exception> public DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request) { var marshaller = new DescribeChangeSetRequestMarshaller(); var unmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return Invoke<DescribeChangeSetRequest,DescribeChangeSetResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeChangeSet operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeChangeSet 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 EndDescribeChangeSet /// operation.</returns> public IAsyncResult BeginDescribeChangeSet(DescribeChangeSetRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeChangeSetRequestMarshaller(); var unmarshaller = DescribeChangeSetResponseUnmarshaller.Instance; return BeginInvoke<DescribeChangeSetRequest>(request, marshaller, unmarshaller, callback, state); }