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

Description

Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

Amazon Web Services verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring your own IP addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

Synopsis

Creating a Request

data ProvisionByoipCidr Source #

See: newProvisionByoipCidr smart constructor.

Constructors

ProvisionByoipCidr' 

Fields

  • cidrAuthorizationContext :: Maybe CidrAuthorizationContext

    A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.

  • description :: Maybe Text

    A description for the address range and the address pool.

  • dryRun :: Maybe Bool

    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.

  • multiRegion :: Maybe Bool

    Reserved.

  • poolTagSpecifications :: Maybe [TagSpecification]

    The tags to apply to the address pool.

  • publiclyAdvertisable :: Maybe Bool

    (IPv6 only) Indicate whether the address range will be publicly advertised to the internet.

    Default: true

  • cidr :: Text

    The public IPv4 or IPv6 address range, in CIDR notation. The most specific IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can specify is /56. The address range cannot overlap with another address range that you've brought to this or another Region.

Instances

Instances details
ToHeaders ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

ToPath ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

ToQuery ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

AWSRequest ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

Associated Types

type AWSResponse ProvisionByoipCidr #

Generic ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

Associated Types

type Rep ProvisionByoipCidr :: Type -> Type #

Read ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

Show ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

NFData ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

Methods

rnf :: ProvisionByoipCidr -> () #

Eq ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

Hashable ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

type AWSResponse ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

type Rep ProvisionByoipCidr Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

type Rep ProvisionByoipCidr = D1 ('MetaData "ProvisionByoipCidr" "Amazonka.EC2.ProvisionByoipCidr" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ProvisionByoipCidr'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cidrAuthorizationContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CidrAuthorizationContext)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "multiRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "poolTagSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagSpecification]))) :*: (S1 ('MetaSel ('Just "publiclyAdvertisable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "cidr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newProvisionByoipCidr Source #

Create a value of ProvisionByoipCidr 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:cidrAuthorizationContext:ProvisionByoipCidr', provisionByoipCidr_cidrAuthorizationContext - A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.

ProvisionByoipCidr, provisionByoipCidr_description - A description for the address range and the address pool.

$sel:dryRun:ProvisionByoipCidr', provisionByoipCidr_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.

$sel:multiRegion:ProvisionByoipCidr', provisionByoipCidr_multiRegion - Reserved.

$sel:poolTagSpecifications:ProvisionByoipCidr', provisionByoipCidr_poolTagSpecifications - The tags to apply to the address pool.

ProvisionByoipCidr, provisionByoipCidr_publiclyAdvertisable - (IPv6 only) Indicate whether the address range will be publicly advertised to the internet.

Default: true

ProvisionByoipCidr, provisionByoipCidr_cidr - The public IPv4 or IPv6 address range, in CIDR notation. The most specific IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can specify is /56. The address range cannot overlap with another address range that you've brought to this or another Region.

Request Lenses

provisionByoipCidr_cidrAuthorizationContext :: Lens' ProvisionByoipCidr (Maybe CidrAuthorizationContext) Source #

A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.

provisionByoipCidr_description :: Lens' ProvisionByoipCidr (Maybe Text) Source #

A description for the address range and the address pool.

provisionByoipCidr_dryRun :: Lens' ProvisionByoipCidr (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.

provisionByoipCidr_publiclyAdvertisable :: Lens' ProvisionByoipCidr (Maybe Bool) Source #

(IPv6 only) Indicate whether the address range will be publicly advertised to the internet.

Default: true

provisionByoipCidr_cidr :: Lens' ProvisionByoipCidr Text Source #

The public IPv4 or IPv6 address range, in CIDR notation. The most specific IPv4 prefix that you can specify is /24. The most specific IPv6 prefix you can specify is /56. The address range cannot overlap with another address range that you've brought to this or another Region.

Destructuring the Response

data ProvisionByoipCidrResponse Source #

See: newProvisionByoipCidrResponse smart constructor.

Constructors

ProvisionByoipCidrResponse' 

Fields

Instances

Instances details
Generic ProvisionByoipCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

Associated Types

type Rep ProvisionByoipCidrResponse :: Type -> Type #

Read ProvisionByoipCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

Show ProvisionByoipCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

NFData ProvisionByoipCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

Eq ProvisionByoipCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

type Rep ProvisionByoipCidrResponse Source # 
Instance details

Defined in Amazonka.EC2.ProvisionByoipCidr

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

newProvisionByoipCidrResponse Source #

Create a value of ProvisionByoipCidrResponse 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:byoipCidr:ProvisionByoipCidrResponse', provisionByoipCidrResponse_byoipCidr - Information about the address range.

$sel:httpStatus:ProvisionByoipCidrResponse', provisionByoipCidrResponse_httpStatus - The response's http status code.

Response Lenses