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 |
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
- data CreateDefaultSubnet = CreateDefaultSubnet' {
- dryRun :: Maybe Bool
- ipv6Native :: Maybe Bool
- availabilityZone :: Text
- newCreateDefaultSubnet :: Text -> CreateDefaultSubnet
- createDefaultSubnet_dryRun :: Lens' CreateDefaultSubnet (Maybe Bool)
- createDefaultSubnet_ipv6Native :: Lens' CreateDefaultSubnet (Maybe Bool)
- createDefaultSubnet_availabilityZone :: Lens' CreateDefaultSubnet Text
- data CreateDefaultSubnetResponse = CreateDefaultSubnetResponse' {
- subnet :: Maybe Subnet
- httpStatus :: Int
- newCreateDefaultSubnetResponse :: Int -> CreateDefaultSubnetResponse
- createDefaultSubnetResponse_subnet :: Lens' CreateDefaultSubnetResponse (Maybe Subnet)
- createDefaultSubnetResponse_httpStatus :: Lens' CreateDefaultSubnetResponse Int
Creating a Request
data CreateDefaultSubnet Source #
See: newCreateDefaultSubnet
smart constructor.
CreateDefaultSubnet' | |
|
Instances
newCreateDefaultSubnet Source #
Create a value of CreateDefaultSubnet
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:dryRun:CreateDefaultSubnet'
, createDefaultSubnet_dryRun
- 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
.
CreateDefaultSubnet
, createDefaultSubnet_ipv6Native
- Indicates whether to create an IPv6 only subnet. If you already have a
default subnet for this Availability Zone, you must delete it before you
can create an IPv6 only subnet.
CreateDefaultSubnet
, createDefaultSubnet_availabilityZone
- The Availability Zone in which to create the default subnet.
Request Lenses
createDefaultSubnet_dryRun :: 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
.
createDefaultSubnet_ipv6Native :: Lens' CreateDefaultSubnet (Maybe Bool) Source #
Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.
createDefaultSubnet_availabilityZone :: Lens' CreateDefaultSubnet Text Source #
The Availability Zone in which to create the default subnet.
Destructuring the Response
data CreateDefaultSubnetResponse Source #
See: newCreateDefaultSubnetResponse
smart constructor.
CreateDefaultSubnetResponse' | |
|
Instances
newCreateDefaultSubnetResponse Source #
Create a value of CreateDefaultSubnetResponse
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:
CreateDefaultSubnetResponse
, createDefaultSubnetResponse_subnet
- Information about the subnet.
$sel:httpStatus:CreateDefaultSubnetResponse'
, createDefaultSubnetResponse_httpStatus
- The response's http status code.
Response Lenses
createDefaultSubnetResponse_subnet :: Lens' CreateDefaultSubnetResponse (Maybe Subnet) Source #
Information about the subnet.
createDefaultSubnetResponse_httpStatus :: Lens' CreateDefaultSubnetResponse Int Source #
The response's http status code.