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

Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region. * For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

*

After the association succeeds, the ASN is eligible for * advertisement. You can view the association with DescribeByoipCidrs. You can advertise the CIDR with AdvertiseByoipCidr.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AssociateIpamByoasnCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AssociateIpamByoasnCommand } = 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 = { // AssociateIpamByoasnRequest * DryRun: true || false, * Asn: "STRING_VALUE", // required * Cidr: "STRING_VALUE", // required * }; * const command = new AssociateIpamByoasnCommand(input); * const response = await client.send(command); * // { // AssociateIpamByoasnResult * // AsnAssociation: { // AsnAssociation * // Asn: "STRING_VALUE", * // Cidr: "STRING_VALUE", * // StatusMessage: "STRING_VALUE", * // State: "disassociated" || "failed-disassociation" || "failed-association" || "pending-disassociation" || "pending-association" || "associated", * // }, * // }; * * ``` * * @param AssociateIpamByoasnCommandInput - {@link AssociateIpamByoasnCommandInput} * @returns {@link AssociateIpamByoasnCommandOutput} * @see {@link AssociateIpamByoasnCommandInput} for command's `input` shape. * @see {@link AssociateIpamByoasnCommandOutput} 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 AssociateIpamByoasnCommand extends AssociateIpamByoasnCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateIpamByoasnRequest; output: AssociateIpamByoasnResult; }; sdk: { input: AssociateIpamByoasnCommandInput; output: AssociateIpamByoasnCommandOutput; }; }; }