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 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.
CreateDBSubnetGroup' | |
|
Instances
newCreateDBSubnetGroup Source #
:: 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.
$sel:dbSubnetGroupName: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.
Example: mySubnetgroup
$sel:dbSubnetGroupDescription: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.
Example: mySubnetgroup
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.
CreateDBSubnetGroupResponse' | |
|
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:
$sel:dbSubnetGroup: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.