public void ApplySecurityGroupsToLoadBalancerMarshallTest() { var operation = service_model.FindOperation("ApplySecurityGroupsToLoadBalancer"); var request = InstantiateClassGenerator.Execute<ApplySecurityGroupsToLoadBalancerRequest>(); var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller(); 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 = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance.Unmarshall(context) as ApplySecurityGroupsToLoadBalancerResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
public void ApplySecurityGroupsToLoadBalancerMarshallTest() { var operation = service_model.FindOperation("ApplySecurityGroupsToLoadBalancer"); var request = InstantiateClassGenerator.Execute <ApplySecurityGroupsToLoadBalancerRequest>(); var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller(); 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 = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance.Unmarshall(context) as ApplySecurityGroupsToLoadBalancerResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ApplySecurityGroupsToLoadBalancer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ApplySecurityGroupsToLoadBalancer 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<ApplySecurityGroupsToLoadBalancerResponse> ApplySecurityGroupsToLoadBalancerAsync(ApplySecurityGroupsToLoadBalancerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller(); var unmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance; return InvokeAsync<ApplySecurityGroupsToLoadBalancerRequest,ApplySecurityGroupsToLoadBalancerResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal ApplySecurityGroupsToLoadBalancerResponse ApplySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest request) { var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller(); var unmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance; return Invoke<ApplySecurityGroupsToLoadBalancerRequest,ApplySecurityGroupsToLoadBalancerResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeApplySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest applySecurityGroupsToLoadBalancerRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ApplySecurityGroupsToLoadBalancerRequestMarshaller().Marshall(applySecurityGroupsToLoadBalancerRequest); var unmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> Associates one or more security groups with your load balancer in Amazon Virtual Private Cloud (Amazon VPC). The provided security /// group IDs will override any currently applied security groups. </para> <para>For more information, see <a href="http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/USVPC_ApplySG.html">Manage Security Groups in Amazon VPC</a> in /// the <i>Elastic Load Balancing Developer Guide</i> .</para> /// </summary> /// /// <param name="applySecurityGroupsToLoadBalancerRequest">Container for the necessary parameters to execute the /// ApplySecurityGroupsToLoadBalancer service method on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the ApplySecurityGroupsToLoadBalancer service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="T:Amazon.ElasticLoadBalancing.Model.InvalidConfigurationRequestException" /> /// <exception cref="T:Amazon.ElasticLoadBalancing.Model.InvalidSecurityGroupException" /> /// <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<ApplySecurityGroupsToLoadBalancerResponse> ApplySecurityGroupsToLoadBalancerAsync(ApplySecurityGroupsToLoadBalancerRequest applySecurityGroupsToLoadBalancerRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller(); var unmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ApplySecurityGroupsToLoadBalancerRequest, ApplySecurityGroupsToLoadBalancerResponse>(applySecurityGroupsToLoadBalancerRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the ApplySecurityGroupsToLoadBalancer operation. /// <seealso cref="Amazon.ElasticLoadBalancing.IAmazonElasticLoadBalancing.ApplySecurityGroupsToLoadBalancer"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ApplySecurityGroupsToLoadBalancer 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<ApplySecurityGroupsToLoadBalancerResponse> ApplySecurityGroupsToLoadBalancerAsync(ApplySecurityGroupsToLoadBalancerRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller(); var unmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ApplySecurityGroupsToLoadBalancerRequest, ApplySecurityGroupsToLoadBalancerResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeApplySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller(); var unmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// Initiates the asynchronous execution of the ApplySecurityGroupsToLoadBalancer operation. /// <seealso cref="Amazon.ElasticLoadBalancing.IAmazonElasticLoadBalancing"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ApplySecurityGroupsToLoadBalancer 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 EndApplySecurityGroupsToLoadBalancer /// operation.</returns> public IAsyncResult BeginApplySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest request, AsyncCallback callback, object state) { var marshaller = new ApplySecurityGroupsToLoadBalancerRequestMarshaller(); var unmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance; return BeginInvoke<ApplySecurityGroupsToLoadBalancerRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// <para> Associates one or more security groups with your LoadBalancer in VPC. The provided security group IDs will override any currently /// applied security groups. </para> /// </summary> /// /// <param name="applySecurityGroupsToLoadBalancerRequest">Container for the necessary parameters to execute the /// ApplySecurityGroupsToLoadBalancer service method on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the ApplySecurityGroupsToLoadBalancer service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="LoadBalancerNotFoundException"/> /// <exception cref="InvalidConfigurationRequestException"/> /// <exception cref="InvalidSecurityGroupException"/> public ApplySecurityGroupsToLoadBalancerResponse ApplySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest applySecurityGroupsToLoadBalancerRequest) { IRequest<ApplySecurityGroupsToLoadBalancerRequest> request = new ApplySecurityGroupsToLoadBalancerRequestMarshaller().Marshall(applySecurityGroupsToLoadBalancerRequest); ApplySecurityGroupsToLoadBalancerResponse response = Invoke<ApplySecurityGroupsToLoadBalancerRequest, ApplySecurityGroupsToLoadBalancerResponse> (request, this.signer, ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.GetInstance()); return response; }