Copyright | (c) 2013-2021 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 |
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.
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.
CreateDBSecurityGroup' | |
|
Instances
newCreateDBSecurityGroup Source #
:: 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.
$sel:dbSecurityGroupName: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
$sel:dbSecurityGroupDescription: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.
CreateDBSecurityGroupResponse' | |
|
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.