public void DetachLoadBalancerFromSubnetsMarshallTest() { var operation = service_model.FindOperation("DetachLoadBalancerFromSubnets"); var request = InstantiateClassGenerator.Execute <DetachLoadBalancerFromSubnetsRequest>(); var marshaller = new DetachLoadBalancerFromSubnetsRequestMarshaller(); 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 = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance.Unmarshall(context) as DetachLoadBalancerFromSubnetsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DetachLoadBalancerFromSubnets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerFromSubnets 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<DetachLoadBalancerFromSubnetsResponse> DetachLoadBalancerFromSubnetsAsync(DetachLoadBalancerFromSubnetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachLoadBalancerFromSubnetsRequestMarshaller(); var unmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance; return InvokeAsync<DetachLoadBalancerFromSubnetsRequest,DetachLoadBalancerFromSubnetsResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal DetachLoadBalancerFromSubnetsResponse DetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request) { var marshaller = new DetachLoadBalancerFromSubnetsRequestMarshaller(); var unmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance; return Invoke<DetachLoadBalancerFromSubnetsRequest,DetachLoadBalancerFromSubnetsResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeDetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest detachLoadBalancerFromSubnetsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DetachLoadBalancerFromSubnetsRequestMarshaller().Marshall(detachLoadBalancerFromSubnetsRequest); var unmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> Removes subnets from the set of configured subnets in the Amazon Virtual Private Cloud (Amazon VPC) for the load balancer. </para> /// <para> After a subnet is removed all of the EC2 instances registered with the load balancer that are in the removed subnet will go into the /// <i>OutOfService</i> state. When a subnet is removed, the load balancer will balance the traffic among the remaining routable subnets for the /// load balancer. </para> /// </summary> /// /// <param name="detachLoadBalancerFromSubnetsRequest">Container for the necessary parameters to execute the DetachLoadBalancerFromSubnets /// service method on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the DetachLoadBalancerFromSubnets service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="T:Amazon.ElasticLoadBalancing.Model.InvalidConfigurationRequestException" /> /// <exception cref="T:Amazon.ElasticLoadBalancing.Model.LoadBalancerNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DetachLoadBalancerFromSubnetsResponse> DetachLoadBalancerFromSubnetsAsync(DetachLoadBalancerFromSubnetsRequest detachLoadBalancerFromSubnetsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachLoadBalancerFromSubnetsRequestMarshaller(); var unmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DetachLoadBalancerFromSubnetsRequest, DetachLoadBalancerFromSubnetsResponse>(detachLoadBalancerFromSubnetsRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DetachLoadBalancerFromSubnets operation. /// <seealso cref="Amazon.ElasticLoadBalancing.IAmazonElasticLoadBalancing.DetachLoadBalancerFromSubnets"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerFromSubnets 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<DetachLoadBalancerFromSubnetsResponse> DetachLoadBalancerFromSubnetsAsync(DetachLoadBalancerFromSubnetsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DetachLoadBalancerFromSubnetsRequestMarshaller(); var unmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DetachLoadBalancerFromSubnetsRequest, DetachLoadBalancerFromSubnetsResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void DetachLoadBalancerFromSubnetsMarshallTest() { var operation = service_model.FindOperation("DetachLoadBalancerFromSubnets"); var request = InstantiateClassGenerator.Execute<DetachLoadBalancerFromSubnetsRequest>(); var marshaller = new DetachLoadBalancerFromSubnetsRequestMarshaller(); 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 = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance.Unmarshall(context) as DetachLoadBalancerFromSubnetsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeDetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DetachLoadBalancerFromSubnetsRequestMarshaller(); var unmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// Initiates the asynchronous execution of the DetachLoadBalancerFromSubnets operation. /// <seealso cref="Amazon.ElasticLoadBalancing.IAmazonElasticLoadBalancing"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerFromSubnets operation on AmazonElasticLoadBalancingClient.</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 EndDetachLoadBalancerFromSubnets /// operation.</returns> public IAsyncResult BeginDetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request, AsyncCallback callback, object state) { var marshaller = new DetachLoadBalancerFromSubnetsRequestMarshaller(); var unmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance; return BeginInvoke<DetachLoadBalancerFromSubnetsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Removes subnets from the set of configured subnets in the VPC for the LoadBalancer. </para> <para> After a subnet is removed all of /// the EndPoints registered with the LoadBalancer that are in the removed subnet will go into the <i>OutOfService</i> state. When a subnet is /// removed, the LoadBalancer will balance the traffic among the remaining routable subnets for the LoadBalancer. </para> /// </summary> /// /// <param name="detachLoadBalancerFromSubnetsRequest">Container for the necessary parameters to execute the DetachLoadBalancerFromSubnets /// service method on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the DetachLoadBalancerFromSubnets service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="LoadBalancerNotFoundException"/> /// <exception cref="InvalidConfigurationRequestException"/> public DetachLoadBalancerFromSubnetsResponse DetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest detachLoadBalancerFromSubnetsRequest) { IRequest<DetachLoadBalancerFromSubnetsRequest> request = new DetachLoadBalancerFromSubnetsRequestMarshaller().Marshall(detachLoadBalancerFromSubnetsRequest); DetachLoadBalancerFromSubnetsResponse response = Invoke<DetachLoadBalancerFromSubnetsRequest, DetachLoadBalancerFromSubnetsResponse> (request, this.signer, DetachLoadBalancerFromSubnetsResponseUnmarshaller.GetInstance()); return response; }