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 { AdvertiseByoipCidrRequest, AdvertiseByoipCidrResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AdvertiseByoipCidrCommand}. */ export interface AdvertiseByoipCidrCommandInput extends AdvertiseByoipCidrRequest { } /** * @public * * The output of {@link AdvertiseByoipCidrCommand}. */ export interface AdvertiseByoipCidrCommandOutput extends AdvertiseByoipCidrResult, __MetadataBearer { } declare const AdvertiseByoipCidrCommand_base: { new (input: AdvertiseByoipCidrCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AdvertiseByoipCidrCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through * bring your own IP addresses (BYOIP).

*

You can perform this operation at most once every 10 seconds, even if you specify different * address ranges each time.

*

We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise * it from Amazon Web Services. To minimize down time, you can configure your Amazon Web Services resources to use an address from a * BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current * location and start advertising it through Amazon Web Services.

*

It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services * because of BGP propagation delays.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AdvertiseByoipCidrCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AdvertiseByoipCidrCommand } = 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 = { // AdvertiseByoipCidrRequest * Cidr: "STRING_VALUE", // required * Asn: "STRING_VALUE", * DryRun: true || false, * NetworkBorderGroup: "STRING_VALUE", * }; * const command = new AdvertiseByoipCidrCommand(input); * const response = await client.send(command); * // { // AdvertiseByoipCidrResult * // 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 AdvertiseByoipCidrCommandInput - {@link AdvertiseByoipCidrCommandInput} * @returns {@link AdvertiseByoipCidrCommandOutput} * @see {@link AdvertiseByoipCidrCommandInput} for command's `input` shape. * @see {@link AdvertiseByoipCidrCommandOutput} 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 AdvertiseByoipCidrCommand extends AdvertiseByoipCidrCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AdvertiseByoipCidrRequest; output: AdvertiseByoipCidrResult; }; sdk: { input: AdvertiseByoipCidrCommandInput; output: AdvertiseByoipCidrCommandOutput; }; }; }