import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { ProvisionByoipCidrRequest, ProvisionByoipCidrResult } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ProvisionByoipCidrCommand}. */ export interface ProvisionByoipCidrCommandInput extends ProvisionByoipCidrRequest { } /** * @public * * The output of {@link ProvisionByoipCidrCommand}. */ export interface ProvisionByoipCidrCommandOutput extends ProvisionByoipCidrResult, __MetadataBearer { } declare const ProvisionByoipCidrCommand_base: { new (input: ProvisionByoipCidrCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ProvisionByoipCidrCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

*

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 EC2 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. For more information, see Onboard your address range.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ProvisionByoipCidrCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ProvisionByoipCidrCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // ProvisionByoipCidrRequest * Cidr: "STRING_VALUE", // required * CidrAuthorizationContext: { // CidrAuthorizationContext * Message: "STRING_VALUE", // required * Signature: "STRING_VALUE", // required * }, * PubliclyAdvertisable: true || false, * Description: "STRING_VALUE", * DryRun: true || false, * PoolTagSpecifications: [ // TagSpecificationList * { // TagSpecification * ResourceType: "capacity-reservation" || "client-vpn-endpoint" || "customer-gateway" || "carrier-gateway" || "coip-pool" || "declarative-policies-report" || "dedicated-host" || "dhcp-options" || "egress-only-internet-gateway" || "elastic-ip" || "elastic-gpu" || "export-image-task" || "export-instance-task" || "fleet" || "fpga-image" || "host-reservation" || "image" || "image-usage-report" || "import-image-task" || "import-snapshot-task" || "instance" || "instance-event-window" || "internet-gateway" || "ipam" || "ipam-pool" || "ipam-scope" || "ipv4pool-ec2" || "ipv6pool-ec2" || "key-pair" || "launch-template" || "local-gateway" || "local-gateway-route-table" || "local-gateway-virtual-interface" || "local-gateway-virtual-interface-group" || "local-gateway-route-table-vpc-association" || "local-gateway-route-table-virtual-interface-group-association" || "natgateway" || "network-acl" || "network-interface" || "network-insights-analysis" || "network-insights-path" || "network-insights-access-scope" || "network-insights-access-scope-analysis" || "outpost-lag" || "placement-group" || "prefix-list" || "replace-root-volume-task" || "reserved-instances" || "route-table" || "security-group" || "security-group-rule" || "service-link-virtual-interface" || "snapshot" || "spot-fleet-request" || "spot-instances-request" || "subnet" || "subnet-cidr-reservation" || "traffic-mirror-filter" || "traffic-mirror-session" || "traffic-mirror-target" || "transit-gateway" || "transit-gateway-attachment" || "transit-gateway-connect-peer" || "transit-gateway-multicast-domain" || "transit-gateway-policy-table" || "transit-gateway-metering-policy" || "transit-gateway-route-table" || "transit-gateway-route-table-announcement" || "volume" || "vpc" || "vpc-endpoint" || "vpc-endpoint-connection" || "vpc-endpoint-service" || "vpc-endpoint-service-permission" || "vpc-peering-connection" || "vpn-connection" || "vpn-gateway" || "vpc-flow-log" || "capacity-reservation-fleet" || "traffic-mirror-filter-rule" || "vpc-endpoint-connection-device-type" || "verified-access-instance" || "verified-access-group" || "verified-access-endpoint" || "verified-access-policy" || "verified-access-trust-provider" || "vpn-connection-device-type" || "vpc-block-public-access-exclusion" || "vpc-encryption-control" || "route-server" || "route-server-endpoint" || "route-server-peer" || "ipam-resource-discovery" || "ipam-resource-discovery-association" || "instance-connect-endpoint" || "verified-access-endpoint-target" || "ipam-external-resource-verification-token" || "capacity-block" || "mac-modification-task" || "ipam-prefix-list-resolver" || "ipam-policy" || "ipam-prefix-list-resolver-target" || "secondary-interface" || "secondary-network" || "secondary-subnet" || "capacity-manager-data-export" || "vpn-concentrator", * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }, * ], * MultiRegion: true || false, * NetworkBorderGroup: "STRING_VALUE", * }; * const command = new ProvisionByoipCidrCommand(input); * const response = await client.send(command); * // { // ProvisionByoipCidrResult * // ByoipCidr: { // ByoipCidr * // Cidr: "STRING_VALUE", * // Description: "STRING_VALUE", * // AsnAssociations: [ // AsnAssociationSet * // { // AsnAssociation * // Asn: "STRING_VALUE", * // Cidr: "STRING_VALUE", * // StatusMessage: "STRING_VALUE", * // State: "disassociated" || "failed-disassociation" || "failed-association" || "pending-disassociation" || "pending-association" || "associated", * // }, * // ], * // StatusMessage: "STRING_VALUE", * // State: "advertised" || "deprovisioned" || "failed-deprovision" || "failed-provision" || "pending-advertising" || "pending-deprovision" || "pending-provision" || "pending-withdrawal" || "provisioned" || "provisioned-not-publicly-advertisable", * // NetworkBorderGroup: "STRING_VALUE", * // AdvertisementType: "STRING_VALUE", * // }, * // }; * * ``` * * @param ProvisionByoipCidrCommandInput - {@link ProvisionByoipCidrCommandInput} * @returns {@link ProvisionByoipCidrCommandOutput} * @see {@link ProvisionByoipCidrCommandInput} for command's `input` shape. * @see {@link ProvisionByoipCidrCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @public */ export declare class ProvisionByoipCidrCommand extends ProvisionByoipCidrCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ProvisionByoipCidrRequest; output: ProvisionByoipCidrResult; }; sdk: { input: ProvisionByoipCidrCommandInput; output: ProvisionByoipCidrCommandOutput; }; }; }