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 subnet group. A subnet group is a collection of subnets (typically private) that you can designate for your clusters running in an Amazon Virtual Private Cloud (VPC) environment. When you create a cluster in an Amazon VPC, you must specify a subnet group. MemoryDB uses that subnet group to choose a subnet and IP addresses within that subnet to associate with your nodes. For more information, see Subnets and subnet groups.
Synopsis
- data CreateSubnetGroup = CreateSubnetGroup' {
- description :: Maybe Text
- tags :: Maybe [Tag]
- subnetGroupName :: Text
- subnetIds :: [Text]
- newCreateSubnetGroup :: Text -> CreateSubnetGroup
- createSubnetGroup_description :: Lens' CreateSubnetGroup (Maybe Text)
- createSubnetGroup_tags :: Lens' CreateSubnetGroup (Maybe [Tag])
- createSubnetGroup_subnetGroupName :: Lens' CreateSubnetGroup Text
- createSubnetGroup_subnetIds :: Lens' CreateSubnetGroup [Text]
- data CreateSubnetGroupResponse = CreateSubnetGroupResponse' {}
- newCreateSubnetGroupResponse :: Int -> CreateSubnetGroupResponse
- createSubnetGroupResponse_subnetGroup :: Lens' CreateSubnetGroupResponse (Maybe SubnetGroup)
- createSubnetGroupResponse_httpStatus :: Lens' CreateSubnetGroupResponse Int
Creating a Request
data CreateSubnetGroup Source #
See: newCreateSubnetGroup
smart constructor.
CreateSubnetGroup' | |
|
Instances
Create a value of CreateSubnetGroup
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:description:CreateSubnetGroup'
, createSubnetGroup_description
- A description for the subnet group.
$sel:tags:CreateSubnetGroup'
, createSubnetGroup_tags
- A list of tags to be added to this resource. A tag is a key-value pair.
A tag key must be accompanied by a tag value, although null is accepted.
$sel:subnetGroupName:CreateSubnetGroup'
, createSubnetGroup_subnetGroupName
- The name of the subnet group.
$sel:subnetIds:CreateSubnetGroup'
, createSubnetGroup_subnetIds
- A list of VPC subnet IDs for the subnet group.
Request Lenses
createSubnetGroup_description :: Lens' CreateSubnetGroup (Maybe Text) Source #
A description for the subnet group.
createSubnetGroup_tags :: Lens' CreateSubnetGroup (Maybe [Tag]) Source #
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
createSubnetGroup_subnetGroupName :: Lens' CreateSubnetGroup Text Source #
The name of the subnet group.
createSubnetGroup_subnetIds :: Lens' CreateSubnetGroup [Text] Source #
A list of VPC subnet IDs for the subnet group.
Destructuring the Response
data CreateSubnetGroupResponse Source #
See: newCreateSubnetGroupResponse
smart constructor.
CreateSubnetGroupResponse' | |
|
Instances
newCreateSubnetGroupResponse Source #
Create a value of CreateSubnetGroupResponse
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:subnetGroup:CreateSubnetGroupResponse'
, createSubnetGroupResponse_subnetGroup
- The newly-created subnet group
$sel:httpStatus:CreateSubnetGroupResponse'
, createSubnetGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createSubnetGroupResponse_subnetGroup :: Lens' CreateSubnetGroupResponse (Maybe SubnetGroup) Source #
The newly-created subnet group
createSubnetGroupResponse_httpStatus :: Lens' CreateSubnetGroupResponse Int Source #
The response's http status code.