Skip to content

Commit

Permalink
feat(client-networkmanager): This release adds general availability A…
Browse files Browse the repository at this point in the history
…PI support for AWS Cloud WAN.
  • Loading branch information
awstools committed Jul 12, 2022
1 parent 78690d3 commit a02b73f
Show file tree
Hide file tree
Showing 19 changed files with 3,482 additions and 79 deletions.
268 changes: 267 additions & 1 deletion clients/client-networkmanager/src/NetworkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ import {
CreateSiteToSiteVpnAttachmentCommandInput,
CreateSiteToSiteVpnAttachmentCommandOutput,
} from "./commands/CreateSiteToSiteVpnAttachmentCommand";
import {
CreateTransitGatewayPeeringCommand,
CreateTransitGatewayPeeringCommandInput,
CreateTransitGatewayPeeringCommandOutput,
} from "./commands/CreateTransitGatewayPeeringCommand";
import {
CreateTransitGatewayRouteTableAttachmentCommand,
CreateTransitGatewayRouteTableAttachmentCommandInput,
CreateTransitGatewayRouteTableAttachmentCommandOutput,
} from "./commands/CreateTransitGatewayRouteTableAttachmentCommand";
import {
CreateVpcAttachmentCommand,
CreateVpcAttachmentCommandInput,
Expand Down Expand Up @@ -104,6 +114,11 @@ import {
DeleteGlobalNetworkCommandOutput,
} from "./commands/DeleteGlobalNetworkCommand";
import { DeleteLinkCommand, DeleteLinkCommandInput, DeleteLinkCommandOutput } from "./commands/DeleteLinkCommand";
import {
DeletePeeringCommand,
DeletePeeringCommandInput,
DeletePeeringCommandOutput,
} from "./commands/DeletePeeringCommand";
import {
DeleteResourcePolicyCommand,
DeleteResourcePolicyCommandInput,
Expand Down Expand Up @@ -165,6 +180,11 @@ import {
GetConnectPeerCommandInput,
GetConnectPeerCommandOutput,
} from "./commands/GetConnectPeerCommand";
import {
GetCoreNetworkChangeEventsCommand,
GetCoreNetworkChangeEventsCommandInput,
GetCoreNetworkChangeEventsCommandOutput,
} from "./commands/GetCoreNetworkChangeEventsCommand";
import {
GetCoreNetworkChangeSetCommand,
GetCoreNetworkChangeSetCommandInput,
Expand Down Expand Up @@ -238,11 +258,21 @@ import {
GetTransitGatewayConnectPeerAssociationsCommandInput,
GetTransitGatewayConnectPeerAssociationsCommandOutput,
} from "./commands/GetTransitGatewayConnectPeerAssociationsCommand";
import {
GetTransitGatewayPeeringCommand,
GetTransitGatewayPeeringCommandInput,
GetTransitGatewayPeeringCommandOutput,
} from "./commands/GetTransitGatewayPeeringCommand";
import {
GetTransitGatewayRegistrationsCommand,
GetTransitGatewayRegistrationsCommandInput,
GetTransitGatewayRegistrationsCommandOutput,
} from "./commands/GetTransitGatewayRegistrationsCommand";
import {
GetTransitGatewayRouteTableAttachmentCommand,
GetTransitGatewayRouteTableAttachmentCommandInput,
GetTransitGatewayRouteTableAttachmentCommandOutput,
} from "./commands/GetTransitGatewayRouteTableAttachmentCommand";
import {
GetVpcAttachmentCommand,
GetVpcAttachmentCommandInput,
Expand Down Expand Up @@ -273,6 +303,11 @@ import {
ListOrganizationServiceAccessStatusCommandInput,
ListOrganizationServiceAccessStatusCommandOutput,
} from "./commands/ListOrganizationServiceAccessStatusCommand";
import {
ListPeeringsCommand,
ListPeeringsCommandInput,
ListPeeringsCommandOutput,
} from "./commands/ListPeeringsCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
Expand Down Expand Up @@ -812,6 +847,72 @@ export class NetworkManager extends NetworkManagerClient {
}
}

/**
* <p>Creates a transit gateway peering connection.</p>
*/
public createTransitGatewayPeering(
args: CreateTransitGatewayPeeringCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateTransitGatewayPeeringCommandOutput>;
public createTransitGatewayPeering(
args: CreateTransitGatewayPeeringCommandInput,
cb: (err: any, data?: CreateTransitGatewayPeeringCommandOutput) => void
): void;
public createTransitGatewayPeering(
args: CreateTransitGatewayPeeringCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateTransitGatewayPeeringCommandOutput) => void
): void;
public createTransitGatewayPeering(
args: CreateTransitGatewayPeeringCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateTransitGatewayPeeringCommandOutput) => void),
cb?: (err: any, data?: CreateTransitGatewayPeeringCommandOutput) => void
): Promise<CreateTransitGatewayPeeringCommandOutput> | void {
const command = new CreateTransitGatewayPeeringCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Creates a transit gateway route table attachment.</p>
*/
public createTransitGatewayRouteTableAttachment(
args: CreateTransitGatewayRouteTableAttachmentCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateTransitGatewayRouteTableAttachmentCommandOutput>;
public createTransitGatewayRouteTableAttachment(
args: CreateTransitGatewayRouteTableAttachmentCommandInput,
cb: (err: any, data?: CreateTransitGatewayRouteTableAttachmentCommandOutput) => void
): void;
public createTransitGatewayRouteTableAttachment(
args: CreateTransitGatewayRouteTableAttachmentCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateTransitGatewayRouteTableAttachmentCommandOutput) => void
): void;
public createTransitGatewayRouteTableAttachment(
args: CreateTransitGatewayRouteTableAttachmentCommandInput,
optionsOrCb?:
| __HttpHandlerOptions
| ((err: any, data?: CreateTransitGatewayRouteTableAttachmentCommandOutput) => void),
cb?: (err: any, data?: CreateTransitGatewayRouteTableAttachmentCommandOutput) => void
): Promise<CreateTransitGatewayRouteTableAttachmentCommandOutput> | void {
const command = new CreateTransitGatewayRouteTableAttachmentCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Creates a VPC attachment on an edge location of a core network.</p>
*/
Expand Down Expand Up @@ -1094,6 +1195,38 @@ export class NetworkManager extends NetworkManagerClient {
}
}

/**
* <p>Deletes an existing peering connection.</p>
*/
public deletePeering(
args: DeletePeeringCommandInput,
options?: __HttpHandlerOptions
): Promise<DeletePeeringCommandOutput>;
public deletePeering(
args: DeletePeeringCommandInput,
cb: (err: any, data?: DeletePeeringCommandOutput) => void
): void;
public deletePeering(
args: DeletePeeringCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeletePeeringCommandOutput) => void
): void;
public deletePeering(
args: DeletePeeringCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeletePeeringCommandOutput) => void),
cb?: (err: any, data?: DeletePeeringCommandOutput) => void
): Promise<DeletePeeringCommandOutput> | void {
const command = new DeletePeeringCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Deletes a resource policy for the specified resource. This revokes the access of the principals specified in the resource policy.</p>
*/
Expand Down Expand Up @@ -1543,6 +1676,38 @@ export class NetworkManager extends NetworkManagerClient {
}
}

/**
* <p>Returns information about a core network change event.</p>
*/
public getCoreNetworkChangeEvents(
args: GetCoreNetworkChangeEventsCommandInput,
options?: __HttpHandlerOptions
): Promise<GetCoreNetworkChangeEventsCommandOutput>;
public getCoreNetworkChangeEvents(
args: GetCoreNetworkChangeEventsCommandInput,
cb: (err: any, data?: GetCoreNetworkChangeEventsCommandOutput) => void
): void;
public getCoreNetworkChangeEvents(
args: GetCoreNetworkChangeEventsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetCoreNetworkChangeEventsCommandOutput) => void
): void;
public getCoreNetworkChangeEvents(
args: GetCoreNetworkChangeEventsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCoreNetworkChangeEventsCommandOutput) => void),
cb?: (err: any, data?: GetCoreNetworkChangeEventsCommandOutput) => void
): Promise<GetCoreNetworkChangeEventsCommandOutput> | void {
const command = new GetCoreNetworkChangeEventsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Returns a change set between the LIVE core network policy and a submitted policy.</p>
*/
Expand Down Expand Up @@ -1576,7 +1741,7 @@ export class NetworkManager extends NetworkManagerClient {
}

/**
* <p>Gets details about a core network policy. You can get details about your current live policy or any previous policy version.</p>
* <p>Returns details about a core network policy. You can get details about your current live policy or any previous policy version.</p>
*/
public getCoreNetworkPolicy(
args: GetCoreNetworkPolicyCommandInput,
Expand Down Expand Up @@ -2043,6 +2208,38 @@ export class NetworkManager extends NetworkManagerClient {
}
}

/**
* <p>Returns information about a transit gateway peer.</p>
*/
public getTransitGatewayPeering(
args: GetTransitGatewayPeeringCommandInput,
options?: __HttpHandlerOptions
): Promise<GetTransitGatewayPeeringCommandOutput>;
public getTransitGatewayPeering(
args: GetTransitGatewayPeeringCommandInput,
cb: (err: any, data?: GetTransitGatewayPeeringCommandOutput) => void
): void;
public getTransitGatewayPeering(
args: GetTransitGatewayPeeringCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetTransitGatewayPeeringCommandOutput) => void
): void;
public getTransitGatewayPeering(
args: GetTransitGatewayPeeringCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTransitGatewayPeeringCommandOutput) => void),
cb?: (err: any, data?: GetTransitGatewayPeeringCommandOutput) => void
): Promise<GetTransitGatewayPeeringCommandOutput> | void {
const command = new GetTransitGatewayPeeringCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Gets information about the transit gateway registrations in a specified
* global network.</p>
Expand Down Expand Up @@ -2076,6 +2273,40 @@ export class NetworkManager extends NetworkManagerClient {
}
}

/**
* <p>Returns information about a transit gateway route table attachment.</p>
*/
public getTransitGatewayRouteTableAttachment(
args: GetTransitGatewayRouteTableAttachmentCommandInput,
options?: __HttpHandlerOptions
): Promise<GetTransitGatewayRouteTableAttachmentCommandOutput>;
public getTransitGatewayRouteTableAttachment(
args: GetTransitGatewayRouteTableAttachmentCommandInput,
cb: (err: any, data?: GetTransitGatewayRouteTableAttachmentCommandOutput) => void
): void;
public getTransitGatewayRouteTableAttachment(
args: GetTransitGatewayRouteTableAttachmentCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetTransitGatewayRouteTableAttachmentCommandOutput) => void
): void;
public getTransitGatewayRouteTableAttachment(
args: GetTransitGatewayRouteTableAttachmentCommandInput,
optionsOrCb?:
| __HttpHandlerOptions
| ((err: any, data?: GetTransitGatewayRouteTableAttachmentCommandOutput) => void),
cb?: (err: any, data?: GetTransitGatewayRouteTableAttachmentCommandOutput) => void
): Promise<GetTransitGatewayRouteTableAttachmentCommandOutput> | void {
const command = new GetTransitGatewayRouteTableAttachmentCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Returns information about a VPC attachment.</p>
*/
Expand Down Expand Up @@ -2236,6 +2467,9 @@ export class NetworkManager extends NetworkManagerClient {
}
}

/**
* <p>Gets the status of the Service Linked Role (SLR) deployment for the accounts in a given Amazon Web Services Organization.</p>
*/
public listOrganizationServiceAccessStatus(
args: ListOrganizationServiceAccessStatusCommandInput,
options?: __HttpHandlerOptions
Expand Down Expand Up @@ -2265,6 +2499,35 @@ export class NetworkManager extends NetworkManagerClient {
}
}

/**
* <p>Lists the peerings for a core network.</p>
*/
public listPeerings(
args: ListPeeringsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListPeeringsCommandOutput>;
public listPeerings(args: ListPeeringsCommandInput, cb: (err: any, data?: ListPeeringsCommandOutput) => void): void;
public listPeerings(
args: ListPeeringsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListPeeringsCommandOutput) => void
): void;
public listPeerings(
args: ListPeeringsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPeeringsCommandOutput) => void),
cb?: (err: any, data?: ListPeeringsCommandOutput) => void
): Promise<ListPeeringsCommandOutput> | void {
const command = new ListPeeringsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Lists the tags for a specified resource.</p>
*/
Expand Down Expand Up @@ -2459,6 +2722,9 @@ export class NetworkManager extends NetworkManagerClient {
}
}

/**
* <p>Enables for the Network Manager service for an Amazon Web Services Organization. This can only be called by a management account within the organization. </p>
*/
public startOrganizationServiceAccessUpdate(
args: StartOrganizationServiceAccessUpdateCommandInput,
options?: __HttpHandlerOptions
Expand Down
Loading

0 comments on commit a02b73f

Please sign in to comment.