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 public IPv4 address pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only. To monitor the status of pool creation, use DescribePublicIpv4Pools.
Synopsis
- data CreatePublicIpv4Pool = CreatePublicIpv4Pool' {}
- newCreatePublicIpv4Pool :: CreatePublicIpv4Pool
- createPublicIpv4Pool_dryRun :: Lens' CreatePublicIpv4Pool (Maybe Bool)
- createPublicIpv4Pool_tagSpecifications :: Lens' CreatePublicIpv4Pool (Maybe [TagSpecification])
- data CreatePublicIpv4PoolResponse = CreatePublicIpv4PoolResponse' {
- poolId :: Maybe Text
- httpStatus :: Int
- newCreatePublicIpv4PoolResponse :: Int -> CreatePublicIpv4PoolResponse
- createPublicIpv4PoolResponse_poolId :: Lens' CreatePublicIpv4PoolResponse (Maybe Text)
- createPublicIpv4PoolResponse_httpStatus :: Lens' CreatePublicIpv4PoolResponse Int
Creating a Request
data CreatePublicIpv4Pool Source #
See: newCreatePublicIpv4Pool
smart constructor.
CreatePublicIpv4Pool' | |
|
Instances
newCreatePublicIpv4Pool :: CreatePublicIpv4Pool Source #
Create a value of CreatePublicIpv4Pool
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:CreatePublicIpv4Pool'
, createPublicIpv4Pool_dryRun
- A check for 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
.
CreatePublicIpv4Pool
, createPublicIpv4Pool_tagSpecifications
- The key/value combination of a tag assigned to the resource. Use the
tag key in the filter name and the tag value as the filter value. For
example, to find all resources that have a tag with the key Owner
and
the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
Request Lenses
createPublicIpv4Pool_dryRun :: Lens' CreatePublicIpv4Pool (Maybe Bool) Source #
A check for 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
.
createPublicIpv4Pool_tagSpecifications :: Lens' CreatePublicIpv4Pool (Maybe [TagSpecification]) Source #
The key/value combination of a tag assigned to the resource. Use the
tag key in the filter name and the tag value as the filter value. For
example, to find all resources that have a tag with the key Owner
and
the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
Destructuring the Response
data CreatePublicIpv4PoolResponse Source #
See: newCreatePublicIpv4PoolResponse
smart constructor.
CreatePublicIpv4PoolResponse' | |
|
Instances
newCreatePublicIpv4PoolResponse Source #
Create a value of CreatePublicIpv4PoolResponse
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:
CreatePublicIpv4PoolResponse
, createPublicIpv4PoolResponse_poolId
- The ID of the public IPv4 pool.
$sel:httpStatus:CreatePublicIpv4PoolResponse'
, createPublicIpv4PoolResponse_httpStatus
- The response's http status code.
Response Lenses
createPublicIpv4PoolResponse_poolId :: Lens' CreatePublicIpv4PoolResponse (Maybe Text) Source #
The ID of the public IPv4 pool.
createPublicIpv4PoolResponse_httpStatus :: Lens' CreatePublicIpv4PoolResponse Int Source #
The response's http status code.