Skip to content

Commit 5105355

Browse files
author
awstools
committed
feat(client-ec2): Build, manage, and monitor a unified global network that connects resources running across your cloud and on-premises environments using the AWS Cloud WAN APIs.
1 parent 297a3c0 commit 5105355

File tree

64 files changed

+24306
-19215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+24306
-19215
lines changed

clients/client-ec2/src/EC2.ts

Lines changed: 383 additions & 2 deletions
Large diffs are not rendered by default.

clients/client-ec2/src/EC2Client.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ import {
129129
AssociateTransitGatewayMulticastDomainCommandInput,
130130
AssociateTransitGatewayMulticastDomainCommandOutput,
131131
} from "./commands/AssociateTransitGatewayMulticastDomainCommand";
132+
import {
133+
AssociateTransitGatewayPolicyTableCommandInput,
134+
AssociateTransitGatewayPolicyTableCommandOutput,
135+
} from "./commands/AssociateTransitGatewayPolicyTableCommand";
132136
import {
133137
AssociateTransitGatewayRouteTableCommandInput,
134138
AssociateTransitGatewayRouteTableCommandOutput,
@@ -376,6 +380,10 @@ import {
376380
CreateTransitGatewayPeeringAttachmentCommandInput,
377381
CreateTransitGatewayPeeringAttachmentCommandOutput,
378382
} from "./commands/CreateTransitGatewayPeeringAttachmentCommand";
383+
import {
384+
CreateTransitGatewayPolicyTableCommandInput,
385+
CreateTransitGatewayPolicyTableCommandOutput,
386+
} from "./commands/CreateTransitGatewayPolicyTableCommand";
379387
import {
380388
CreateTransitGatewayPrefixListReferenceCommandInput,
381389
CreateTransitGatewayPrefixListReferenceCommandOutput,
@@ -384,6 +392,10 @@ import {
384392
CreateTransitGatewayRouteCommandInput,
385393
CreateTransitGatewayRouteCommandOutput,
386394
} from "./commands/CreateTransitGatewayRouteCommand";
395+
import {
396+
CreateTransitGatewayRouteTableAnnouncementCommandInput,
397+
CreateTransitGatewayRouteTableAnnouncementCommandOutput,
398+
} from "./commands/CreateTransitGatewayRouteTableAnnouncementCommand";
387399
import {
388400
CreateTransitGatewayRouteTableCommandInput,
389401
CreateTransitGatewayRouteTableCommandOutput,
@@ -567,6 +579,10 @@ import {
567579
DeleteTransitGatewayPeeringAttachmentCommandInput,
568580
DeleteTransitGatewayPeeringAttachmentCommandOutput,
569581
} from "./commands/DeleteTransitGatewayPeeringAttachmentCommand";
582+
import {
583+
DeleteTransitGatewayPolicyTableCommandInput,
584+
DeleteTransitGatewayPolicyTableCommandOutput,
585+
} from "./commands/DeleteTransitGatewayPolicyTableCommand";
570586
import {
571587
DeleteTransitGatewayPrefixListReferenceCommandInput,
572588
DeleteTransitGatewayPrefixListReferenceCommandOutput,
@@ -575,6 +591,10 @@ import {
575591
DeleteTransitGatewayRouteCommandInput,
576592
DeleteTransitGatewayRouteCommandOutput,
577593
} from "./commands/DeleteTransitGatewayRouteCommand";
594+
import {
595+
DeleteTransitGatewayRouteTableAnnouncementCommandInput,
596+
DeleteTransitGatewayRouteTableAnnouncementCommandOutput,
597+
} from "./commands/DeleteTransitGatewayRouteTableAnnouncementCommand";
578598
import {
579599
DeleteTransitGatewayRouteTableCommandInput,
580600
DeleteTransitGatewayRouteTableCommandOutput,
@@ -1023,6 +1043,14 @@ import {
10231043
DescribeTransitGatewayPeeringAttachmentsCommandInput,
10241044
DescribeTransitGatewayPeeringAttachmentsCommandOutput,
10251045
} from "./commands/DescribeTransitGatewayPeeringAttachmentsCommand";
1046+
import {
1047+
DescribeTransitGatewayPolicyTablesCommandInput,
1048+
DescribeTransitGatewayPolicyTablesCommandOutput,
1049+
} from "./commands/DescribeTransitGatewayPolicyTablesCommand";
1050+
import {
1051+
DescribeTransitGatewayRouteTableAnnouncementsCommandInput,
1052+
DescribeTransitGatewayRouteTableAnnouncementsCommandOutput,
1053+
} from "./commands/DescribeTransitGatewayRouteTableAnnouncementsCommand";
10261054
import {
10271055
DescribeTransitGatewayRouteTablesCommandInput,
10281056
DescribeTransitGatewayRouteTablesCommandOutput,
@@ -1184,6 +1212,10 @@ import {
11841212
DisassociateTransitGatewayMulticastDomainCommandInput,
11851213
DisassociateTransitGatewayMulticastDomainCommandOutput,
11861214
} from "./commands/DisassociateTransitGatewayMulticastDomainCommand";
1215+
import {
1216+
DisassociateTransitGatewayPolicyTableCommandInput,
1217+
DisassociateTransitGatewayPolicyTableCommandOutput,
1218+
} from "./commands/DisassociateTransitGatewayPolicyTableCommand";
11871219
import {
11881220
DisassociateTransitGatewayRouteTableCommandInput,
11891221
DisassociateTransitGatewayRouteTableCommandOutput,
@@ -1355,6 +1387,14 @@ import {
13551387
GetTransitGatewayMulticastDomainAssociationsCommandInput,
13561388
GetTransitGatewayMulticastDomainAssociationsCommandOutput,
13571389
} from "./commands/GetTransitGatewayMulticastDomainAssociationsCommand";
1390+
import {
1391+
GetTransitGatewayPolicyTableAssociationsCommandInput,
1392+
GetTransitGatewayPolicyTableAssociationsCommandOutput,
1393+
} from "./commands/GetTransitGatewayPolicyTableAssociationsCommand";
1394+
import {
1395+
GetTransitGatewayPolicyTableEntriesCommandInput,
1396+
GetTransitGatewayPolicyTableEntriesCommandOutput,
1397+
} from "./commands/GetTransitGatewayPolicyTableEntriesCommand";
13581398
import {
13591399
GetTransitGatewayPrefixListReferencesCommandInput,
13601400
GetTransitGatewayPrefixListReferencesCommandOutput,
@@ -1819,6 +1859,7 @@ export type ServiceInputTypes =
18191859
| AssociateRouteTableCommandInput
18201860
| AssociateSubnetCidrBlockCommandInput
18211861
| AssociateTransitGatewayMulticastDomainCommandInput
1862+
| AssociateTransitGatewayPolicyTableCommandInput
18221863
| AssociateTransitGatewayRouteTableCommandInput
18231864
| AssociateTrunkInterfaceCommandInput
18241865
| AssociateVpcCidrBlockCommandInput
@@ -1901,8 +1942,10 @@ export type ServiceInputTypes =
19011942
| CreateTransitGatewayConnectPeerCommandInput
19021943
| CreateTransitGatewayMulticastDomainCommandInput
19031944
| CreateTransitGatewayPeeringAttachmentCommandInput
1945+
| CreateTransitGatewayPolicyTableCommandInput
19041946
| CreateTransitGatewayPrefixListReferenceCommandInput
19051947
| CreateTransitGatewayRouteCommandInput
1948+
| CreateTransitGatewayRouteTableAnnouncementCommandInput
19061949
| CreateTransitGatewayRouteTableCommandInput
19071950
| CreateTransitGatewayVpcAttachmentCommandInput
19081951
| CreateVolumeCommandInput
@@ -1963,8 +2006,10 @@ export type ServiceInputTypes =
19632006
| DeleteTransitGatewayConnectPeerCommandInput
19642007
| DeleteTransitGatewayMulticastDomainCommandInput
19652008
| DeleteTransitGatewayPeeringAttachmentCommandInput
2009+
| DeleteTransitGatewayPolicyTableCommandInput
19662010
| DeleteTransitGatewayPrefixListReferenceCommandInput
19672011
| DeleteTransitGatewayRouteCommandInput
2012+
| DeleteTransitGatewayRouteTableAnnouncementCommandInput
19682013
| DeleteTransitGatewayRouteTableCommandInput
19692014
| DeleteTransitGatewayVpcAttachmentCommandInput
19702015
| DeleteVolumeCommandInput
@@ -2095,6 +2140,8 @@ export type ServiceInputTypes =
20952140
| DescribeTransitGatewayConnectsCommandInput
20962141
| DescribeTransitGatewayMulticastDomainsCommandInput
20972142
| DescribeTransitGatewayPeeringAttachmentsCommandInput
2143+
| DescribeTransitGatewayPolicyTablesCommandInput
2144+
| DescribeTransitGatewayRouteTableAnnouncementsCommandInput
20982145
| DescribeTransitGatewayRouteTablesCommandInput
20992146
| DescribeTransitGatewayVpcAttachmentsCommandInput
21002147
| DescribeTransitGatewaysCommandInput
@@ -2139,6 +2186,7 @@ export type ServiceInputTypes =
21392186
| DisassociateRouteTableCommandInput
21402187
| DisassociateSubnetCidrBlockCommandInput
21412188
| DisassociateTransitGatewayMulticastDomainCommandInput
2189+
| DisassociateTransitGatewayPolicyTableCommandInput
21422190
| DisassociateTransitGatewayRouteTableCommandInput
21432191
| DisassociateTrunkInterfaceCommandInput
21442192
| DisassociateVpcCidrBlockCommandInput
@@ -2187,6 +2235,8 @@ export type ServiceInputTypes =
21872235
| GetSubnetCidrReservationsCommandInput
21882236
| GetTransitGatewayAttachmentPropagationsCommandInput
21892237
| GetTransitGatewayMulticastDomainAssociationsCommandInput
2238+
| GetTransitGatewayPolicyTableAssociationsCommandInput
2239+
| GetTransitGatewayPolicyTableEntriesCommandInput
21902240
| GetTransitGatewayPrefixListReferencesCommandInput
21912241
| GetTransitGatewayRouteTableAssociationsCommandInput
21922242
| GetTransitGatewayRouteTablePropagationsCommandInput
@@ -2344,6 +2394,7 @@ export type ServiceOutputTypes =
23442394
| AssociateRouteTableCommandOutput
23452395
| AssociateSubnetCidrBlockCommandOutput
23462396
| AssociateTransitGatewayMulticastDomainCommandOutput
2397+
| AssociateTransitGatewayPolicyTableCommandOutput
23472398
| AssociateTransitGatewayRouteTableCommandOutput
23482399
| AssociateTrunkInterfaceCommandOutput
23492400
| AssociateVpcCidrBlockCommandOutput
@@ -2426,8 +2477,10 @@ export type ServiceOutputTypes =
24262477
| CreateTransitGatewayConnectPeerCommandOutput
24272478
| CreateTransitGatewayMulticastDomainCommandOutput
24282479
| CreateTransitGatewayPeeringAttachmentCommandOutput
2480+
| CreateTransitGatewayPolicyTableCommandOutput
24292481
| CreateTransitGatewayPrefixListReferenceCommandOutput
24302482
| CreateTransitGatewayRouteCommandOutput
2483+
| CreateTransitGatewayRouteTableAnnouncementCommandOutput
24312484
| CreateTransitGatewayRouteTableCommandOutput
24322485
| CreateTransitGatewayVpcAttachmentCommandOutput
24332486
| CreateVolumeCommandOutput
@@ -2488,8 +2541,10 @@ export type ServiceOutputTypes =
24882541
| DeleteTransitGatewayConnectPeerCommandOutput
24892542
| DeleteTransitGatewayMulticastDomainCommandOutput
24902543
| DeleteTransitGatewayPeeringAttachmentCommandOutput
2544+
| DeleteTransitGatewayPolicyTableCommandOutput
24912545
| DeleteTransitGatewayPrefixListReferenceCommandOutput
24922546
| DeleteTransitGatewayRouteCommandOutput
2547+
| DeleteTransitGatewayRouteTableAnnouncementCommandOutput
24932548
| DeleteTransitGatewayRouteTableCommandOutput
24942549
| DeleteTransitGatewayVpcAttachmentCommandOutput
24952550
| DeleteVolumeCommandOutput
@@ -2620,6 +2675,8 @@ export type ServiceOutputTypes =
26202675
| DescribeTransitGatewayConnectsCommandOutput
26212676
| DescribeTransitGatewayMulticastDomainsCommandOutput
26222677
| DescribeTransitGatewayPeeringAttachmentsCommandOutput
2678+
| DescribeTransitGatewayPolicyTablesCommandOutput
2679+
| DescribeTransitGatewayRouteTableAnnouncementsCommandOutput
26232680
| DescribeTransitGatewayRouteTablesCommandOutput
26242681
| DescribeTransitGatewayVpcAttachmentsCommandOutput
26252682
| DescribeTransitGatewaysCommandOutput
@@ -2664,6 +2721,7 @@ export type ServiceOutputTypes =
26642721
| DisassociateRouteTableCommandOutput
26652722
| DisassociateSubnetCidrBlockCommandOutput
26662723
| DisassociateTransitGatewayMulticastDomainCommandOutput
2724+
| DisassociateTransitGatewayPolicyTableCommandOutput
26672725
| DisassociateTransitGatewayRouteTableCommandOutput
26682726
| DisassociateTrunkInterfaceCommandOutput
26692727
| DisassociateVpcCidrBlockCommandOutput
@@ -2712,6 +2770,8 @@ export type ServiceOutputTypes =
27122770
| GetSubnetCidrReservationsCommandOutput
27132771
| GetTransitGatewayAttachmentPropagationsCommandOutput
27142772
| GetTransitGatewayMulticastDomainAssociationsCommandOutput
2773+
| GetTransitGatewayPolicyTableAssociationsCommandOutput
2774+
| GetTransitGatewayPolicyTableEntriesCommandOutput
27152775
| GetTransitGatewayPrefixListReferencesCommandOutput
27162776
| GetTransitGatewayRouteTableAssociationsCommandOutput
27172777
| GetTransitGatewayRouteTablePropagationsCommandOutput
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
// smithy-typescript generated code
2+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4+
import { Command as $Command } from "@aws-sdk/smithy-client";
5+
import {
6+
FinalizeHandlerArguments,
7+
Handler,
8+
HandlerExecutionContext,
9+
HttpHandlerOptions as __HttpHandlerOptions,
10+
MetadataBearer as __MetadataBearer,
11+
MiddlewareStack,
12+
SerdeContext as __SerdeContext,
13+
} from "@aws-sdk/types";
14+
15+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
16+
import {
17+
AssociateTransitGatewayPolicyTableRequest,
18+
AssociateTransitGatewayPolicyTableResult,
19+
} from "../models/models_0";
20+
import {
21+
deserializeAws_ec2AssociateTransitGatewayPolicyTableCommand,
22+
serializeAws_ec2AssociateTransitGatewayPolicyTableCommand,
23+
} from "../protocols/Aws_ec2";
24+
25+
export interface AssociateTransitGatewayPolicyTableCommandInput extends AssociateTransitGatewayPolicyTableRequest {}
26+
export interface AssociateTransitGatewayPolicyTableCommandOutput
27+
extends AssociateTransitGatewayPolicyTableResult,
28+
__MetadataBearer {}
29+
30+
/**
31+
* <p>Associates the specified transit gateway attachment with a transit gateway policy table.</p>
32+
* @example
33+
* Use a bare-bones client and the command you need to make an API call.
34+
* ```javascript
35+
* import { EC2Client, AssociateTransitGatewayPolicyTableCommand } from "@aws-sdk/client-ec2"; // ES Modules import
36+
* // const { EC2Client, AssociateTransitGatewayPolicyTableCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
37+
* const client = new EC2Client(config);
38+
* const command = new AssociateTransitGatewayPolicyTableCommand(input);
39+
* const response = await client.send(command);
40+
* ```
41+
*
42+
* @see {@link AssociateTransitGatewayPolicyTableCommandInput} for command's `input` shape.
43+
* @see {@link AssociateTransitGatewayPolicyTableCommandOutput} for command's `response` shape.
44+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
45+
*
46+
*/
47+
export class AssociateTransitGatewayPolicyTableCommand extends $Command<
48+
AssociateTransitGatewayPolicyTableCommandInput,
49+
AssociateTransitGatewayPolicyTableCommandOutput,
50+
EC2ClientResolvedConfig
51+
> {
52+
// Start section: command_properties
53+
// End section: command_properties
54+
55+
constructor(readonly input: AssociateTransitGatewayPolicyTableCommandInput) {
56+
// Start section: command_constructor
57+
super();
58+
// End section: command_constructor
59+
}
60+
61+
/**
62+
* @internal
63+
*/
64+
resolveMiddleware(
65+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
66+
configuration: EC2ClientResolvedConfig,
67+
options?: __HttpHandlerOptions
68+
): Handler<AssociateTransitGatewayPolicyTableCommandInput, AssociateTransitGatewayPolicyTableCommandOutput> {
69+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70+
71+
const stack = clientStack.concat(this.middlewareStack);
72+
73+
const { logger } = configuration;
74+
const clientName = "EC2Client";
75+
const commandName = "AssociateTransitGatewayPolicyTableCommand";
76+
const handlerExecutionContext: HandlerExecutionContext = {
77+
logger,
78+
clientName,
79+
commandName,
80+
inputFilterSensitiveLog: AssociateTransitGatewayPolicyTableRequest.filterSensitiveLog,
81+
outputFilterSensitiveLog: AssociateTransitGatewayPolicyTableResult.filterSensitiveLog,
82+
};
83+
const { requestHandler } = configuration;
84+
return stack.resolve(
85+
(request: FinalizeHandlerArguments<any>) =>
86+
requestHandler.handle(request.request as __HttpRequest, options || {}),
87+
handlerExecutionContext
88+
);
89+
}
90+
91+
private serialize(
92+
input: AssociateTransitGatewayPolicyTableCommandInput,
93+
context: __SerdeContext
94+
): Promise<__HttpRequest> {
95+
return serializeAws_ec2AssociateTransitGatewayPolicyTableCommand(input, context);
96+
}
97+
98+
private deserialize(
99+
output: __HttpResponse,
100+
context: __SerdeContext
101+
): Promise<AssociateTransitGatewayPolicyTableCommandOutput> {
102+
return deserializeAws_ec2AssociateTransitGatewayPolicyTableCommand(output, context);
103+
}
104+
105+
// Start section: command_body_extra
106+
// End section: command_body_extra
107+
}

clients/client-ec2/src/commands/CreateTransitGatewayCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import {
1313
} from "@aws-sdk/types";
1414

1515
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
16-
import { CreateTransitGatewayRequest, CreateTransitGatewayResult } from "../models/models_1";
16+
import { CreateTransitGatewayRequest } from "../models/models_1";
17+
import { CreateTransitGatewayResult } from "../models/models_2";
1718
import {
1819
deserializeAws_ec2CreateTransitGatewayCommand,
1920
serializeAws_ec2CreateTransitGatewayCommand,

clients/client-ec2/src/commands/CreateTransitGatewayPeeringAttachmentCommand.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ export interface CreateTransitGatewayPeeringAttachmentCommandOutput
3030

3131
/**
3232
* <p>Requests a transit gateway peering attachment between the specified transit gateway
33-
* (requester) and a peer transit gateway (accepter). The peer transit gateway can be in
34-
* your account or a different Amazon Web Services account.</p>
33+
* (requester) and a peer transit gateway (accepter). The transit gateways must be in
34+
* different Regions. The peer transit gateway can be in your account or a different
35+
* Amazon Web Services account.</p>
3536
* <p>After you create the peering attachment, the owner of the accepter transit gateway
3637
* must accept the attachment request.</p>
3738
* @example

0 commit comments

Comments
 (0)