Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a default subnet with a size /20
IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a Default Subnet in the Amazon Virtual Private Cloud User Guide .
Synopsis
- createDefaultSubnet :: Text -> CreateDefaultSubnet
- data CreateDefaultSubnet
- cdsDryRun :: Lens' CreateDefaultSubnet (Maybe Bool)
- cdsAvailabilityZone :: Lens' CreateDefaultSubnet Text
- createDefaultSubnetResponse :: Int -> CreateDefaultSubnetResponse
- data CreateDefaultSubnetResponse
- cdsrsSubnet :: Lens' CreateDefaultSubnetResponse (Maybe Subnet)
- cdsrsResponseStatus :: Lens' CreateDefaultSubnetResponse Int
Creating a Request
Creates a value of CreateDefaultSubnet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdsDryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.cdsAvailabilityZone
- The Availability Zone in which to create the default subnet.
data CreateDefaultSubnet Source #
See: createDefaultSubnet
smart constructor.
Instances
Request Lenses
cdsDryRun :: Lens' CreateDefaultSubnet (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
cdsAvailabilityZone :: Lens' CreateDefaultSubnet Text Source #
The Availability Zone in which to create the default subnet.
Destructuring the Response
createDefaultSubnetResponse Source #
Creates a value of CreateDefaultSubnetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdsrsSubnet
- Information about the subnet.cdsrsResponseStatus
- -- | The response status code.
data CreateDefaultSubnetResponse Source #
See: createDefaultSubnetResponse
smart constructor.
Instances
Response Lenses
cdsrsSubnet :: Lens' CreateDefaultSubnetResponse (Maybe Subnet) Source #
Information about the subnet.
cdsrsResponseStatus :: Lens' CreateDefaultSubnetResponse Int Source #
- - | The response status code.