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 subnet group. subnet groups must contain at least one subnet in at least two Availability Zones in the 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 #
Represents the input to CreateDBSubnetGroup.
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
- The tags to be assigned to the subnet group.
$sel:dbSubnetGroupName:CreateDBSubnetGroup'
, createDBSubnetGroup_dbSubnetGroupName
- The name for the 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 subnet group.
$sel:subnetIds:CreateDBSubnetGroup'
, createDBSubnetGroup_subnetIds
- The Amazon EC2 subnet IDs for the subnet group.
Request Lenses
createDBSubnetGroup_tags :: Lens' CreateDBSubnetGroup (Maybe [Tag]) Source #
The tags to be assigned to the subnet group.
createDBSubnetGroup_dbSubnetGroupName :: Lens' CreateDBSubnetGroup Text Source #
The name for the 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 subnet group.
createDBSubnetGroup_subnetIds :: Lens' CreateDBSubnetGroup [Text] Source #
The Amazon EC2 subnet IDs for the 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.