Skip to content

Commit

Permalink
feat(client-networkmanager): This release adds native Direct Connect …
Browse files Browse the repository at this point in the history
…integration on Cloud WAN enabling customers to directly attach their Direct Connect gateways to Cloud WAN without the need for an intermediate Transit Gateway.
  • Loading branch information
awstools committed Nov 25, 2024
1 parent 26dccd9 commit 4a7eea0
Show file tree
Hide file tree
Showing 23 changed files with 1,285 additions and 29 deletions.
24 changes: 24 additions & 0 deletions clients/client-networkmanager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ CreateDevice

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/CreateDeviceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/CreateDeviceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/CreateDeviceCommandOutput/)

</details>
<details>
<summary>
CreateDirectConnectGatewayAttachment
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/CreateDirectConnectGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/CreateDirectConnectGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/CreateDirectConnectGatewayAttachmentCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -562,6 +570,14 @@ GetDevices

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/GetDevicesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/GetDevicesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/GetDevicesCommandOutput/)

</details>
<details>
<summary>
GetDirectConnectGatewayAttachment
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/GetDirectConnectGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/GetDirectConnectGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/GetDirectConnectGatewayAttachmentCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -842,6 +858,14 @@ UpdateDevice

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/UpdateDeviceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/UpdateDeviceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/UpdateDeviceCommandOutput/)

</details>
<details>
<summary>
UpdateDirectConnectGatewayAttachment
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/networkmanager/command/UpdateDirectConnectGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/UpdateDirectConnectGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-networkmanager/Interface/UpdateDirectConnectGatewayAttachmentCommandOutput/)

</details>
<details>
<summary>
Expand Down
69 changes: 69 additions & 0 deletions clients/client-networkmanager/src/NetworkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ import {
CreateDeviceCommandInput,
CreateDeviceCommandOutput,
} from "./commands/CreateDeviceCommand";
import {
CreateDirectConnectGatewayAttachmentCommand,
CreateDirectConnectGatewayAttachmentCommandInput,
CreateDirectConnectGatewayAttachmentCommandOutput,
} from "./commands/CreateDirectConnectGatewayAttachmentCommand";
import {
CreateGlobalNetworkCommand,
CreateGlobalNetworkCommandInput,
Expand Down Expand Up @@ -207,6 +212,11 @@ import {
GetCustomerGatewayAssociationsCommandOutput,
} from "./commands/GetCustomerGatewayAssociationsCommand";
import { GetDevicesCommand, GetDevicesCommandInput, GetDevicesCommandOutput } from "./commands/GetDevicesCommand";
import {
GetDirectConnectGatewayAttachmentCommand,
GetDirectConnectGatewayAttachmentCommandInput,
GetDirectConnectGatewayAttachmentCommandOutput,
} from "./commands/GetDirectConnectGatewayAttachmentCommand";
import {
GetLinkAssociationsCommand,
GetLinkAssociationsCommandInput,
Expand Down Expand Up @@ -370,6 +380,11 @@ import {
UpdateDeviceCommandInput,
UpdateDeviceCommandOutput,
} from "./commands/UpdateDeviceCommand";
import {
UpdateDirectConnectGatewayAttachmentCommand,
UpdateDirectConnectGatewayAttachmentCommandInput,
UpdateDirectConnectGatewayAttachmentCommandOutput,
} from "./commands/UpdateDirectConnectGatewayAttachmentCommand";
import {
UpdateGlobalNetworkCommand,
UpdateGlobalNetworkCommandInput,
Expand Down Expand Up @@ -400,6 +415,7 @@ const commands = {
CreateConnectPeerCommand,
CreateCoreNetworkCommand,
CreateDeviceCommand,
CreateDirectConnectGatewayAttachmentCommand,
CreateGlobalNetworkCommand,
CreateLinkCommand,
CreateSiteCommand,
Expand Down Expand Up @@ -435,6 +451,7 @@ const commands = {
GetCoreNetworkPolicyCommand,
GetCustomerGatewayAssociationsCommand,
GetDevicesCommand,
GetDirectConnectGatewayAttachmentCommand,
GetLinkAssociationsCommand,
GetLinksCommand,
GetNetworkResourceCountsCommand,
Expand Down Expand Up @@ -470,6 +487,7 @@ const commands = {
UpdateConnectionCommand,
UpdateCoreNetworkCommand,
UpdateDeviceCommand,
UpdateDirectConnectGatewayAttachmentCommand,
UpdateGlobalNetworkCommand,
UpdateLinkCommand,
UpdateNetworkResourceMetadataCommand,
Expand Down Expand Up @@ -636,6 +654,23 @@ export interface NetworkManager {
cb: (err: any, data?: CreateDeviceCommandOutput) => void
): void;

/**
* @see {@link CreateDirectConnectGatewayAttachmentCommand}
*/
createDirectConnectGatewayAttachment(
args: CreateDirectConnectGatewayAttachmentCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateDirectConnectGatewayAttachmentCommandOutput>;
createDirectConnectGatewayAttachment(
args: CreateDirectConnectGatewayAttachmentCommandInput,
cb: (err: any, data?: CreateDirectConnectGatewayAttachmentCommandOutput) => void
): void;
createDirectConnectGatewayAttachment(
args: CreateDirectConnectGatewayAttachmentCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateDirectConnectGatewayAttachmentCommandOutput) => void
): void;

/**
* @see {@link CreateGlobalNetworkCommand}
*/
Expand Down Expand Up @@ -1182,6 +1217,23 @@ export interface NetworkManager {
cb: (err: any, data?: GetDevicesCommandOutput) => void
): void;

/**
* @see {@link GetDirectConnectGatewayAttachmentCommand}
*/
getDirectConnectGatewayAttachment(
args: GetDirectConnectGatewayAttachmentCommandInput,
options?: __HttpHandlerOptions
): Promise<GetDirectConnectGatewayAttachmentCommandOutput>;
getDirectConnectGatewayAttachment(
args: GetDirectConnectGatewayAttachmentCommandInput,
cb: (err: any, data?: GetDirectConnectGatewayAttachmentCommandOutput) => void
): void;
getDirectConnectGatewayAttachment(
args: GetDirectConnectGatewayAttachmentCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetDirectConnectGatewayAttachmentCommandOutput) => void
): void;

/**
* @see {@link GetLinkAssociationsCommand}
*/
Expand Down Expand Up @@ -1743,6 +1795,23 @@ export interface NetworkManager {
cb: (err: any, data?: UpdateDeviceCommandOutput) => void
): void;

/**
* @see {@link UpdateDirectConnectGatewayAttachmentCommand}
*/
updateDirectConnectGatewayAttachment(
args: UpdateDirectConnectGatewayAttachmentCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateDirectConnectGatewayAttachmentCommandOutput>;
updateDirectConnectGatewayAttachment(
args: UpdateDirectConnectGatewayAttachmentCommandInput,
cb: (err: any, data?: UpdateDirectConnectGatewayAttachmentCommandOutput) => void
): void;
updateDirectConnectGatewayAttachment(
args: UpdateDirectConnectGatewayAttachmentCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateDirectConnectGatewayAttachmentCommandOutput) => void
): void;

/**
* @see {@link UpdateGlobalNetworkCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-networkmanager/src/NetworkManagerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ import { CreateConnectionCommandInput, CreateConnectionCommandOutput } from "./c
import { CreateConnectPeerCommandInput, CreateConnectPeerCommandOutput } from "./commands/CreateConnectPeerCommand";
import { CreateCoreNetworkCommandInput, CreateCoreNetworkCommandOutput } from "./commands/CreateCoreNetworkCommand";
import { CreateDeviceCommandInput, CreateDeviceCommandOutput } from "./commands/CreateDeviceCommand";
import {
CreateDirectConnectGatewayAttachmentCommandInput,
CreateDirectConnectGatewayAttachmentCommandOutput,
} from "./commands/CreateDirectConnectGatewayAttachmentCommand";
import {
CreateGlobalNetworkCommandInput,
CreateGlobalNetworkCommandOutput,
Expand Down Expand Up @@ -170,6 +174,10 @@ import {
GetCustomerGatewayAssociationsCommandOutput,
} from "./commands/GetCustomerGatewayAssociationsCommand";
import { GetDevicesCommandInput, GetDevicesCommandOutput } from "./commands/GetDevicesCommand";
import {
GetDirectConnectGatewayAttachmentCommandInput,
GetDirectConnectGatewayAttachmentCommandOutput,
} from "./commands/GetDirectConnectGatewayAttachmentCommand";
import {
GetLinkAssociationsCommandInput,
GetLinkAssociationsCommandOutput,
Expand Down Expand Up @@ -256,6 +264,10 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
import { UpdateConnectionCommandInput, UpdateConnectionCommandOutput } from "./commands/UpdateConnectionCommand";
import { UpdateCoreNetworkCommandInput, UpdateCoreNetworkCommandOutput } from "./commands/UpdateCoreNetworkCommand";
import { UpdateDeviceCommandInput, UpdateDeviceCommandOutput } from "./commands/UpdateDeviceCommand";
import {
UpdateDirectConnectGatewayAttachmentCommandInput,
UpdateDirectConnectGatewayAttachmentCommandOutput,
} from "./commands/UpdateDirectConnectGatewayAttachmentCommand";
import {
UpdateGlobalNetworkCommandInput,
UpdateGlobalNetworkCommandOutput,
Expand Down Expand Up @@ -295,6 +307,7 @@ export type ServiceInputTypes =
| CreateConnectionCommandInput
| CreateCoreNetworkCommandInput
| CreateDeviceCommandInput
| CreateDirectConnectGatewayAttachmentCommandInput
| CreateGlobalNetworkCommandInput
| CreateLinkCommandInput
| CreateSiteCommandInput
Expand Down Expand Up @@ -330,6 +343,7 @@ export type ServiceInputTypes =
| GetCoreNetworkPolicyCommandInput
| GetCustomerGatewayAssociationsCommandInput
| GetDevicesCommandInput
| GetDirectConnectGatewayAttachmentCommandInput
| GetLinkAssociationsCommandInput
| GetLinksCommandInput
| GetNetworkResourceCountsCommandInput
Expand Down Expand Up @@ -365,6 +379,7 @@ export type ServiceInputTypes =
| UpdateConnectionCommandInput
| UpdateCoreNetworkCommandInput
| UpdateDeviceCommandInput
| UpdateDirectConnectGatewayAttachmentCommandInput
| UpdateGlobalNetworkCommandInput
| UpdateLinkCommandInput
| UpdateNetworkResourceMetadataCommandInput
Expand All @@ -385,6 +400,7 @@ export type ServiceOutputTypes =
| CreateConnectionCommandOutput
| CreateCoreNetworkCommandOutput
| CreateDeviceCommandOutput
| CreateDirectConnectGatewayAttachmentCommandOutput
| CreateGlobalNetworkCommandOutput
| CreateLinkCommandOutput
| CreateSiteCommandOutput
Expand Down Expand Up @@ -420,6 +436,7 @@ export type ServiceOutputTypes =
| GetCoreNetworkPolicyCommandOutput
| GetCustomerGatewayAssociationsCommandOutput
| GetDevicesCommandOutput
| GetDirectConnectGatewayAttachmentCommandOutput
| GetLinkAssociationsCommandOutput
| GetLinksCommandOutput
| GetNetworkResourceCountsCommandOutput
Expand Down Expand Up @@ -455,6 +472,7 @@ export type ServiceOutputTypes =
| UpdateConnectionCommandOutput
| UpdateCoreNetworkCommandOutput
| UpdateDeviceCommandOutput
| UpdateDirectConnectGatewayAttachmentCommandOutput
| UpdateGlobalNetworkCommandOutput
| UpdateLinkCommandOutput
| UpdateNetworkResourceMetadataCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ export interface AcceptAttachmentCommandOutput extends AcceptAttachmentResponse,
* // CoreNetworkArn: "STRING_VALUE",
* // AttachmentId: "STRING_VALUE",
* // OwnerAccountId: "STRING_VALUE",
* // AttachmentType: "CONNECT" || "SITE_TO_SITE_VPN" || "VPC" || "TRANSIT_GATEWAY_ROUTE_TABLE",
* // 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",
Expand Down Expand Up @@ -85,7 +88,7 @@ export interface AcceptAttachmentCommandOutput extends AcceptAttachmentResponse,
* // 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",
* // 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",
* // Message: "STRING_VALUE",
* // ResourceArn: "STRING_VALUE",
* // RequestId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ export interface CreateConnectAttachmentCommandOutput extends CreateConnectAttac
* // CoreNetworkArn: "STRING_VALUE",
* // AttachmentId: "STRING_VALUE",
* // OwnerAccountId: "STRING_VALUE",
* // AttachmentType: "CONNECT" || "SITE_TO_SITE_VPN" || "VPC" || "TRANSIT_GATEWAY_ROUTE_TABLE",
* // 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",
Expand Down Expand Up @@ -99,7 +102,7 @@ export interface CreateConnectAttachmentCommandOutput extends CreateConnectAttac
* // 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",
* // 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",
* // Message: "STRING_VALUE",
* // ResourceArn: "STRING_VALUE",
* // RequestId: "STRING_VALUE",
Expand Down
Loading

0 comments on commit 4a7eea0

Please sign in to comment.