amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.AuthorizeSecurityGroupEgress

Description

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

Creating a Request

data AuthorizeSecurityGroupEgress Source #

See: newAuthorizeSecurityGroupEgress smart constructor.

Constructors

AuthorizeSecurityGroupEgress' 

Fields

  • cidrIp :: Maybe Text

    Not supported. Use a set of IP permissions to specify the CIDR.

  • dryRun :: Maybe Bool

    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.

  • fromPort :: Maybe Int

    Not supported. Use a set of IP permissions to specify the port.

  • ipPermissions :: Maybe [IpPermission]

    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.

  • ipProtocol :: Maybe Text

    Not supported. Use a set of IP permissions to specify the protocol name or number.

  • sourceSecurityGroupName :: Maybe Text

    Not supported. Use a set of IP permissions to specify a destination security group.

  • sourceSecurityGroupOwnerId :: Maybe Text

    Not supported. Use a set of IP permissions to specify a destination security group.

  • tagSpecifications :: Maybe [TagSpecification]

    The tags applied to the security group rule.

  • toPort :: Maybe Int

    Not supported. Use a set of IP permissions to specify the port.

  • groupId :: Text

    The ID of the security group.

Instances

Instances details
ToHeaders AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

ToPath AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

ToQuery AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

AWSRequest AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

Generic AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

Associated Types

type Rep AuthorizeSecurityGroupEgress :: Type -> Type #

Read AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

Show AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

NFData AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

Eq AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

Hashable AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

type AWSResponse AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

type Rep AuthorizeSecurityGroupEgress Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

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_toPort :: Lens' AuthorizeSecurityGroupEgress (Maybe Int) Source #

Not supported. Use a set of IP permissions to specify the port.

Destructuring the Response

data AuthorizeSecurityGroupEgressResponse Source #

Constructors

AuthorizeSecurityGroupEgressResponse' 

Fields

Instances

Instances details
Generic AuthorizeSecurityGroupEgressResponse Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

Read AuthorizeSecurityGroupEgressResponse Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

Show AuthorizeSecurityGroupEgressResponse Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

NFData AuthorizeSecurityGroupEgressResponse Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

Eq AuthorizeSecurityGroupEgressResponse Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

type Rep AuthorizeSecurityGroupEgressResponse Source # 
Instance details

Defined in Amazonka.EC2.AuthorizeSecurityGroupEgress

type Rep AuthorizeSecurityGroupEgressResponse = D1 ('MetaData "AuthorizeSecurityGroupEgressResponse" "Amazonka.EC2.AuthorizeSecurityGroupEgress" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "AuthorizeSecurityGroupEgressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "securityGroupRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SecurityGroupRule])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.