| 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.CreateDBSecurityGroup
Description
Creates a new DB security group. DB security groups control access to a DB instance.
A DB security group controls access to EC2-Classic DB instances that are not in a VPC.
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 CreateDBSecurityGroup = CreateDBSecurityGroup' {}
- newCreateDBSecurityGroup :: Text -> Text -> CreateDBSecurityGroup
- createDBSecurityGroup_tags :: Lens' CreateDBSecurityGroup (Maybe [Tag])
- createDBSecurityGroup_dbSecurityGroupName :: Lens' CreateDBSecurityGroup Text
- createDBSecurityGroup_dbSecurityGroupDescription :: Lens' CreateDBSecurityGroup Text
- data CreateDBSecurityGroupResponse = CreateDBSecurityGroupResponse' {}
- newCreateDBSecurityGroupResponse :: Int -> CreateDBSecurityGroupResponse
- createDBSecurityGroupResponse_dbSecurityGroup :: Lens' CreateDBSecurityGroupResponse (Maybe DBSecurityGroup)
- createDBSecurityGroupResponse_httpStatus :: Lens' CreateDBSecurityGroupResponse Int
Creating a Request
data CreateDBSecurityGroup Source #
See: newCreateDBSecurityGroup smart constructor.
Constructors
| CreateDBSecurityGroup' | |
Fields
| |
Instances
newCreateDBSecurityGroup Source #
Arguments
| :: Text | |
| -> Text | |
| -> CreateDBSecurityGroup |
Create a value of CreateDBSecurityGroup 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:tags:CreateDBSecurityGroup', createDBSecurityGroup_tags - Tags to assign to the DB security group.
CreateDBSecurityGroup, createDBSecurityGroup_dbSecurityGroupName - The name for the DB security group. This value is stored as a lowercase
string.
Constraints:
- Must be 1 to 255 letters, numbers, or hyphens.
- First character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
- Must not be "Default"
Example: mysecuritygroup
CreateDBSecurityGroup, createDBSecurityGroup_dbSecurityGroupDescription - The description for the DB security group.
Request Lenses
createDBSecurityGroup_tags :: Lens' CreateDBSecurityGroup (Maybe [Tag]) Source #
Tags to assign to the DB security group.
createDBSecurityGroup_dbSecurityGroupName :: Lens' CreateDBSecurityGroup Text Source #
The name for the DB security group. This value is stored as a lowercase string.
Constraints:
- Must be 1 to 255 letters, numbers, or hyphens.
- First character must be a letter
- Can't end with a hyphen or contain two consecutive hyphens
- Must not be "Default"
Example: mysecuritygroup
createDBSecurityGroup_dbSecurityGroupDescription :: Lens' CreateDBSecurityGroup Text Source #
The description for the DB security group.
Destructuring the Response
data CreateDBSecurityGroupResponse Source #
See: newCreateDBSecurityGroupResponse smart constructor.
Constructors
| CreateDBSecurityGroupResponse' | |
Fields
| |
Instances
newCreateDBSecurityGroupResponse Source #
Create a value of CreateDBSecurityGroupResponse 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:CreateDBSecurityGroupResponse', createDBSecurityGroupResponse_dbSecurityGroup - Undocumented member.
$sel:httpStatus:CreateDBSecurityGroupResponse', createDBSecurityGroupResponse_httpStatus - The response's http status code.
Response Lenses
createDBSecurityGroupResponse_dbSecurityGroup :: Lens' CreateDBSecurityGroupResponse (Maybe DBSecurityGroup) Source #
Undocumented member.
createDBSecurityGroupResponse_httpStatus :: Lens' CreateDBSecurityGroupResponse Int Source #
The response's http status code.