public void ListImportsMarshallTest() { var operation = service_model.FindOperation("ListImports"); var request = InstantiateClassGenerator.Execute <ListImportsRequest>(); var marshaller = new ListImportsRequestMarshaller(); 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 = ListImportsResponseUnmarshaller.Instance.Unmarshall(context) as ListImportsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
public void ListImportsMarshallTest() { var operation = service_model.FindOperation("ListImports"); var request = InstantiateClassGenerator.Execute<ListImportsRequest>(); var marshaller = new ListImportsRequestMarshaller(); 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 = ListImportsResponseUnmarshaller.Instance.Unmarshall(context) as ListImportsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Lists all stacks that are importing an exported output value. To modify or remove /// an exported output value, first use this action to see which stacks are using it. /// To see the exported output values in your account, see <a>ListExports</a>. /// /// /// <para> /// For more information about importing an exported output value, see the <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-importvalue.html"> /// <code>Fn::ImportValue</code> </a> function. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListImports service method.</param> /// /// <returns>The response from the ListImports service method, as returned by CloudFormation.</returns> public ListImportsResponse ListImports(ListImportsRequest request) { var marshaller = new ListImportsRequestMarshaller(); var unmarshaller = ListImportsResponseUnmarshaller.Instance; return Invoke<ListImportsRequest,ListImportsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListImports operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListImports 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<ListImportsResponse> ListImportsAsync(ListImportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListImportsRequestMarshaller(); var unmarshaller = ListImportsResponseUnmarshaller.Instance; return InvokeAsync<ListImportsRequest,ListImportsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the ListImports operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListImports 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 EndListImports /// operation.</returns> public IAsyncResult BeginListImports(ListImportsRequest request, AsyncCallback callback, object state) { var marshaller = new ListImportsRequestMarshaller(); var unmarshaller = ListImportsResponseUnmarshaller.Instance; return BeginInvoke<ListImportsRequest>(request, marshaller, unmarshaller, callback, state); }