Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- VPC only
- Adds the specified outbound (egress) rules to a security group for use with a VPC.
An outbound rule permits instances to send traffic to the specified IPv4
or IPv6 CIDR address ranges, or to the instances that are associated
with the specified source security groups. When specifying an outbound
rule for your security group in a VPC, the IpPermissions
must include
a destination for the traffic.
You specify a protocol for each rule (for example, TCP). 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.
For information about VPC security group quotas, see Amazon VPC quotas.
Synopsis
- data AuthorizeSecurityGroupEgress = AuthorizeSecurityGroupEgress' {}
- newAuthorizeSecurityGroupEgress :: Text -> AuthorizeSecurityGroupEgress
- authorizeSecurityGroupEgress_cidrIp :: Lens' AuthorizeSecurityGroupEgress (Maybe Text)
- authorizeSecurityGroupEgress_dryRun :: Lens' AuthorizeSecurityGroupEgress (Maybe Bool)
- authorizeSecurityGroupEgress_fromPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int)
- authorizeSecurityGroupEgress_ipPermissions :: Lens' AuthorizeSecurityGroupEgress (Maybe [IpPermission])
- authorizeSecurityGroupEgress_ipProtocol :: Lens' AuthorizeSecurityGroupEgress (Maybe Text)
- authorizeSecurityGroupEgress_sourceSecurityGroupName :: Lens' AuthorizeSecurityGroupEgress (Maybe Text)
- authorizeSecurityGroupEgress_sourceSecurityGroupOwnerId :: Lens' AuthorizeSecurityGroupEgress (Maybe Text)
- authorizeSecurityGroupEgress_tagSpecifications :: Lens' AuthorizeSecurityGroupEgress (Maybe [TagSpecification])
- authorizeSecurityGroupEgress_toPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int)
- authorizeSecurityGroupEgress_groupId :: Lens' AuthorizeSecurityGroupEgress Text
- data AuthorizeSecurityGroupEgressResponse = AuthorizeSecurityGroupEgressResponse' {}
- newAuthorizeSecurityGroupEgressResponse :: Int -> AuthorizeSecurityGroupEgressResponse
- authorizeSecurityGroupEgressResponse_return :: Lens' AuthorizeSecurityGroupEgressResponse (Maybe Bool)
- authorizeSecurityGroupEgressResponse_securityGroupRules :: Lens' AuthorizeSecurityGroupEgressResponse (Maybe [SecurityGroupRule])
- authorizeSecurityGroupEgressResponse_httpStatus :: Lens' AuthorizeSecurityGroupEgressResponse Int
Creating a Request
data AuthorizeSecurityGroupEgress Source #
See: newAuthorizeSecurityGroupEgress
smart constructor.
AuthorizeSecurityGroupEgress' | |
|
Instances
newAuthorizeSecurityGroupEgress Source #
Create a value of AuthorizeSecurityGroupEgress
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
AuthorizeSecurityGroupEgress
, authorizeSecurityGroupEgress_cidrIp
- Not supported. Use a set of IP permissions to specify the CIDR.
$sel:dryRun:AuthorizeSecurityGroupEgress'
, authorizeSecurityGroupEgress_dryRun
- 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
.
AuthorizeSecurityGroupEgress
, authorizeSecurityGroupEgress_fromPort
- Not supported. Use a set of IP permissions to specify the port.
AuthorizeSecurityGroupEgress
, authorizeSecurityGroupEgress_ipPermissions
- The sets of IP permissions. You can't specify a destination security
group and a CIDR IP address range in the same set of permissions.
AuthorizeSecurityGroupEgress
, authorizeSecurityGroupEgress_ipProtocol
- Not supported. Use a set of IP permissions to specify the protocol name
or number.
$sel:sourceSecurityGroupName:AuthorizeSecurityGroupEgress'
, authorizeSecurityGroupEgress_sourceSecurityGroupName
- Not supported. Use a set of IP permissions to specify a destination
security group.
$sel:sourceSecurityGroupOwnerId:AuthorizeSecurityGroupEgress'
, authorizeSecurityGroupEgress_sourceSecurityGroupOwnerId
- Not supported. Use a set of IP permissions to specify a destination
security group.
AuthorizeSecurityGroupEgress
, authorizeSecurityGroupEgress_tagSpecifications
- The tags applied to the security group rule.
AuthorizeSecurityGroupEgress
, authorizeSecurityGroupEgress_toPort
- Not supported. Use a set of IP permissions to specify the port.
AuthorizeSecurityGroupEgress
, authorizeSecurityGroupEgress_groupId
- The ID of the security group.
Request Lenses
authorizeSecurityGroupEgress_cidrIp :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source #
Not supported. Use a set of IP permissions to specify the CIDR.
authorizeSecurityGroupEgress_dryRun :: 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
.
authorizeSecurityGroupEgress_fromPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int) Source #
Not supported. Use a set of IP permissions to specify the port.
authorizeSecurityGroupEgress_ipPermissions :: Lens' AuthorizeSecurityGroupEgress (Maybe [IpPermission]) Source #
The sets of IP permissions. You can't specify a destination security group and a CIDR IP address range in the same set of permissions.
authorizeSecurityGroupEgress_ipProtocol :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source #
Not supported. Use a set of IP permissions to specify the protocol name or number.
authorizeSecurityGroupEgress_sourceSecurityGroupName :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source #
Not supported. Use a set of IP permissions to specify a destination security group.
authorizeSecurityGroupEgress_sourceSecurityGroupOwnerId :: Lens' AuthorizeSecurityGroupEgress (Maybe Text) Source #
Not supported. Use a set of IP permissions to specify a destination security group.
authorizeSecurityGroupEgress_tagSpecifications :: Lens' AuthorizeSecurityGroupEgress (Maybe [TagSpecification]) Source #
The tags applied to the security group rule.
authorizeSecurityGroupEgress_toPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int) Source #
Not supported. Use a set of IP permissions to specify the port.
authorizeSecurityGroupEgress_groupId :: Lens' AuthorizeSecurityGroupEgress Text Source #
The ID of the security group.
Destructuring the Response
data AuthorizeSecurityGroupEgressResponse Source #
See: newAuthorizeSecurityGroupEgressResponse
smart constructor.
AuthorizeSecurityGroupEgressResponse' | |
|
Instances
newAuthorizeSecurityGroupEgressResponse Source #
Create a value of AuthorizeSecurityGroupEgressResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:return':AuthorizeSecurityGroupEgressResponse'
, authorizeSecurityGroupEgressResponse_return
- Returns true
if the request succeeds; otherwise, returns an error.
$sel:securityGroupRules:AuthorizeSecurityGroupEgressResponse'
, authorizeSecurityGroupEgressResponse_securityGroupRules
- Information about the outbound (egress) security group rules that were
added.
$sel:httpStatus:AuthorizeSecurityGroupEgressResponse'
, authorizeSecurityGroupEgressResponse_httpStatus
- The response's http status code.
Response Lenses
authorizeSecurityGroupEgressResponse_return :: Lens' AuthorizeSecurityGroupEgressResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, returns an error.
authorizeSecurityGroupEgressResponse_securityGroupRules :: Lens' AuthorizeSecurityGroupEgressResponse (Maybe [SecurityGroupRule]) Source #
Information about the outbound (egress) security group rules that were added.
authorizeSecurityGroupEgressResponse_httpStatus :: Lens' AuthorizeSecurityGroupEgressResponse Int Source #
The response's http status code.