/// <summary> /// Initiates the asynchronous execution of the AuthorizeSecurityGroupEgress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeSecurityGroupEgress 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<AuthorizeSecurityGroupEgressResponse> AuthorizeSecurityGroupEgressAsync(AuthorizeSecurityGroupEgressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AuthorizeSecurityGroupEgressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupEgressResponseUnmarshaller.Instance; return InvokeAsync<AuthorizeSecurityGroupEgressRequest,AuthorizeSecurityGroupEgressResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void AuthorizeSecurityGroupEgressMarshallTest() { var operation = service_model.FindOperation("AuthorizeSecurityGroupEgress"); var request = InstantiateClassGenerator.Execute<AuthorizeSecurityGroupEgressRequest>(); var marshaller = new AuthorizeSecurityGroupEgressRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Adds one or more egress rules to a security group for use with a VPC. Specifically, /// this action permits instances to send traffic to one or more destination CIDR IP address /// ranges, or to one or more destination security groups for the same VPC. /// /// <important> /// <para> /// You can have up to 50 rules per security group (covering both ingress and egress rules). /// </para> /// </important> /// <para> /// A security group is for use with instances either in the EC2-Classic platform or in /// a specific VPC. This action doesn't apply to security groups for use in EC2-Classic. /// For more information, see <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html">Security /// Groups for Your VPC</a> in the <i>Amazon Virtual Private Cloud User Guide</i>. /// </para> /// /// <para> /// Each rule consists of the protocol (for example, TCP), plus either a CIDR range or /// a source group. For the TCP and UDP protocols, you must also specify the destination /// port or port range. For the ICMP protocol, you must also specify the ICMP type and /// code. You can use -1 for the type or code to mean all types or all codes. /// </para> /// /// <para> /// Rule changes are propagated to affected instances as quickly as possible. However, /// a small delay might occur. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AuthorizeSecurityGroupEgress service method.</param> /// /// <returns>The response from the AuthorizeSecurityGroupEgress service method, as returned by EC2.</returns> public AuthorizeSecurityGroupEgressResponse AuthorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest request) { var marshaller = new AuthorizeSecurityGroupEgressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupEgressResponseUnmarshaller.Instance; return Invoke<AuthorizeSecurityGroupEgressRequest,AuthorizeSecurityGroupEgressResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the AuthorizeSecurityGroupEgress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeSecurityGroupEgress operation on AmazonEC2Client.</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 EndAuthorizeSecurityGroupEgress /// operation.</returns> public IAsyncResult BeginAuthorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest request, AsyncCallback callback, object state) { var marshaller = new AuthorizeSecurityGroupEgressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupEgressResponseUnmarshaller.Instance; return BeginInvoke<AuthorizeSecurityGroupEgressRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeAuthorizeSecurityGroupEgress(AuthorizeSecurityGroupEgressRequest authorizeSecurityGroupEgressRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new AuthorizeSecurityGroupEgressRequestMarshaller().Marshall(authorizeSecurityGroupEgressRequest); var unmarshaller = AuthorizeSecurityGroupEgressResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Adds one or more egress rules to a security group for use with a VPC. Specifically, this action permits instances to send traffic to /// one or more CIDR IP address ranges, or to one or more security groups for the same VPC.</para> <para><b>IMPORTANT:</b> You can have up to 50 /// rules per security group (covering both ingress and egress rules). </para> <para>A security group is for use with instances either in the /// EC2-Classic platform or in a specific VPC. This action doesn't apply to security groups for use in EC2-Classic. For more information, see <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html">Security Groups for Your VPC</a> in the <i>Amazon /// Virtual Private Cloud User Guide</i> .</para> <para>Each rule consists of the protocol (for example, TCP), plus either a CIDR range or a /// source group. For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also /// specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.</para> <para>Rule changes are propagated /// to affected instances as quickly as possible. However, a small delay might occur.</para> /// </summary> /// /// <param name="authorizeSecurityGroupEgressRequest">Container for the necessary parameters to execute the AuthorizeSecurityGroupEgress service /// method on AmazonEC2.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<AuthorizeSecurityGroupEgressResponse> AuthorizeSecurityGroupEgressAsync(AuthorizeSecurityGroupEgressRequest authorizeSecurityGroupEgressRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AuthorizeSecurityGroupEgressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupEgressResponseUnmarshaller.GetInstance(); return Invoke<IRequest, AuthorizeSecurityGroupEgressRequest, AuthorizeSecurityGroupEgressResponse>(authorizeSecurityGroupEgressRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the AuthorizeSecurityGroupEgress operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.AuthorizeSecurityGroupEgress"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeSecurityGroupEgress 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<AuthorizeSecurityGroupEgressResponse> AuthorizeSecurityGroupEgressAsync(AuthorizeSecurityGroupEgressRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AuthorizeSecurityGroupEgressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupEgressResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, AuthorizeSecurityGroupEgressRequest, AuthorizeSecurityGroupEgressResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }