import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AssociateCustomerGatewayRequest, AssociateCustomerGatewayResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AssociateCustomerGatewayCommand}. */ export interface AssociateCustomerGatewayCommandInput extends AssociateCustomerGatewayRequest { } /** * @public * * The output of {@link AssociateCustomerGatewayCommand}. */ export interface AssociateCustomerGatewayCommandOutput extends AssociateCustomerGatewayResponse, __MetadataBearer { } declare const AssociateCustomerGatewayCommand_base: { new (input: AssociateCustomerGatewayCommandInput): import("@smithy/core/client").CommandImpl; new (input: AssociateCustomerGatewayCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Associates a customer gateway with a device and optionally, with a link. If you * specify a link, it must be associated with the specified device.

*

You can only associate customer gateways that are connected to a VPN attachment on a * transit gateway or core network registered in your global network. When you register a * transit gateway or core network, customer gateways that are connected to the transit * gateway are automatically included in the global network. To list customer gateways * that are connected to a transit gateway, use the DescribeVpnConnections EC2 API and filter by * transit-gateway-id.

*

You cannot associate a customer gateway with more than one device and link.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { NetworkManagerClient, AssociateCustomerGatewayCommand } from "@aws-sdk/client-networkmanager"; // ES Modules import * // const { NetworkManagerClient, AssociateCustomerGatewayCommand } = require("@aws-sdk/client-networkmanager"); // CommonJS import * // import type { NetworkManagerClientConfig } from "@aws-sdk/client-networkmanager"; * const config = {}; // type is NetworkManagerClientConfig * const client = new NetworkManagerClient(config); * const input = { // AssociateCustomerGatewayRequest * CustomerGatewayArn: "STRING_VALUE", // required * GlobalNetworkId: "STRING_VALUE", // required * DeviceId: "STRING_VALUE", // required * LinkId: "STRING_VALUE", * }; * const command = new AssociateCustomerGatewayCommand(input); * const response = await client.send(command); * // { // AssociateCustomerGatewayResponse * // CustomerGatewayAssociation: { // CustomerGatewayAssociation * // CustomerGatewayArn: "STRING_VALUE", * // GlobalNetworkId: "STRING_VALUE", * // DeviceId: "STRING_VALUE", * // LinkId: "STRING_VALUE", * // State: "PENDING" || "AVAILABLE" || "DELETING" || "DELETED", * // }, * // }; * * ``` * * @param AssociateCustomerGatewayCommandInput - {@link AssociateCustomerGatewayCommandInput} * @returns {@link AssociateCustomerGatewayCommandOutput} * @see {@link AssociateCustomerGatewayCommandInput} for command's `input` shape. * @see {@link AssociateCustomerGatewayCommandOutput} for command's `response` shape. * @see {@link NetworkManagerClientResolvedConfig | config} for NetworkManagerClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link ConflictException} (client fault) *

There was a conflict processing the request. Updating or deleting the resource can * cause an inconsistent state.

* * @throws {@link InternalServerException} (server fault) *

The request has failed due to an internal error.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource could not be found.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

A service limit was exceeded.

* * @throws {@link ThrottlingException} (client fault) *

The request was denied due to request throttling.

* * @throws {@link ValidationException} (client fault) *

The input fails to satisfy the constraints.

* * @throws {@link NetworkManagerServiceException} *

Base exception class for all service exceptions from NetworkManager service.

* * * @public */ export declare class AssociateCustomerGatewayCommand extends AssociateCustomerGatewayCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateCustomerGatewayRequest; output: AssociateCustomerGatewayResponse; }; sdk: { input: AssociateCustomerGatewayCommandInput; output: AssociateCustomerGatewayCommandOutput; }; }; }