| 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.CreateDBSubnetGroup
Description
Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Web Services Region.
Synopsis
- data CreateDBSubnetGroup = CreateDBSubnetGroup' {
- tags :: Maybe [Tag]
- dbSubnetGroupName :: Text
- dbSubnetGroupDescription :: Text
- subnetIds :: [Text]
- newCreateDBSubnetGroup :: Text -> Text -> CreateDBSubnetGroup
- createDBSubnetGroup_tags :: Lens' CreateDBSubnetGroup (Maybe [Tag])
- createDBSubnetGroup_dbSubnetGroupName :: Lens' CreateDBSubnetGroup Text
- createDBSubnetGroup_dbSubnetGroupDescription :: Lens' CreateDBSubnetGroup Text
- createDBSubnetGroup_subnetIds :: Lens' CreateDBSubnetGroup [Text]
- data CreateDBSubnetGroupResponse = CreateDBSubnetGroupResponse' {}
- newCreateDBSubnetGroupResponse :: Int -> CreateDBSubnetGroupResponse
- createDBSubnetGroupResponse_dbSubnetGroup :: Lens' CreateDBSubnetGroupResponse (Maybe DBSubnetGroup)
- createDBSubnetGroupResponse_httpStatus :: Lens' CreateDBSubnetGroupResponse Int
Creating a Request
data CreateDBSubnetGroup Source #
See: newCreateDBSubnetGroup smart constructor.
Constructors
| CreateDBSubnetGroup' | |
Fields
| |
Instances
newCreateDBSubnetGroup Source #
Arguments
| :: Text | |
| -> Text | |
| -> CreateDBSubnetGroup |
Create a value of CreateDBSubnetGroup 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:CreateDBSubnetGroup', createDBSubnetGroup_tags - Tags to assign to the DB subnet group.
CreateDBSubnetGroup, createDBSubnetGroup_dbSubnetGroupName - The name for the DB subnet group. This value is stored as a lowercase
string.
Constraints:
- Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens.
- Must not be default.
- First character must be a letter.
Example: mydbsubnetgroup
CreateDBSubnetGroup, createDBSubnetGroup_dbSubnetGroupDescription - The description for the DB subnet group.
$sel:subnetIds:CreateDBSubnetGroup', createDBSubnetGroup_subnetIds - The EC2 Subnet IDs for the DB subnet group.
Request Lenses
createDBSubnetGroup_tags :: Lens' CreateDBSubnetGroup (Maybe [Tag]) Source #
Tags to assign to the DB subnet group.
createDBSubnetGroup_dbSubnetGroupName :: Lens' CreateDBSubnetGroup Text Source #
The name for the DB subnet group. This value is stored as a lowercase string.
Constraints:
- Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens.
- Must not be default.
- First character must be a letter.
Example: mydbsubnetgroup
createDBSubnetGroup_dbSubnetGroupDescription :: Lens' CreateDBSubnetGroup Text Source #
The description for the DB subnet group.
createDBSubnetGroup_subnetIds :: Lens' CreateDBSubnetGroup [Text] Source #
The EC2 Subnet IDs for the DB subnet group.
Destructuring the Response
data CreateDBSubnetGroupResponse Source #
See: newCreateDBSubnetGroupResponse smart constructor.
Constructors
| CreateDBSubnetGroupResponse' | |
Fields
| |
Instances
newCreateDBSubnetGroupResponse Source #
Create a value of CreateDBSubnetGroupResponse 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:
CreateDBSubnetGroupResponse, createDBSubnetGroupResponse_dbSubnetGroup - Undocumented member.
$sel:httpStatus:CreateDBSubnetGroupResponse', createDBSubnetGroupResponse_httpStatus - The response's http status code.
Response Lenses
createDBSubnetGroupResponse_dbSubnetGroup :: Lens' CreateDBSubnetGroupResponse (Maybe DBSubnetGroup) Source #
Undocumented member.
createDBSubnetGroupResponse_httpStatus :: Lens' CreateDBSubnetGroupResponse Int Source #
The response's http status code.