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.
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.
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:subnetGroupName: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.
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
- 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.