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.ProvisionIpamPoolCidr

Description

Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.

For more information, see Provision CIDRs to pools in the Amazon VPC IPAM User Guide.

Synopsis

Creating a Request

data ProvisionIpamPoolCidr Source #

See: newProvisionIpamPoolCidr smart constructor.

Constructors

ProvisionIpamPoolCidr' 

Fields

  • cidr :: Maybe Text

    The CIDR you want to assign to the IPAM pool.

  • cidrAuthorizationContext :: Maybe IpamCidrAuthorizationContext

    A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.

  • 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 to which you want to assign a CIDR.

Instances

Instances details
ToHeaders ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

ToPath ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

ToQuery ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

AWSRequest ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

Associated Types

type AWSResponse ProvisionIpamPoolCidr #

Generic ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

Associated Types

type Rep ProvisionIpamPoolCidr :: Type -> Type #

Read ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

Show ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

NFData ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

Methods

rnf :: ProvisionIpamPoolCidr -> () #

Eq ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

Hashable ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

type AWSResponse ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

type Rep ProvisionIpamPoolCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

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

newProvisionIpamPoolCidr Source #

Create a value of ProvisionIpamPoolCidr 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:

ProvisionIpamPoolCidr, provisionIpamPoolCidr_cidr - The CIDR you want to assign to the IPAM pool.

$sel:cidrAuthorizationContext:ProvisionIpamPoolCidr', provisionIpamPoolCidr_cidrAuthorizationContext - A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.

$sel:dryRun:ProvisionIpamPoolCidr', provisionIpamPoolCidr_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.

ProvisionIpamPoolCidr, provisionIpamPoolCidr_ipamPoolId - The ID of the IPAM pool to which you want to assign a CIDR.

Request Lenses

provisionIpamPoolCidr_cidr :: Lens' ProvisionIpamPoolCidr (Maybe Text) Source #

The CIDR you want to assign to the IPAM pool.

provisionIpamPoolCidr_cidrAuthorizationContext :: Lens' ProvisionIpamPoolCidr (Maybe IpamCidrAuthorizationContext) Source #

A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.

provisionIpamPoolCidr_dryRun :: Lens' ProvisionIpamPoolCidr (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.

provisionIpamPoolCidr_ipamPoolId :: Lens' ProvisionIpamPoolCidr Text Source #

The ID of the IPAM pool to which you want to assign a CIDR.

Destructuring the Response

data ProvisionIpamPoolCidrResponse Source #

See: newProvisionIpamPoolCidrResponse smart constructor.

Constructors

ProvisionIpamPoolCidrResponse' 

Fields

Instances

Instances details
Generic ProvisionIpamPoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

Associated Types

type Rep ProvisionIpamPoolCidrResponse :: Type -> Type #

Read ProvisionIpamPoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

Show ProvisionIpamPoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

NFData ProvisionIpamPoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

Eq ProvisionIpamPoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

type Rep ProvisionIpamPoolCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionIpamPoolCidr

type Rep ProvisionIpamPoolCidrResponse = D1 ('MetaData "ProvisionIpamPoolCidrResponse" "Amazonka.EC2.ProvisionIpamPoolCidr" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ProvisionIpamPoolCidrResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ipamPoolCidr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IpamPoolCidr)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newProvisionIpamPoolCidrResponse Source #

Create a value of ProvisionIpamPoolCidrResponse 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:ipamPoolCidr:ProvisionIpamPoolCidrResponse', provisionIpamPoolCidrResponse_ipamPoolCidr - Information about the provisioned CIDR.

$sel:httpStatus:ProvisionIpamPoolCidrResponse', provisionIpamPoolCidrResponse_httpStatus - The response's http status code.

Response Lenses