| 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.DAX.CreateSubnetGroup
Description
Creates a new subnet group.
Synopsis
- data CreateSubnetGroup = CreateSubnetGroup' {
- description :: Maybe Text
- subnetGroupName :: Text
- subnetIds :: [Text]
- newCreateSubnetGroup :: Text -> CreateSubnetGroup
- createSubnetGroup_description :: Lens' CreateSubnetGroup (Maybe Text)
- 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.
Constructors
| CreateSubnetGroup' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateSubnetGroup |
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:
CreateSubnetGroup, createSubnetGroup_description - A description for the subnet group
CreateSubnetGroup, createSubnetGroup_subnetGroupName - A name for the subnet group. This value is stored as a lowercase string.
$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_subnetGroupName :: Lens' CreateSubnetGroup Text Source #
A name for the subnet group. This value is stored as a lowercase string.
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.
Constructors
| CreateSubnetGroupResponse' | |
Fields
| |
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:
CreateSubnetGroupResponse, createSubnetGroupResponse_subnetGroup - Represents the output of a CreateSubnetGroup operation.
$sel:httpStatus:CreateSubnetGroupResponse', createSubnetGroupResponse_httpStatus - The response's http status code.
Response Lenses
createSubnetGroupResponse_subnetGroup :: Lens' CreateSubnetGroupResponse (Maybe SubnetGroup) Source #
Represents the output of a CreateSubnetGroup operation.
createSubnetGroupResponse_httpStatus :: Lens' CreateSubnetGroupResponse Int Source #
The response's http status code.