amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Description

Provision a CIDR to a public IPv4 pool.

For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.

Synopsis

Creating a Request

data ProvisionPublicIpv4PoolCidr Source #

See: newProvisionPublicIpv4PoolCidr smart constructor.

Constructors

ProvisionPublicIpv4PoolCidr' 

Fields

  • dryRun :: Maybe Bool

    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.

  • ipamPoolId :: Text

    The ID of the IPAM pool you would like to use to allocate this CIDR.

  • poolId :: Text

    The ID of the public IPv4 pool you would like to use for this CIDR.

  • netmaskLength :: Int

    The netmask length of the CIDR you would like to allocate to the public IPv4 pool.

Instances

Instances details
ToHeaders ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

ToPath ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

ToQuery ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

AWSRequest ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Generic ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Associated Types

type Rep ProvisionPublicIpv4PoolCidr :: Type -> Type #

Read ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Show ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

NFData ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Eq ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Hashable ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

type AWSResponse ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

type Rep ProvisionPublicIpv4PoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

type Rep ProvisionPublicIpv4PoolCidr = D1 ('MetaData "ProvisionPublicIpv4PoolCidr" "Amazonka.EC2.ProvisionPublicIpv4PoolCidr" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ProvisionPublicIpv4PoolCidr'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "ipamPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "poolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "netmaskLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newProvisionPublicIpv4PoolCidr Source #

Create a value of ProvisionPublicIpv4PoolCidr 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:ProvisionPublicIpv4PoolCidr', provisionPublicIpv4PoolCidr_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.

ProvisionPublicIpv4PoolCidr, provisionPublicIpv4PoolCidr_ipamPoolId - The ID of the IPAM pool you would like to use to allocate this CIDR.

ProvisionPublicIpv4PoolCidr, provisionPublicIpv4PoolCidr_poolId - The ID of the public IPv4 pool you would like to use for this CIDR.

$sel:netmaskLength:ProvisionPublicIpv4PoolCidr', provisionPublicIpv4PoolCidr_netmaskLength - The netmask length of the CIDR you would like to allocate to the public IPv4 pool.

Request Lenses

provisionPublicIpv4PoolCidr_dryRun :: Lens' ProvisionPublicIpv4PoolCidr (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.

provisionPublicIpv4PoolCidr_ipamPoolId :: Lens' ProvisionPublicIpv4PoolCidr Text Source #

The ID of the IPAM pool you would like to use to allocate this CIDR.

provisionPublicIpv4PoolCidr_poolId :: Lens' ProvisionPublicIpv4PoolCidr Text Source #

The ID of the public IPv4 pool you would like to use for this CIDR.

provisionPublicIpv4PoolCidr_netmaskLength :: Lens' ProvisionPublicIpv4PoolCidr Int Source #

The netmask length of the CIDR you would like to allocate to the public IPv4 pool.

Destructuring the Response

data ProvisionPublicIpv4PoolCidrResponse Source #

Constructors

ProvisionPublicIpv4PoolCidrResponse' 

Fields

Instances

Instances details
Generic ProvisionPublicIpv4PoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Read ProvisionPublicIpv4PoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Show ProvisionPublicIpv4PoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

NFData ProvisionPublicIpv4PoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

Eq ProvisionPublicIpv4PoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

type Rep ProvisionPublicIpv4PoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionPublicIpv4PoolCidr

type Rep ProvisionPublicIpv4PoolCidrResponse = D1 ('MetaData "ProvisionPublicIpv4PoolCidrResponse" "Amazonka.EC2.ProvisionPublicIpv4PoolCidr" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ProvisionPublicIpv4PoolCidrResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "poolAddressRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PublicIpv4PoolRange)) :*: (S1 ('MetaSel ('Just "poolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newProvisionPublicIpv4PoolCidrResponse Source #

Create a value of ProvisionPublicIpv4PoolCidrResponse 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:poolAddressRange:ProvisionPublicIpv4PoolCidrResponse', provisionPublicIpv4PoolCidrResponse_poolAddressRange - Information about the address range of the public IPv4 pool.

ProvisionPublicIpv4PoolCidr, provisionPublicIpv4PoolCidrResponse_poolId - The ID of the pool that you want to provision the CIDR to.

$sel:httpStatus:ProvisionPublicIpv4PoolCidrResponse', provisionPublicIpv4PoolCidrResponse_httpStatus - The response's http status code.

Response Lenses

provisionPublicIpv4PoolCidrResponse_poolId :: Lens' ProvisionPublicIpv4PoolCidrResponse (Maybe Text) Source #

The ID of the pool that you want to provision the CIDR to.