Method: AWS::EC2::Client#authorize_security_group_egress

Defined in:
lib/aws/ec2/client.rb

#authorize_security_group_egress(options = {}) ⇒ Core::Response

Calls the AuthorizeSecurityGroupEgress API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :group_id - required - (String) ID of the VPC security group to modify.

    • :source_security_group_name - (String) Deprecated.

    • :source_security_group_owner_id - (String) Deprecated.

    • :ip_protocol - (String) Deprecated.

    • :from_port - (Integer) Deprecated.

    • :to_port - (Integer) Deprecated.

    • :cidr_ip - (String) Deprecated.

    • :ip_permissions - (Array<Hash>) List of IP permissions to authorize on the specified security group. Specifying permissions through IP permissions is the preferred way of authorizing permissions since it offers more flexibility and control.

      • :ip_protocol - (String) The IP protocol of this permission. Valid protocol values: tcp, udp, icmp

      • :from_port - (Integer) Start of port range for the TCP and UDP protocols, or an ICMP type number. An ICMP type number of -1 indicates a wildcard (i.e., any ICMP type number).

      • :to_port - (Integer) End of port range for the TCP and UDP protocols, or an ICMP code. An ICMP code of -1 indicates a wildcard (i.e., any ICMP code).

      • :user_id_group_pairs - (Array<Hash>) The list of AWS user IDs and groups included in this permission.

        • :user_id - (String) The AWS user ID of an account.

        • :group_name - (String) Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

        • :group_id - (String) ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

      • :ip_ranges - (Array<Hash>) The list of CIDR IP ranges included in this permission.

        • :cidr_ip - (String) The list of CIDR IP ranges.

Returns:



221
# File 'lib/aws/ec2/client.rb', line 221

define_client_method :authorize_security_group_egress, 'AuthorizeSecurityGroupEgress'