Skip to content

Commit 62b49fc

Browse files
author
awstools
committed
feat(client-ec2): This is release adds support for Amazon VPC Reachability Analyzer to analyze path through a Transit Gateway.
1 parent a10d5a7 commit 62b49fc

12 files changed

+514
-302
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {
1212
} from "@aws-sdk/types";
1313

1414
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
15-
import { CreateTransitGatewayConnectPeerRequest } from "../models/models_1";
16-
import { CreateTransitGatewayConnectPeerResult } from "../models/models_2";
15+
import { CreateTransitGatewayConnectPeerRequest, CreateTransitGatewayConnectPeerResult } from "../models/models_2";
1716
import {
1817
deserializeAws_ec2CreateTransitGatewayConnectPeerCommand,
1918
serializeAws_ec2CreateTransitGatewayConnectPeerCommand,

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {
1212
} from "@aws-sdk/types";
1313

1414
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
15-
import { GetHostReservationPurchasePreviewRequest, GetHostReservationPurchasePreviewResult } from "../models/models_4";
15+
import { GetHostReservationPurchasePreviewRequest } from "../models/models_4";
16+
import { GetHostReservationPurchasePreviewResult } from "../models/models_5";
1617
import {
1718
deserializeAws_ec2GetHostReservationPurchasePreviewCommand,
1819
serializeAws_ec2GetHostReservationPurchasePreviewCommand,

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ import {
1212
} from "@aws-sdk/types";
1313

1414
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
15-
import { GetInstanceTypesFromInstanceRequirementsRequest } from "../models/models_4";
16-
import { GetInstanceTypesFromInstanceRequirementsResult } from "../models/models_5";
15+
import {
16+
GetInstanceTypesFromInstanceRequirementsRequest,
17+
GetInstanceTypesFromInstanceRequirementsResult,
18+
} from "../models/models_5";
1719
import {
1820
deserializeAws_ec2GetInstanceTypesFromInstanceRequirementsCommand,
1921
serializeAws_ec2GetInstanceTypesFromInstanceRequirementsCommand,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from "@aws-sdk/types";
1313

1414
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
15-
import { ResetImageAttributeRequest } from "../models/models_5";
15+
import { ResetImageAttributeRequest } from "../models/models_6";
1616
import {
1717
deserializeAws_ec2ResetImageAttributeCommand,
1818
serializeAws_ec2ResetImageAttributeCommand,

clients/client-ec2/src/models/models_0.ts

+101-19
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,30 @@ export namespace AnalysisComponent {
10811081
});
10821082
}
10831083

1084+
/**
1085+
* <p>Describes an additional detail for a path analysis.</p>
1086+
*/
1087+
export interface AdditionalDetail {
1088+
/**
1089+
* <p>The information type.</p>
1090+
*/
1091+
AdditionalDetailType?: string;
1092+
1093+
/**
1094+
* <p>The path component.</p>
1095+
*/
1096+
Component?: AnalysisComponent;
1097+
}
1098+
1099+
export namespace AdditionalDetail {
1100+
/**
1101+
* @internal
1102+
*/
1103+
export const filterSensitiveLog = (obj: AdditionalDetail): any => ({
1104+
...obj,
1105+
});
1106+
}
1107+
10841108
/**
10851109
* <p>Describes a header. Reflects any changes made by a component as traffic passes through.
10861110
* The fields of an inbound header are null except for the first component of a path.</p>
@@ -1161,19 +1185,16 @@ export interface AnalysisRouteTableRoute {
11611185
NetworkInterfaceId?: string;
11621186

11631187
/**
1164-
* <p>Describes how the route was created. The following are possible values:</p>
1188+
* <p>Describes how the route was created. The following are the possible values:</p>
11651189
* <ul>
11661190
* <li>
1167-
* <p>
1168-
* <code>CreateRouteTable</code> - The route was automatically created when the route table was created.</p>
1191+
* <p>CreateRouteTable - The route was automatically created when the route table was created.</p>
11691192
* </li>
11701193
* <li>
1171-
* <p>
1172-
* <code>CreateRoute</code> - The route was manually added to the route table.</p>
1194+
* <p>CreateRoute - The route was manually added to the route table.</p>
11731195
* </li>
11741196
* <li>
1175-
* <p>
1176-
* <code>EnableVgwRoutePropagation</code> - The route was propagated by route propagation.</p>
1197+
* <p>EnableVgwRoutePropagation - The route was propagated by route propagation.</p>
11771198
* </li>
11781199
* </ul>
11791200
*/
@@ -1209,7 +1230,7 @@ export interface AnalysisSecurityGroupRule {
12091230
Cidr?: string;
12101231

12111232
/**
1212-
* <p>The direction. The following are possible values:</p>
1233+
* <p>The direction. The following are the possible values:</p>
12131234
* <ul>
12141235
* <li>
12151236
* <p>egress</p>
@@ -1251,6 +1272,63 @@ export namespace AnalysisSecurityGroupRule {
12511272
});
12521273
}
12531274

1275+
/**
1276+
* <p>Describes a route in a transit gateway route table.</p>
1277+
*/
1278+
export interface TransitGatewayRouteTableRoute {
1279+
/**
1280+
* <p>The CIDR block used for destination matches.</p>
1281+
*/
1282+
DestinationCidr?: string;
1283+
1284+
/**
1285+
* <p>The state of the route.</p>
1286+
*/
1287+
State?: string;
1288+
1289+
/**
1290+
* <p>The route origin. The following are the possible values:</p>
1291+
* <ul>
1292+
* <li>
1293+
* <p>static</p>
1294+
* </li>
1295+
* <li>
1296+
* <p>propagated</p>
1297+
* </li>
1298+
* </ul>
1299+
*/
1300+
RouteOrigin?: string;
1301+
1302+
/**
1303+
* <p>The ID of the prefix list.</p>
1304+
*/
1305+
PrefixListId?: string;
1306+
1307+
/**
1308+
* <p>The ID of the route attachment.</p>
1309+
*/
1310+
AttachmentId?: string;
1311+
1312+
/**
1313+
* <p>The ID of the resource for the route attachment.</p>
1314+
*/
1315+
ResourceId?: string;
1316+
1317+
/**
1318+
* <p>The resource type for the route attachment.</p>
1319+
*/
1320+
ResourceType?: string;
1321+
}
1322+
1323+
export namespace TransitGatewayRouteTableRoute {
1324+
/**
1325+
* @internal
1326+
*/
1327+
export const filterSensitiveLog = (obj: TransitGatewayRouteTableRoute): any => ({
1328+
...obj,
1329+
});
1330+
}
1331+
12541332
/**
12551333
* <p>Describes a path component.</p>
12561334
*/
@@ -1314,6 +1392,21 @@ export interface PathComponent {
13141392
* <p>The component VPC.</p>
13151393
*/
13161394
Vpc?: AnalysisComponent;
1395+
1396+
/**
1397+
* <p>The additional details.</p>
1398+
*/
1399+
AdditionalDetails?: AdditionalDetail[];
1400+
1401+
/**
1402+
* <p>Describes a path component.</p>
1403+
*/
1404+
TransitGateway?: AnalysisComponent;
1405+
1406+
/**
1407+
* <p>The route in a transit gateway route table.</p>
1408+
*/
1409+
TransitGatewayRouteTableRoute?: TransitGatewayRouteTableRoute;
13171410
}
13181411

13191412
export namespace PathComponent {
@@ -8750,14 +8843,3 @@ export enum CpuManufacturer {
87508843
AMD = "amd",
87518844
INTEL = "intel",
87528845
}
8753-
8754-
export enum InstanceGeneration {
8755-
CURRENT = "current",
8756-
PREVIOUS = "previous",
8757-
}
8758-
8759-
export enum LocalStorage {
8760-
EXCLUDED = "excluded",
8761-
INCLUDED = "included",
8762-
REQUIRED = "required",
8763-
}

clients/client-ec2/src/models/models_1.ts

+11-75
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ import {
2525
FleetLaunchTemplateSpecificationRequest,
2626
HostnameType,
2727
InstanceEventWindow,
28-
InstanceGeneration,
2928
InternetGatewayAttachment,
3029
Ipv4PrefixSpecification,
31-
LocalStorage,
3230
PortRange,
3331
Protocol,
3432
ReservedInstancesListing,
@@ -43,6 +41,17 @@ import {
4341
WeekDay,
4442
} from "./models_0";
4543

44+
export enum InstanceGeneration {
45+
CURRENT = "current",
46+
PREVIOUS = "previous",
47+
}
48+
49+
export enum LocalStorage {
50+
EXCLUDED = "excluded",
51+
INCLUDED = "included",
52+
REQUIRED = "required",
53+
}
54+
4655
export enum LocalStorageType {
4756
HDD = "hdd",
4857
SSD = "ssd",
@@ -10301,76 +10310,3 @@ export namespace CreateTransitGatewayConnectResult {
1030110310
...obj,
1030210311
});
1030310312
}
10304-
10305-
/**
10306-
* <p>The BGP options for the Connect attachment.</p>
10307-
*/
10308-
export interface TransitGatewayConnectRequestBgpOptions {
10309-
/**
10310-
* <p>The peer Autonomous System Number (ASN).</p>
10311-
*/
10312-
PeerAsn?: number;
10313-
}
10314-
10315-
export namespace TransitGatewayConnectRequestBgpOptions {
10316-
/**
10317-
* @internal
10318-
*/
10319-
export const filterSensitiveLog = (obj: TransitGatewayConnectRequestBgpOptions): any => ({
10320-
...obj,
10321-
});
10322-
}
10323-
10324-
export interface CreateTransitGatewayConnectPeerRequest {
10325-
/**
10326-
* <p>The ID of the Connect attachment.</p>
10327-
*/
10328-
TransitGatewayAttachmentId: string | undefined;
10329-
10330-
/**
10331-
* <p>The peer IP address (GRE outer IP address) on the transit gateway side of the Connect peer, which must be
10332-
* specified from a transit gateway CIDR block. If not specified, Amazon automatically assigns
10333-
* the first available IP address from the transit gateway CIDR block.</p>
10334-
*/
10335-
TransitGatewayAddress?: string;
10336-
10337-
/**
10338-
* <p>The peer IP address (GRE outer IP address) on the appliance side of the Connect peer.</p>
10339-
*/
10340-
PeerAddress: string | undefined;
10341-
10342-
/**
10343-
* <p>The BGP options for the Connect peer.</p>
10344-
*/
10345-
BgpOptions?: TransitGatewayConnectRequestBgpOptions;
10346-
10347-
/**
10348-
* <p>The range of inside IP addresses that are used for BGP peering. You must specify a
10349-
* size /29 IPv4 CIDR block from the <code>169.254.0.0/16</code> range. The first address
10350-
* from the range must be configured on the appliance as the BGP IP address. You can also
10351-
* optionally specify a size /125 IPv6 CIDR block from the <code>fd00::/8</code>
10352-
* range.</p>
10353-
*/
10354-
InsideCidrBlocks: string[] | undefined;
10355-
10356-
/**
10357-
* <p>The tags to apply to the Connect peer.</p>
10358-
*/
10359-
TagSpecifications?: TagSpecification[];
10360-
10361-
/**
10362-
* <p>Checks whether you have the required permissions for the action, without actually making the request,
10363-
* and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
10364-
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
10365-
*/
10366-
DryRun?: boolean;
10367-
}
10368-
10369-
export namespace CreateTransitGatewayConnectPeerRequest {
10370-
/**
10371-
* @internal
10372-
*/
10373-
export const filterSensitiveLog = (obj: CreateTransitGatewayConnectPeerRequest): any => ({
10374-
...obj,
10375-
});
10376-
}

0 commit comments

Comments
 (0)