Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- 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 IPv4 or IPv6 CIDR 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 . For more information about security group limits, see Amazon VPC Limits .
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. You can optionally specify a description for the rule.
Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.
- authorizeSecurityGroupEgress :: Text -> AuthorizeSecurityGroupEgress
- data AuthorizeSecurityGroupEgress
- asgeFromPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int)
- asgeIPPermissions :: Lens' AuthorizeSecurityGroupEgress [IPPermission]
- asgeIPProtocol :: Lens' AuthorizeSecurityGroupEgress (Maybe Text)
- asgeToPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int)
- asgeCidrIP :: Lens' AuthorizeSecurityGroupEgress (Maybe Text)
- asgeSourceSecurityGroupOwnerId :: Lens' AuthorizeSecurityGroupEgress (Maybe Text)
- asgeSourceSecurityGroupName :: Lens' AuthorizeSecurityGroupEgress (Maybe Text)
- asgeDryRun :: Lens' AuthorizeSecurityGroupEgress (Maybe Bool)
- asgeGroupId :: Lens' AuthorizeSecurityGroupEgress Text
- authorizeSecurityGroupEgressResponse :: AuthorizeSecurityGroupEgressResponse
- data AuthorizeSecurityGroupEgressResponse
Creating a Request
authorizeSecurityGroupEgress Source #
Creates a value of AuthorizeSecurityGroupEgress
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asgeFromPort
- Not supported. Use a set of IP permissions to specify the port.asgeIPPermissions
- One or more sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions.asgeIPProtocol
- Not supported. Use a set of IP permissions to specify the protocol name or number.asgeToPort
- Not supported. Use a set of IP permissions to specify the port.asgeCidrIP
- Not supported. Use a set of IP permissions to specify the CIDR.asgeSourceSecurityGroupOwnerId
- Not supported. Use a set of IP permissions to specify a destination security group.asgeSourceSecurityGroupName
- Not supported. Use a set of IP permissions to specify a destination security group.asgeDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.asgeGroupId
- The ID of the security group.
data AuthorizeSecurityGroupEgress Source #
Contains the parameters for AuthorizeSecurityGroupEgress.
See: authorizeSecurityGroupEgress
smart constructor.
Request Lenses
asgeFromPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int) Source #
Not supported. Use a set of IP permissions to specify the port.
asgeIPPermissions :: Lens' AuthorizeSecurityGroupEgress [IPPermission] Source #
One or more sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions.
asgeIPProtocol :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source #
Not supported. Use a set of IP permissions to specify the protocol name or number.
asgeToPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int) Source #
Not supported. Use a set of IP permissions to specify the port.
asgeCidrIP :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source #
Not supported. Use a set of IP permissions to specify the CIDR.
asgeSourceSecurityGroupOwnerId :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source #
Not supported. Use a set of IP permissions to specify a destination security group.
asgeSourceSecurityGroupName :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source #
Not supported. Use a set of IP permissions to specify a destination security group.
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.
data AuthorizeSecurityGroupEgressResponse Source #
See: authorizeSecurityGroupEgressResponse
smart constructor.