amazonka-ec2-1.4.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.AuthorizeSecurityGroupEgress

Contents

Description

EC2-VPC only
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. This action doesn't apply to security groups for use in EC2-Classic. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

You can have up to 50 rules per security group (covering both ingress and egress rules).

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.

Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.

Synopsis

Creating a Request

Request Lenses

asgeFromPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int) Source

The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

asgeIPPermissions :: Lens' AuthorizeSecurityGroupEgress [IPPermission] Source

A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.

asgeIPProtocol :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source

The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.

asgeToPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int) Source

The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.

asgeCIdRIP :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source

The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.

asgeSourceSecurityGroupOwnerId :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source

The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

asgeSourceSecurityGroupName :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source

The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.

asgeDryRun :: Lens' AuthorizeSecurityGroupEgress (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

asgeGroupId :: Lens' AuthorizeSecurityGroupEgress Text Source

The ID of the security group.

Destructuring the Response

authorizeSecurityGroupEgressResponse :: AuthorizeSecurityGroupEgressResponse Source

Creates a value of AuthorizeSecurityGroupEgressResponse with the minimum fields required to make a request.