Amazon.EC2.AmazonEC2Client.AuthorizeSecurityGroupIngressAsync C# (CSharp) Method

AuthorizeSecurityGroupIngressAsync() public method

Initiates the asynchronous execution of the AuthorizeSecurityGroupIngress operation.
public AuthorizeSecurityGroupIngressAsync ( AuthorizeSecurityGroupIngressRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.EC2.Model.AuthorizeSecurityGroupIngressRequest Container for the necessary parameters to execute the AuthorizeSecurityGroupIngress operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<AuthorizeSecurityGroupIngressResponse> AuthorizeSecurityGroupIngressAsync(AuthorizeSecurityGroupIngressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new AuthorizeSecurityGroupIngressRequestMarshaller();
            var unmarshaller = AuthorizeSecurityGroupIngressResponseUnmarshaller.Instance;

            return InvokeAsync<AuthorizeSecurityGroupIngressRequest,AuthorizeSecurityGroupIngressResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client