import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateDirectConnectGatewayAttachmentRequest, CreateDirectConnectGatewayAttachmentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateDirectConnectGatewayAttachmentCommand}. */ export interface CreateDirectConnectGatewayAttachmentCommandInput extends CreateDirectConnectGatewayAttachmentRequest { } /** * @public * * The output of {@link CreateDirectConnectGatewayAttachmentCommand}. */ export interface CreateDirectConnectGatewayAttachmentCommandOutput extends CreateDirectConnectGatewayAttachmentResponse, __MetadataBearer { } declare const CreateDirectConnectGatewayAttachmentCommand_base: { new (input: CreateDirectConnectGatewayAttachmentCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateDirectConnectGatewayAttachmentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an Amazon Web Services Direct Connect gateway attachment

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { NetworkManagerClient, CreateDirectConnectGatewayAttachmentCommand } from "@aws-sdk/client-networkmanager"; // ES Modules import * // const { NetworkManagerClient, CreateDirectConnectGatewayAttachmentCommand } = 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 = { // CreateDirectConnectGatewayAttachmentRequest * CoreNetworkId: "STRING_VALUE", // required * DirectConnectGatewayArn: "STRING_VALUE", // required * RoutingPolicyLabel: "STRING_VALUE", * EdgeLocations: [ // ExternalRegionCodeList // required * "STRING_VALUE", * ], * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * ClientToken: "STRING_VALUE", * }; * const command = new CreateDirectConnectGatewayAttachmentCommand(input); * const response = await client.send(command); * // { // CreateDirectConnectGatewayAttachmentResponse * // DirectConnectGatewayAttachment: { // DirectConnectGatewayAttachment * // Attachment: { // Attachment * // CoreNetworkId: "STRING_VALUE", * // CoreNetworkArn: "STRING_VALUE", * // AttachmentId: "STRING_VALUE", * // OwnerAccountId: "STRING_VALUE", * // AttachmentType: "CONNECT" || "SITE_TO_SITE_VPN" || "VPC" || "DIRECT_CONNECT_GATEWAY" || "TRANSIT_GATEWAY_ROUTE_TABLE", * // State: "REJECTED" || "PENDING_ATTACHMENT_ACCEPTANCE" || "CREATING" || "FAILED" || "AVAILABLE" || "UPDATING" || "PENDING_NETWORK_UPDATE" || "PENDING_TAG_ACCEPTANCE" || "DELETING", * // EdgeLocation: "STRING_VALUE", * // EdgeLocations: [ // ExternalRegionCodeList * // "STRING_VALUE", * // ], * // ResourceArn: "STRING_VALUE", * // AttachmentPolicyRuleNumber: Number("int"), * // SegmentName: "STRING_VALUE", * // NetworkFunctionGroupName: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // ProposedSegmentChange: { // ProposedSegmentChange * // Tags: [ * // { * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // AttachmentPolicyRuleNumber: Number("int"), * // SegmentName: "STRING_VALUE", * // }, * // ProposedNetworkFunctionGroupChange: { // ProposedNetworkFunctionGroupChange * // Tags: [ * // { * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // AttachmentPolicyRuleNumber: Number("int"), * // NetworkFunctionGroupName: "STRING_VALUE", * // }, * // CreatedAt: new Date("TIMESTAMP"), * // UpdatedAt: new Date("TIMESTAMP"), * // LastModificationErrors: [ // AttachmentErrorList * // { // AttachmentError * // Code: "VPC_NOT_FOUND" || "SUBNET_NOT_FOUND" || "SUBNET_DUPLICATED_IN_AVAILABILITY_ZONE" || "SUBNET_NO_FREE_ADDRESSES" || "SUBNET_UNSUPPORTED_AVAILABILITY_ZONE" || "SUBNET_NO_IPV6_CIDRS" || "VPN_CONNECTION_NOT_FOUND" || "MAXIMUM_NO_ENCAP_LIMIT_EXCEEDED" || "DIRECT_CONNECT_GATEWAY_NOT_FOUND" || "DIRECT_CONNECT_GATEWAY_EXISTING_ATTACHMENTS" || "DIRECT_CONNECT_GATEWAY_NO_PRIVATE_VIF" || "VPN_EXISTING_ASSOCIATIONS" || "VPC_UNSUPPORTED_FEATURES", * // Message: "STRING_VALUE", * // ResourceArn: "STRING_VALUE", * // RequestId: "STRING_VALUE", * // }, * // ], * // }, * // DirectConnectGatewayArn: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateDirectConnectGatewayAttachmentCommandInput - {@link CreateDirectConnectGatewayAttachmentCommandInput} * @returns {@link CreateDirectConnectGatewayAttachmentCommandOutput} * @see {@link CreateDirectConnectGatewayAttachmentCommandInput} for command's `input` shape. * @see {@link CreateDirectConnectGatewayAttachmentCommandOutput} 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 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 CreateDirectConnectGatewayAttachmentCommand extends CreateDirectConnectGatewayAttachmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDirectConnectGatewayAttachmentRequest; output: CreateDirectConnectGatewayAttachmentResponse; }; sdk: { input: CreateDirectConnectGatewayAttachmentCommandInput; output: CreateDirectConnectGatewayAttachmentCommandOutput; }; }; }