Skip to content

Commit

Permalink
feat(client-ec2): Build, manage, and monitor a unified global network…
Browse files Browse the repository at this point in the history
… that connects resources running across your cloud and on-premises environments using the AWS Cloud WAN APIs.
  • Loading branch information
awstools committed Jul 11, 2022
1 parent 297a3c0 commit 5105355
Show file tree
Hide file tree
Showing 64 changed files with 24,306 additions and 19,215 deletions.
385 changes: 383 additions & 2 deletions clients/client-ec2/src/EC2.ts

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions clients/client-ec2/src/EC2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ import {
AssociateTransitGatewayMulticastDomainCommandInput,
AssociateTransitGatewayMulticastDomainCommandOutput,
} from "./commands/AssociateTransitGatewayMulticastDomainCommand";
import {
AssociateTransitGatewayPolicyTableCommandInput,
AssociateTransitGatewayPolicyTableCommandOutput,
} from "./commands/AssociateTransitGatewayPolicyTableCommand";
import {
AssociateTransitGatewayRouteTableCommandInput,
AssociateTransitGatewayRouteTableCommandOutput,
Expand Down Expand Up @@ -376,6 +380,10 @@ import {
CreateTransitGatewayPeeringAttachmentCommandInput,
CreateTransitGatewayPeeringAttachmentCommandOutput,
} from "./commands/CreateTransitGatewayPeeringAttachmentCommand";
import {
CreateTransitGatewayPolicyTableCommandInput,
CreateTransitGatewayPolicyTableCommandOutput,
} from "./commands/CreateTransitGatewayPolicyTableCommand";
import {
CreateTransitGatewayPrefixListReferenceCommandInput,
CreateTransitGatewayPrefixListReferenceCommandOutput,
Expand All @@ -384,6 +392,10 @@ import {
CreateTransitGatewayRouteCommandInput,
CreateTransitGatewayRouteCommandOutput,
} from "./commands/CreateTransitGatewayRouteCommand";
import {
CreateTransitGatewayRouteTableAnnouncementCommandInput,
CreateTransitGatewayRouteTableAnnouncementCommandOutput,
} from "./commands/CreateTransitGatewayRouteTableAnnouncementCommand";
import {
CreateTransitGatewayRouteTableCommandInput,
CreateTransitGatewayRouteTableCommandOutput,
Expand Down Expand Up @@ -567,6 +579,10 @@ import {
DeleteTransitGatewayPeeringAttachmentCommandInput,
DeleteTransitGatewayPeeringAttachmentCommandOutput,
} from "./commands/DeleteTransitGatewayPeeringAttachmentCommand";
import {
DeleteTransitGatewayPolicyTableCommandInput,
DeleteTransitGatewayPolicyTableCommandOutput,
} from "./commands/DeleteTransitGatewayPolicyTableCommand";
import {
DeleteTransitGatewayPrefixListReferenceCommandInput,
DeleteTransitGatewayPrefixListReferenceCommandOutput,
Expand All @@ -575,6 +591,10 @@ import {
DeleteTransitGatewayRouteCommandInput,
DeleteTransitGatewayRouteCommandOutput,
} from "./commands/DeleteTransitGatewayRouteCommand";
import {
DeleteTransitGatewayRouteTableAnnouncementCommandInput,
DeleteTransitGatewayRouteTableAnnouncementCommandOutput,
} from "./commands/DeleteTransitGatewayRouteTableAnnouncementCommand";
import {
DeleteTransitGatewayRouteTableCommandInput,
DeleteTransitGatewayRouteTableCommandOutput,
Expand Down Expand Up @@ -1023,6 +1043,14 @@ import {
DescribeTransitGatewayPeeringAttachmentsCommandInput,
DescribeTransitGatewayPeeringAttachmentsCommandOutput,
} from "./commands/DescribeTransitGatewayPeeringAttachmentsCommand";
import {
DescribeTransitGatewayPolicyTablesCommandInput,
DescribeTransitGatewayPolicyTablesCommandOutput,
} from "./commands/DescribeTransitGatewayPolicyTablesCommand";
import {
DescribeTransitGatewayRouteTableAnnouncementsCommandInput,
DescribeTransitGatewayRouteTableAnnouncementsCommandOutput,
} from "./commands/DescribeTransitGatewayRouteTableAnnouncementsCommand";
import {
DescribeTransitGatewayRouteTablesCommandInput,
DescribeTransitGatewayRouteTablesCommandOutput,
Expand Down Expand Up @@ -1184,6 +1212,10 @@ import {
DisassociateTransitGatewayMulticastDomainCommandInput,
DisassociateTransitGatewayMulticastDomainCommandOutput,
} from "./commands/DisassociateTransitGatewayMulticastDomainCommand";
import {
DisassociateTransitGatewayPolicyTableCommandInput,
DisassociateTransitGatewayPolicyTableCommandOutput,
} from "./commands/DisassociateTransitGatewayPolicyTableCommand";
import {
DisassociateTransitGatewayRouteTableCommandInput,
DisassociateTransitGatewayRouteTableCommandOutput,
Expand Down Expand Up @@ -1355,6 +1387,14 @@ import {
GetTransitGatewayMulticastDomainAssociationsCommandInput,
GetTransitGatewayMulticastDomainAssociationsCommandOutput,
} from "./commands/GetTransitGatewayMulticastDomainAssociationsCommand";
import {
GetTransitGatewayPolicyTableAssociationsCommandInput,
GetTransitGatewayPolicyTableAssociationsCommandOutput,
} from "./commands/GetTransitGatewayPolicyTableAssociationsCommand";
import {
GetTransitGatewayPolicyTableEntriesCommandInput,
GetTransitGatewayPolicyTableEntriesCommandOutput,
} from "./commands/GetTransitGatewayPolicyTableEntriesCommand";
import {
GetTransitGatewayPrefixListReferencesCommandInput,
GetTransitGatewayPrefixListReferencesCommandOutput,
Expand Down Expand Up @@ -1819,6 +1859,7 @@ export type ServiceInputTypes =
| AssociateRouteTableCommandInput
| AssociateSubnetCidrBlockCommandInput
| AssociateTransitGatewayMulticastDomainCommandInput
| AssociateTransitGatewayPolicyTableCommandInput
| AssociateTransitGatewayRouteTableCommandInput
| AssociateTrunkInterfaceCommandInput
| AssociateVpcCidrBlockCommandInput
Expand Down Expand Up @@ -1901,8 +1942,10 @@ export type ServiceInputTypes =
| CreateTransitGatewayConnectPeerCommandInput
| CreateTransitGatewayMulticastDomainCommandInput
| CreateTransitGatewayPeeringAttachmentCommandInput
| CreateTransitGatewayPolicyTableCommandInput
| CreateTransitGatewayPrefixListReferenceCommandInput
| CreateTransitGatewayRouteCommandInput
| CreateTransitGatewayRouteTableAnnouncementCommandInput
| CreateTransitGatewayRouteTableCommandInput
| CreateTransitGatewayVpcAttachmentCommandInput
| CreateVolumeCommandInput
Expand Down Expand Up @@ -1963,8 +2006,10 @@ export type ServiceInputTypes =
| DeleteTransitGatewayConnectPeerCommandInput
| DeleteTransitGatewayMulticastDomainCommandInput
| DeleteTransitGatewayPeeringAttachmentCommandInput
| DeleteTransitGatewayPolicyTableCommandInput
| DeleteTransitGatewayPrefixListReferenceCommandInput
| DeleteTransitGatewayRouteCommandInput
| DeleteTransitGatewayRouteTableAnnouncementCommandInput
| DeleteTransitGatewayRouteTableCommandInput
| DeleteTransitGatewayVpcAttachmentCommandInput
| DeleteVolumeCommandInput
Expand Down Expand Up @@ -2095,6 +2140,8 @@ export type ServiceInputTypes =
| DescribeTransitGatewayConnectsCommandInput
| DescribeTransitGatewayMulticastDomainsCommandInput
| DescribeTransitGatewayPeeringAttachmentsCommandInput
| DescribeTransitGatewayPolicyTablesCommandInput
| DescribeTransitGatewayRouteTableAnnouncementsCommandInput
| DescribeTransitGatewayRouteTablesCommandInput
| DescribeTransitGatewayVpcAttachmentsCommandInput
| DescribeTransitGatewaysCommandInput
Expand Down Expand Up @@ -2139,6 +2186,7 @@ export type ServiceInputTypes =
| DisassociateRouteTableCommandInput
| DisassociateSubnetCidrBlockCommandInput
| DisassociateTransitGatewayMulticastDomainCommandInput
| DisassociateTransitGatewayPolicyTableCommandInput
| DisassociateTransitGatewayRouteTableCommandInput
| DisassociateTrunkInterfaceCommandInput
| DisassociateVpcCidrBlockCommandInput
Expand Down Expand Up @@ -2187,6 +2235,8 @@ export type ServiceInputTypes =
| GetSubnetCidrReservationsCommandInput
| GetTransitGatewayAttachmentPropagationsCommandInput
| GetTransitGatewayMulticastDomainAssociationsCommandInput
| GetTransitGatewayPolicyTableAssociationsCommandInput
| GetTransitGatewayPolicyTableEntriesCommandInput
| GetTransitGatewayPrefixListReferencesCommandInput
| GetTransitGatewayRouteTableAssociationsCommandInput
| GetTransitGatewayRouteTablePropagationsCommandInput
Expand Down Expand Up @@ -2344,6 +2394,7 @@ export type ServiceOutputTypes =
| AssociateRouteTableCommandOutput
| AssociateSubnetCidrBlockCommandOutput
| AssociateTransitGatewayMulticastDomainCommandOutput
| AssociateTransitGatewayPolicyTableCommandOutput
| AssociateTransitGatewayRouteTableCommandOutput
| AssociateTrunkInterfaceCommandOutput
| AssociateVpcCidrBlockCommandOutput
Expand Down Expand Up @@ -2426,8 +2477,10 @@ export type ServiceOutputTypes =
| CreateTransitGatewayConnectPeerCommandOutput
| CreateTransitGatewayMulticastDomainCommandOutput
| CreateTransitGatewayPeeringAttachmentCommandOutput
| CreateTransitGatewayPolicyTableCommandOutput
| CreateTransitGatewayPrefixListReferenceCommandOutput
| CreateTransitGatewayRouteCommandOutput
| CreateTransitGatewayRouteTableAnnouncementCommandOutput
| CreateTransitGatewayRouteTableCommandOutput
| CreateTransitGatewayVpcAttachmentCommandOutput
| CreateVolumeCommandOutput
Expand Down Expand Up @@ -2488,8 +2541,10 @@ export type ServiceOutputTypes =
| DeleteTransitGatewayConnectPeerCommandOutput
| DeleteTransitGatewayMulticastDomainCommandOutput
| DeleteTransitGatewayPeeringAttachmentCommandOutput
| DeleteTransitGatewayPolicyTableCommandOutput
| DeleteTransitGatewayPrefixListReferenceCommandOutput
| DeleteTransitGatewayRouteCommandOutput
| DeleteTransitGatewayRouteTableAnnouncementCommandOutput
| DeleteTransitGatewayRouteTableCommandOutput
| DeleteTransitGatewayVpcAttachmentCommandOutput
| DeleteVolumeCommandOutput
Expand Down Expand Up @@ -2620,6 +2675,8 @@ export type ServiceOutputTypes =
| DescribeTransitGatewayConnectsCommandOutput
| DescribeTransitGatewayMulticastDomainsCommandOutput
| DescribeTransitGatewayPeeringAttachmentsCommandOutput
| DescribeTransitGatewayPolicyTablesCommandOutput
| DescribeTransitGatewayRouteTableAnnouncementsCommandOutput
| DescribeTransitGatewayRouteTablesCommandOutput
| DescribeTransitGatewayVpcAttachmentsCommandOutput
| DescribeTransitGatewaysCommandOutput
Expand Down Expand Up @@ -2664,6 +2721,7 @@ export type ServiceOutputTypes =
| DisassociateRouteTableCommandOutput
| DisassociateSubnetCidrBlockCommandOutput
| DisassociateTransitGatewayMulticastDomainCommandOutput
| DisassociateTransitGatewayPolicyTableCommandOutput
| DisassociateTransitGatewayRouteTableCommandOutput
| DisassociateTrunkInterfaceCommandOutput
| DisassociateVpcCidrBlockCommandOutput
Expand Down Expand Up @@ -2712,6 +2770,8 @@ export type ServiceOutputTypes =
| GetSubnetCidrReservationsCommandOutput
| GetTransitGatewayAttachmentPropagationsCommandOutput
| GetTransitGatewayMulticastDomainAssociationsCommandOutput
| GetTransitGatewayPolicyTableAssociationsCommandOutput
| GetTransitGatewayPolicyTableEntriesCommandOutput
| GetTransitGatewayPrefixListReferencesCommandOutput
| GetTransitGatewayRouteTableAssociationsCommandOutput
| GetTransitGatewayRouteTablePropagationsCommandOutput
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
MiddlewareStack,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import {
AssociateTransitGatewayPolicyTableRequest,
AssociateTransitGatewayPolicyTableResult,
} from "../models/models_0";
import {
deserializeAws_ec2AssociateTransitGatewayPolicyTableCommand,
serializeAws_ec2AssociateTransitGatewayPolicyTableCommand,
} from "../protocols/Aws_ec2";

export interface AssociateTransitGatewayPolicyTableCommandInput extends AssociateTransitGatewayPolicyTableRequest {}
export interface AssociateTransitGatewayPolicyTableCommandOutput
extends AssociateTransitGatewayPolicyTableResult,
__MetadataBearer {}

/**
* <p>Associates the specified transit gateway attachment with a transit gateway policy table.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2Client, AssociateTransitGatewayPolicyTableCommand } from "@aws-sdk/client-ec2"; // ES Modules import
* // const { EC2Client, AssociateTransitGatewayPolicyTableCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
* const client = new EC2Client(config);
* const command = new AssociateTransitGatewayPolicyTableCommand(input);
* const response = await client.send(command);
* ```
*
* @see {@link AssociateTransitGatewayPolicyTableCommandInput} for command's `input` shape.
* @see {@link AssociateTransitGatewayPolicyTableCommandOutput} for command's `response` shape.
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
*
*/
export class AssociateTransitGatewayPolicyTableCommand extends $Command<
AssociateTransitGatewayPolicyTableCommandInput,
AssociateTransitGatewayPolicyTableCommandOutput,
EC2ClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

constructor(readonly input: AssociateTransitGatewayPolicyTableCommandInput) {
// Start section: command_constructor
super();
// End section: command_constructor
}

/**
* @internal
*/
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: EC2ClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<AssociateTransitGatewayPolicyTableCommandInput, AssociateTransitGatewayPolicyTableCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

const stack = clientStack.concat(this.middlewareStack);

const { logger } = configuration;
const clientName = "EC2Client";
const commandName = "AssociateTransitGatewayPolicyTableCommand";
const handlerExecutionContext: HandlerExecutionContext = {
logger,
clientName,
commandName,
inputFilterSensitiveLog: AssociateTransitGatewayPolicyTableRequest.filterSensitiveLog,
outputFilterSensitiveLog: AssociateTransitGatewayPolicyTableResult.filterSensitiveLog,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
}

private serialize(
input: AssociateTransitGatewayPolicyTableCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> {
return serializeAws_ec2AssociateTransitGatewayPolicyTableCommand(input, context);
}

private deserialize(
output: __HttpResponse,
context: __SerdeContext
): Promise<AssociateTransitGatewayPolicyTableCommandOutput> {
return deserializeAws_ec2AssociateTransitGatewayPolicyTableCommand(output, context);
}

// Start section: command_body_extra
// End section: command_body_extra
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import {
} from "@aws-sdk/types";

import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
import { CreateTransitGatewayRequest, CreateTransitGatewayResult } from "../models/models_1";
import { CreateTransitGatewayRequest } from "../models/models_1";
import { CreateTransitGatewayResult } from "../models/models_2";
import {
deserializeAws_ec2CreateTransitGatewayCommand,
serializeAws_ec2CreateTransitGatewayCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ export interface CreateTransitGatewayPeeringAttachmentCommandOutput

/**
* <p>Requests a transit gateway peering attachment between the specified transit gateway
* (requester) and a peer transit gateway (accepter). The peer transit gateway can be in
* your account or a different Amazon Web Services account.</p>
* (requester) and a peer transit gateway (accepter). The transit gateways must be in
* different Regions. The peer transit gateway can be in your account or a different
* Amazon Web Services account.</p>
* <p>After you create the peering attachment, the owner of the accepter transit gateway
* must accept the attachment request.</p>
* @example
Expand Down
Loading

0 comments on commit 5105355

Please sign in to comment.