/// <summary> /// Initiates the asynchronous execution of the AuthorizeSecurityGroupIngress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeSecurityGroupIngress 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<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); }
public void AuthorizeSecurityGroupIngressMarshallTest() { var operation = service_model.FindOperation("AuthorizeSecurityGroupIngress"); var request = InstantiateClassGenerator.Execute<AuthorizeSecurityGroupIngressRequest>(); var marshaller = new AuthorizeSecurityGroupIngressRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Adds one or more ingress rules to a security group. /// /// <important> /// <para> /// EC2-Classic: You can have up to 100 rules per group. /// </para> /// /// <para> /// EC2-VPC: You can have up to 50 rules per group (covering both ingress and egress rules). /// </para> /// </important> /// <para> /// Rule changes are propagated to instances within the security group as quickly as possible. /// However, a small delay might occur. /// </para> /// /// <para> /// [EC2-Classic] This action gives one or more CIDR IP address ranges permission to access /// a security group in your account, or gives one or more security groups (called the /// <i>source groups</i>) permission to access a security group for your account. A source /// group can be for your own AWS account, or another. /// </para> /// /// <para> /// [EC2-VPC] This action gives one or more CIDR IP address ranges permission to access /// a security group in your VPC, or gives one or more other security groups (called the /// <i>source groups</i>) permission to access a security group for your VPC. The security /// groups must all be for the same VPC. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AuthorizeSecurityGroupIngress service method.</param> /// /// <returns>The response from the AuthorizeSecurityGroupIngress service method, as returned by EC2.</returns> public AuthorizeSecurityGroupIngressResponse AuthorizeSecurityGroupIngress(AuthorizeSecurityGroupIngressRequest request) { var marshaller = new AuthorizeSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupIngressResponseUnmarshaller.Instance; return Invoke<AuthorizeSecurityGroupIngressRequest,AuthorizeSecurityGroupIngressResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the AuthorizeSecurityGroupIngress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeSecurityGroupIngress 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 EndAuthorizeSecurityGroupIngress /// operation.</returns> public IAsyncResult BeginAuthorizeSecurityGroupIngress(AuthorizeSecurityGroupIngressRequest request, AsyncCallback callback, object state) { var marshaller = new AuthorizeSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupIngressResponseUnmarshaller.Instance; return BeginInvoke<AuthorizeSecurityGroupIngressRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeAuthorizeSecurityGroupIngress(AuthorizeSecurityGroupIngressRequest authorizeSecurityGroupIngressRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new AuthorizeSecurityGroupIngressRequestMarshaller().Marshall(authorizeSecurityGroupIngressRequest); var unmarshaller = AuthorizeSecurityGroupIngressResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Adds one or more ingress rules to a security group.</para> <para><b>IMPORTANT:</b> EC2-Classic: You can have up to 100 rules per /// group. EC2-VPC: You can have up to 50 rules per group (covering both ingress and egress rules). </para> <para>Rule changes are propagated to /// instances within the security group as quickly as possible. However, a small delay might occur.</para> <para>[EC2-Classic] This action gives /// one or more CIDR IP address ranges permission to access a security group in your account, or gives one or more security groups (called the /// <i>source groups</i> ) permission to access a security group for your account. A source group can be for your own AWS account, or /// another.</para> <para>[EC2-VPC] This action gives one or more CIDR IP address ranges permission to access a security group in your VPC, or /// gives one or more other security groups (called the <i>source groups</i> ) permission to access a security group for your VPC. The security /// groups must all be for the same VPC.</para> /// </summary> /// /// <param name="authorizeSecurityGroupIngressRequest">Container for the necessary parameters to execute the AuthorizeSecurityGroupIngress /// 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<AuthorizeSecurityGroupIngressResponse> AuthorizeSecurityGroupIngressAsync(AuthorizeSecurityGroupIngressRequest authorizeSecurityGroupIngressRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AuthorizeSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupIngressResponseUnmarshaller.GetInstance(); return Invoke<IRequest, AuthorizeSecurityGroupIngressRequest, AuthorizeSecurityGroupIngressResponse>(authorizeSecurityGroupIngressRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the AuthorizeSecurityGroupIngress operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.AuthorizeSecurityGroupIngress"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AuthorizeSecurityGroupIngress 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<AuthorizeSecurityGroupIngressResponse> AuthorizeSecurityGroupIngressAsync(AuthorizeSecurityGroupIngressRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AuthorizeSecurityGroupIngressRequestMarshaller(); var unmarshaller = AuthorizeSecurityGroupIngressResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, AuthorizeSecurityGroupIngressRequest, AuthorizeSecurityGroupIngressResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }