| 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 |
Amazonka.RDS.RevokeDBSecurityGroupIngress
Description
Revokes ingress from a DBSecurityGroup for previously authorized IP ranges or EC2 or VPC security groups. Required parameters for this API are one of CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId).
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide, the blog EC2-Classic Networking is Retiring – Here’s How to Prepare, and Moving a DB instance not in a VPC into a VPC in the Amazon RDS User Guide.
Synopsis
- data RevokeDBSecurityGroupIngress = RevokeDBSecurityGroupIngress' {}
- newRevokeDBSecurityGroupIngress :: Text -> RevokeDBSecurityGroupIngress
- revokeDBSecurityGroupIngress_cidrip :: Lens' RevokeDBSecurityGroupIngress (Maybe Text)
- revokeDBSecurityGroupIngress_eC2SecurityGroupId :: Lens' RevokeDBSecurityGroupIngress (Maybe Text)
- revokeDBSecurityGroupIngress_eC2SecurityGroupName :: Lens' RevokeDBSecurityGroupIngress (Maybe Text)
- revokeDBSecurityGroupIngress_eC2SecurityGroupOwnerId :: Lens' RevokeDBSecurityGroupIngress (Maybe Text)
- revokeDBSecurityGroupIngress_dbSecurityGroupName :: Lens' RevokeDBSecurityGroupIngress Text
- data RevokeDBSecurityGroupIngressResponse = RevokeDBSecurityGroupIngressResponse' {}
- newRevokeDBSecurityGroupIngressResponse :: Int -> RevokeDBSecurityGroupIngressResponse
- revokeDBSecurityGroupIngressResponse_dbSecurityGroup :: Lens' RevokeDBSecurityGroupIngressResponse (Maybe DBSecurityGroup)
- revokeDBSecurityGroupIngressResponse_httpStatus :: Lens' RevokeDBSecurityGroupIngressResponse Int
Creating a Request
data RevokeDBSecurityGroupIngress Source #
See: newRevokeDBSecurityGroupIngress smart constructor.
Constructors
| RevokeDBSecurityGroupIngress' | |
Fields
| |
Instances
newRevokeDBSecurityGroupIngress Source #
Arguments
| :: Text | |
| -> RevokeDBSecurityGroupIngress |
Create a value of RevokeDBSecurityGroupIngress 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:
RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_cidrip - The IP range to revoke access from. Must be a valid CIDR range. If
CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and
EC2SecurityGroupOwnerId can't be provided.
RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_eC2SecurityGroupId - The id of the EC2 security group to revoke access from. For VPC DB
security groups, EC2SecurityGroupId must be provided. Otherwise,
EC2SecurityGroupOwnerId and either EC2SecurityGroupName or
EC2SecurityGroupId must be provided.
RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_eC2SecurityGroupName - The name of the EC2 security group to revoke access from. For VPC DB
security groups, EC2SecurityGroupId must be provided. Otherwise,
EC2SecurityGroupOwnerId and either EC2SecurityGroupName or
EC2SecurityGroupId must be provided.
RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_eC2SecurityGroupOwnerId - The Amazon Web Services account number of the owner of the EC2 security
group specified in the EC2SecurityGroupName parameter. The Amazon Web
Services access key ID isn't an acceptable value. For VPC DB security
groups, EC2SecurityGroupId must be provided. Otherwise,
EC2SecurityGroupOwnerId and either EC2SecurityGroupName or
EC2SecurityGroupId must be provided.
RevokeDBSecurityGroupIngress, revokeDBSecurityGroupIngress_dbSecurityGroupName - The name of the DB security group to revoke ingress from.
Request Lenses
revokeDBSecurityGroupIngress_cidrip :: Lens' RevokeDBSecurityGroupIngress (Maybe Text) Source #
The IP range to revoke access from. Must be a valid CIDR range. If
CIDRIP is specified, EC2SecurityGroupName, EC2SecurityGroupId and
EC2SecurityGroupOwnerId can't be provided.
revokeDBSecurityGroupIngress_eC2SecurityGroupId :: Lens' RevokeDBSecurityGroupIngress (Maybe Text) Source #
The id of the EC2 security group to revoke access from. For VPC DB
security groups, EC2SecurityGroupId must be provided. Otherwise,
EC2SecurityGroupOwnerId and either EC2SecurityGroupName or
EC2SecurityGroupId must be provided.
revokeDBSecurityGroupIngress_eC2SecurityGroupName :: Lens' RevokeDBSecurityGroupIngress (Maybe Text) Source #
The name of the EC2 security group to revoke access from. For VPC DB
security groups, EC2SecurityGroupId must be provided. Otherwise,
EC2SecurityGroupOwnerId and either EC2SecurityGroupName or
EC2SecurityGroupId must be provided.
revokeDBSecurityGroupIngress_eC2SecurityGroupOwnerId :: Lens' RevokeDBSecurityGroupIngress (Maybe Text) Source #
The Amazon Web Services account number of the owner of the EC2 security
group specified in the EC2SecurityGroupName parameter. The Amazon Web
Services access key ID isn't an acceptable value. For VPC DB security
groups, EC2SecurityGroupId must be provided. Otherwise,
EC2SecurityGroupOwnerId and either EC2SecurityGroupName or
EC2SecurityGroupId must be provided.
revokeDBSecurityGroupIngress_dbSecurityGroupName :: Lens' RevokeDBSecurityGroupIngress Text Source #
The name of the DB security group to revoke ingress from.
Destructuring the Response
data RevokeDBSecurityGroupIngressResponse Source #
See: newRevokeDBSecurityGroupIngressResponse smart constructor.
Constructors
| RevokeDBSecurityGroupIngressResponse' | |
Fields
| |
Instances
newRevokeDBSecurityGroupIngressResponse Source #
Arguments
| :: Int | |
| -> RevokeDBSecurityGroupIngressResponse |
Create a value of RevokeDBSecurityGroupIngressResponse 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:dbSecurityGroup:RevokeDBSecurityGroupIngressResponse', revokeDBSecurityGroupIngressResponse_dbSecurityGroup - Undocumented member.
$sel:httpStatus:RevokeDBSecurityGroupIngressResponse', revokeDBSecurityGroupIngressResponse_httpStatus - The response's http status code.
Response Lenses
revokeDBSecurityGroupIngressResponse_dbSecurityGroup :: Lens' RevokeDBSecurityGroupIngressResponse (Maybe DBSecurityGroup) Source #
Undocumented member.
revokeDBSecurityGroupIngressResponse_httpStatus :: Lens' RevokeDBSecurityGroupIngressResponse Int Source #
The response's http status code.