@aws-sdk/client-ec2 3.917.0 → 3.919.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist-cjs/index.js +128 -0
- package/dist-es/EC2.js +2 -0
- package/dist-es/commands/DescribeCapacityReservationTopologyCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_ec2.js +109 -0
- package/dist-types/EC2.d.ts +8 -0
- package/dist-types/EC2Client.d.ts +3 -2
- package/dist-types/commands/DescribeCapacityReservationTopologyCommand.d.ts +122 -0
- package/dist-types/commands/DescribeInstanceTopologyCommand.d.ts +7 -6
- package/dist-types/commands/DescribeVolumeStatusCommand.d.ts +1 -2
- package/dist-types/commands/DescribeVolumesModificationsCommand.d.ts +2 -1
- package/dist-types/commands/GetIpamAddressHistoryCommand.d.ts +2 -1
- package/dist-types/commands/GetIpamDiscoveredAccountsCommand.d.ts +1 -2
- package/dist-types/commands/ModifyVpcEndpointConnectionNotificationCommand.d.ts +2 -1
- package/dist-types/commands/ModifyVpcEndpointServiceConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_4.d.ts +152 -62
- package/dist-types/models/models_5.d.ts +56 -201
- package/dist-types/models/models_6.d.ts +201 -116
- package/dist-types/models/models_7.d.ts +116 -96
- package/dist-types/models/models_8.d.ts +94 -0
- package/dist-types/protocols/Aws_ec2.d.ts +9 -0
- package/dist-types/ts3.4/EC2.d.ts +24 -0
- package/dist-types/ts3.4/EC2Client.d.ts +6 -0
- package/dist-types/ts3.4/commands/DescribeCapacityReservationTopologyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeVolumeStatusCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeVolumesModificationsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetIpamAddressHistoryCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetIpamDiscoveredAccountsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ModifyVpcEndpointConnectionNotificationCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ModifyVpcEndpointServiceConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_4.d.ts +21 -13
- package/dist-types/ts3.4/models/models_5.d.ts +13 -31
- package/dist-types/ts3.4/models/models_6.d.ts +31 -26
- package/dist-types/ts3.4/models/models_7.d.ts +27 -22
- package/dist-types/ts3.4/models/models_8.d.ts +21 -0
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2317,6 +2317,14 @@ DescribeCapacityReservations
|
|
|
2317
2317
|
|
|
2318
2318
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeCapacityReservationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeCapacityReservationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeCapacityReservationsCommandOutput/)
|
|
2319
2319
|
|
|
2320
|
+
</details>
|
|
2321
|
+
<details>
|
|
2322
|
+
<summary>
|
|
2323
|
+
DescribeCapacityReservationTopology
|
|
2324
|
+
</summary>
|
|
2325
|
+
|
|
2326
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeCapacityReservationTopologyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeCapacityReservationTopologyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeCapacityReservationTopologyCommandOutput/)
|
|
2327
|
+
|
|
2320
2328
|
</details>
|
|
2321
2329
|
<details>
|
|
2322
2330
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -2760,6 +2760,16 @@ const se_DescribeCapacityReservationsCommand = async (input, context) => {
|
|
|
2760
2760
|
});
|
|
2761
2761
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2762
2762
|
};
|
|
2763
|
+
const se_DescribeCapacityReservationTopologyCommand = async (input, context) => {
|
|
2764
|
+
const headers = SHARED_HEADERS;
|
|
2765
|
+
let body;
|
|
2766
|
+
body = buildFormUrlencodedString({
|
|
2767
|
+
...se_DescribeCapacityReservationTopologyRequest(input),
|
|
2768
|
+
[_A]: _DCRT,
|
|
2769
|
+
[_V]: _,
|
|
2770
|
+
});
|
|
2771
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2772
|
+
};
|
|
2763
2773
|
const se_DescribeCarrierGatewaysCommand = async (input, context) => {
|
|
2764
2774
|
const headers = SHARED_HEADERS;
|
|
2765
2775
|
let body;
|
|
@@ -10517,6 +10527,19 @@ const de_DescribeCapacityReservationsCommand = async (output, context) => {
|
|
|
10517
10527
|
};
|
|
10518
10528
|
return response;
|
|
10519
10529
|
};
|
|
10530
|
+
const de_DescribeCapacityReservationTopologyCommand = async (output, context) => {
|
|
10531
|
+
if (output.statusCode >= 300) {
|
|
10532
|
+
return de_CommandError(output, context);
|
|
10533
|
+
}
|
|
10534
|
+
const data = await core$1.parseXmlBody(output.body, context);
|
|
10535
|
+
let contents = {};
|
|
10536
|
+
contents = de_DescribeCapacityReservationTopologyResult(data);
|
|
10537
|
+
const response = {
|
|
10538
|
+
$metadata: deserializeMetadata(output),
|
|
10539
|
+
...contents,
|
|
10540
|
+
};
|
|
10541
|
+
return response;
|
|
10542
|
+
};
|
|
10520
10543
|
const de_DescribeCarrierGatewaysCommand = async (output, context) => {
|
|
10521
10544
|
if (output.statusCode >= 300) {
|
|
10522
10545
|
return de_CommandError(output, context);
|
|
@@ -23306,6 +23329,33 @@ const se_DescribeCapacityReservationsRequest = (input, context) => {
|
|
|
23306
23329
|
}
|
|
23307
23330
|
return entries;
|
|
23308
23331
|
};
|
|
23332
|
+
const se_DescribeCapacityReservationTopologyRequest = (input, context) => {
|
|
23333
|
+
const entries = {};
|
|
23334
|
+
if (input[_DRr] != null) {
|
|
23335
|
+
entries[_DRr] = input[_DRr];
|
|
23336
|
+
}
|
|
23337
|
+
if (input[_NT] != null) {
|
|
23338
|
+
entries[_NT] = input[_NT];
|
|
23339
|
+
}
|
|
23340
|
+
if (input[_MR] != null) {
|
|
23341
|
+
entries[_MR] = input[_MR];
|
|
23342
|
+
}
|
|
23343
|
+
if (input[_CRIa] != null) {
|
|
23344
|
+
const memberEntries = se_CapacityReservationIdSet(input[_CRIa]);
|
|
23345
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
23346
|
+
const loc = `CapacityReservationId.${key.substring(key.indexOf(".") + 1)}`;
|
|
23347
|
+
entries[loc] = value;
|
|
23348
|
+
});
|
|
23349
|
+
}
|
|
23350
|
+
if (input[_Fi] != null) {
|
|
23351
|
+
const memberEntries = se_FilterList(input[_Fi]);
|
|
23352
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
23353
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
23354
|
+
entries[loc] = value;
|
|
23355
|
+
});
|
|
23356
|
+
}
|
|
23357
|
+
return entries;
|
|
23358
|
+
};
|
|
23309
23359
|
const se_DescribeCarrierGatewaysRequest = (input, context) => {
|
|
23310
23360
|
const entries = {};
|
|
23311
23361
|
if (input[_CGIa] != null) {
|
|
@@ -42762,6 +42812,44 @@ const de_CapacityReservationTargetResponse = (output, context) => {
|
|
|
42762
42812
|
}
|
|
42763
42813
|
return contents;
|
|
42764
42814
|
};
|
|
42815
|
+
const de_CapacityReservationTopology = (output, context) => {
|
|
42816
|
+
const contents = {};
|
|
42817
|
+
if (output[_cRI] != null) {
|
|
42818
|
+
contents[_CRI] = smithyClient.expectString(output[_cRI]);
|
|
42819
|
+
}
|
|
42820
|
+
if (output[_cBI] != null) {
|
|
42821
|
+
contents[_CBIa] = smithyClient.expectString(output[_cBI]);
|
|
42822
|
+
}
|
|
42823
|
+
if (output[_st] != null) {
|
|
42824
|
+
contents[_Stat] = smithyClient.expectString(output[_st]);
|
|
42825
|
+
}
|
|
42826
|
+
if (output[_iT] != null) {
|
|
42827
|
+
contents[_IT] = smithyClient.expectString(output[_iT]);
|
|
42828
|
+
}
|
|
42829
|
+
if (output[_gN] != null) {
|
|
42830
|
+
contents[_GN] = smithyClient.expectString(output[_gN]);
|
|
42831
|
+
}
|
|
42832
|
+
if (String(output.networkNodeSet).trim() === "") {
|
|
42833
|
+
contents[_NN] = [];
|
|
42834
|
+
}
|
|
42835
|
+
else if (output[_nNS] != null && output[_nNS][_i] != null) {
|
|
42836
|
+
contents[_NN] = de_NetworkNodeSet(smithyClient.getArrayIfSingleItem(output[_nNS][_i]));
|
|
42837
|
+
}
|
|
42838
|
+
if (output[_aZI] != null) {
|
|
42839
|
+
contents[_AZI] = smithyClient.expectString(output[_aZI]);
|
|
42840
|
+
}
|
|
42841
|
+
if (output[_aZ] != null) {
|
|
42842
|
+
contents[_AZ] = smithyClient.expectString(output[_aZ]);
|
|
42843
|
+
}
|
|
42844
|
+
return contents;
|
|
42845
|
+
};
|
|
42846
|
+
const de_CapacityReservationTopologySet = (output, context) => {
|
|
42847
|
+
return (output || [])
|
|
42848
|
+
.filter((e) => e != null)
|
|
42849
|
+
.map((entry) => {
|
|
42850
|
+
return de_CapacityReservationTopology(entry);
|
|
42851
|
+
});
|
|
42852
|
+
};
|
|
42765
42853
|
const de_CarrierGateway = (output, context) => {
|
|
42766
42854
|
const contents = {};
|
|
42767
42855
|
if (output[_cGI] != null) {
|
|
@@ -45368,6 +45456,19 @@ const de_DescribeCapacityReservationsResult = (output, context) => {
|
|
|
45368
45456
|
}
|
|
45369
45457
|
return contents;
|
|
45370
45458
|
};
|
|
45459
|
+
const de_DescribeCapacityReservationTopologyResult = (output, context) => {
|
|
45460
|
+
const contents = {};
|
|
45461
|
+
if (output[_nTe] != null) {
|
|
45462
|
+
contents[_NT] = smithyClient.expectString(output[_nTe]);
|
|
45463
|
+
}
|
|
45464
|
+
if (String(output.capacityReservationSet).trim() === "") {
|
|
45465
|
+
contents[_CRapac] = [];
|
|
45466
|
+
}
|
|
45467
|
+
else if (output[_cRS] != null && output[_cRS][_i] != null) {
|
|
45468
|
+
contents[_CRapac] = de_CapacityReservationTopologySet(smithyClient.getArrayIfSingleItem(output[_cRS][_i]));
|
|
45469
|
+
}
|
|
45470
|
+
return contents;
|
|
45471
|
+
};
|
|
45371
45472
|
const de_DescribeCarrierGatewaysResult = (output, context) => {
|
|
45372
45473
|
const contents = {};
|
|
45373
45474
|
if (String(output.carrierGatewaySet).trim() === "") {
|
|
@@ -57074,6 +57175,13 @@ const de_NetworkInterfacePrivateIpAddressList = (output, context) => {
|
|
|
57074
57175
|
return de_NetworkInterfacePrivateIpAddress(entry);
|
|
57075
57176
|
});
|
|
57076
57177
|
};
|
|
57178
|
+
const de_NetworkNodeSet = (output, context) => {
|
|
57179
|
+
return (output || [])
|
|
57180
|
+
.filter((e) => e != null)
|
|
57181
|
+
.map((entry) => {
|
|
57182
|
+
return smithyClient.expectString(entry);
|
|
57183
|
+
});
|
|
57184
|
+
};
|
|
57077
57185
|
const de_NetworkNodesList = (output, context) => {
|
|
57078
57186
|
return (output || [])
|
|
57079
57187
|
.filter((e) => e != null)
|
|
@@ -65708,6 +65816,7 @@ const _DCRBO = "DisassociateCapacityReservationBillingOwner";
|
|
|
65708
65816
|
const _DCRBR = "DescribeCapacityReservationBillingRequests";
|
|
65709
65817
|
const _DCRF = "DescribeCapacityReservationFleets";
|
|
65710
65818
|
const _DCRI = "DestinationCapacityReservationId";
|
|
65819
|
+
const _DCRT = "DescribeCapacityReservationTopology";
|
|
65711
65820
|
const _DCRe = "DestinationCapacityReservation";
|
|
65712
65821
|
const _DCT = "DescribeConversionTasks";
|
|
65713
65822
|
const _DCVAR = "DescribeClientVpnAuthorizationRules";
|
|
@@ -77201,6 +77310,23 @@ class DescribeCapacityReservationsCommand extends smithyClient.Command
|
|
|
77201
77310
|
.build() {
|
|
77202
77311
|
}
|
|
77203
77312
|
|
|
77313
|
+
class DescribeCapacityReservationTopologyCommand extends smithyClient.Command
|
|
77314
|
+
.classBuilder()
|
|
77315
|
+
.ep(commonParams)
|
|
77316
|
+
.m(function (Command, cs, config, o) {
|
|
77317
|
+
return [
|
|
77318
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
77319
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
77320
|
+
];
|
|
77321
|
+
})
|
|
77322
|
+
.s("AmazonEC2", "DescribeCapacityReservationTopology", {})
|
|
77323
|
+
.n("EC2Client", "DescribeCapacityReservationTopologyCommand")
|
|
77324
|
+
.f(void 0, void 0)
|
|
77325
|
+
.ser(se_DescribeCapacityReservationTopologyCommand)
|
|
77326
|
+
.de(de_DescribeCapacityReservationTopologyCommand)
|
|
77327
|
+
.build() {
|
|
77328
|
+
}
|
|
77329
|
+
|
|
77204
77330
|
class DescribeCarrierGatewaysCommand extends smithyClient.Command
|
|
77205
77331
|
.classBuilder()
|
|
77206
77332
|
.ep(commonParams)
|
|
@@ -86108,6 +86234,7 @@ const commands = {
|
|
|
86108
86234
|
DescribeCapacityReservationBillingRequestsCommand,
|
|
86109
86235
|
DescribeCapacityReservationFleetsCommand,
|
|
86110
86236
|
DescribeCapacityReservationsCommand,
|
|
86237
|
+
DescribeCapacityReservationTopologyCommand,
|
|
86111
86238
|
DescribeCarrierGatewaysCommand,
|
|
86112
86239
|
DescribeClassicLinkInstancesCommand,
|
|
86113
86240
|
DescribeClientVpnAuthorizationRulesCommand,
|
|
@@ -89279,6 +89406,7 @@ exports.DescribeCapacityBlocksCommand = DescribeCapacityBlocksCommand;
|
|
|
89279
89406
|
exports.DescribeCapacityManagerDataExportsCommand = DescribeCapacityManagerDataExportsCommand;
|
|
89280
89407
|
exports.DescribeCapacityReservationBillingRequestsCommand = DescribeCapacityReservationBillingRequestsCommand;
|
|
89281
89408
|
exports.DescribeCapacityReservationFleetsCommand = DescribeCapacityReservationFleetsCommand;
|
|
89409
|
+
exports.DescribeCapacityReservationTopologyCommand = DescribeCapacityReservationTopologyCommand;
|
|
89282
89410
|
exports.DescribeCapacityReservationsCommand = DescribeCapacityReservationsCommand;
|
|
89283
89411
|
exports.DescribeCarrierGatewaysCommand = DescribeCarrierGatewaysCommand;
|
|
89284
89412
|
exports.DescribeClassicLinkInstancesCommand = DescribeClassicLinkInstancesCommand;
|
package/dist-es/EC2.js
CHANGED
|
@@ -263,6 +263,7 @@ import { DescribeCapacityManagerDataExportsCommand, } from "./commands/DescribeC
|
|
|
263
263
|
import { DescribeCapacityReservationBillingRequestsCommand, } from "./commands/DescribeCapacityReservationBillingRequestsCommand";
|
|
264
264
|
import { DescribeCapacityReservationFleetsCommand, } from "./commands/DescribeCapacityReservationFleetsCommand";
|
|
265
265
|
import { DescribeCapacityReservationsCommand, } from "./commands/DescribeCapacityReservationsCommand";
|
|
266
|
+
import { DescribeCapacityReservationTopologyCommand, } from "./commands/DescribeCapacityReservationTopologyCommand";
|
|
266
267
|
import { DescribeCarrierGatewaysCommand, } from "./commands/DescribeCarrierGatewaysCommand";
|
|
267
268
|
import { DescribeClassicLinkInstancesCommand, } from "./commands/DescribeClassicLinkInstancesCommand";
|
|
268
269
|
import { DescribeClientVpnAuthorizationRulesCommand, } from "./commands/DescribeClientVpnAuthorizationRulesCommand";
|
|
@@ -969,6 +970,7 @@ const commands = {
|
|
|
969
970
|
DescribeCapacityReservationBillingRequestsCommand,
|
|
970
971
|
DescribeCapacityReservationFleetsCommand,
|
|
971
972
|
DescribeCapacityReservationsCommand,
|
|
973
|
+
DescribeCapacityReservationTopologyCommand,
|
|
972
974
|
DescribeCarrierGatewaysCommand,
|
|
973
975
|
DescribeClassicLinkInstancesCommand,
|
|
974
976
|
DescribeClientVpnAuthorizationRulesCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DescribeCapacityReservationTopologyCommand, se_DescribeCapacityReservationTopologyCommand, } from "../protocols/Aws_ec2";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeCapacityReservationTopologyCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonEC2", "DescribeCapacityReservationTopology", {})
|
|
17
|
+
.n("EC2Client", "DescribeCapacityReservationTopologyCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DescribeCapacityReservationTopologyCommand)
|
|
20
|
+
.de(de_DescribeCapacityReservationTopologyCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -261,6 +261,7 @@ export * from "./DescribeCapacityBlocksCommand";
|
|
|
261
261
|
export * from "./DescribeCapacityManagerDataExportsCommand";
|
|
262
262
|
export * from "./DescribeCapacityReservationBillingRequestsCommand";
|
|
263
263
|
export * from "./DescribeCapacityReservationFleetsCommand";
|
|
264
|
+
export * from "./DescribeCapacityReservationTopologyCommand";
|
|
264
265
|
export * from "./DescribeCapacityReservationsCommand";
|
|
265
266
|
export * from "./DescribeCarrierGatewaysCommand";
|
|
266
267
|
export * from "./DescribeClassicLinkInstancesCommand";
|
|
@@ -2643,6 +2643,16 @@ export const se_DescribeCapacityReservationsCommand = async (input, context) =>
|
|
|
2643
2643
|
});
|
|
2644
2644
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2645
2645
|
};
|
|
2646
|
+
export const se_DescribeCapacityReservationTopologyCommand = async (input, context) => {
|
|
2647
|
+
const headers = SHARED_HEADERS;
|
|
2648
|
+
let body;
|
|
2649
|
+
body = buildFormUrlencodedString({
|
|
2650
|
+
...se_DescribeCapacityReservationTopologyRequest(input, context),
|
|
2651
|
+
[_A]: _DCRT,
|
|
2652
|
+
[_V]: _,
|
|
2653
|
+
});
|
|
2654
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2655
|
+
};
|
|
2646
2656
|
export const se_DescribeCarrierGatewaysCommand = async (input, context) => {
|
|
2647
2657
|
const headers = SHARED_HEADERS;
|
|
2648
2658
|
let body;
|
|
@@ -10400,6 +10410,19 @@ export const de_DescribeCapacityReservationsCommand = async (output, context) =>
|
|
|
10400
10410
|
};
|
|
10401
10411
|
return response;
|
|
10402
10412
|
};
|
|
10413
|
+
export const de_DescribeCapacityReservationTopologyCommand = async (output, context) => {
|
|
10414
|
+
if (output.statusCode >= 300) {
|
|
10415
|
+
return de_CommandError(output, context);
|
|
10416
|
+
}
|
|
10417
|
+
const data = await parseBody(output.body, context);
|
|
10418
|
+
let contents = {};
|
|
10419
|
+
contents = de_DescribeCapacityReservationTopologyResult(data, context);
|
|
10420
|
+
const response = {
|
|
10421
|
+
$metadata: deserializeMetadata(output),
|
|
10422
|
+
...contents,
|
|
10423
|
+
};
|
|
10424
|
+
return response;
|
|
10425
|
+
};
|
|
10403
10426
|
export const de_DescribeCarrierGatewaysCommand = async (output, context) => {
|
|
10404
10427
|
if (output.statusCode >= 300) {
|
|
10405
10428
|
return de_CommandError(output, context);
|
|
@@ -23189,6 +23212,33 @@ const se_DescribeCapacityReservationsRequest = (input, context) => {
|
|
|
23189
23212
|
}
|
|
23190
23213
|
return entries;
|
|
23191
23214
|
};
|
|
23215
|
+
const se_DescribeCapacityReservationTopologyRequest = (input, context) => {
|
|
23216
|
+
const entries = {};
|
|
23217
|
+
if (input[_DRr] != null) {
|
|
23218
|
+
entries[_DRr] = input[_DRr];
|
|
23219
|
+
}
|
|
23220
|
+
if (input[_NT] != null) {
|
|
23221
|
+
entries[_NT] = input[_NT];
|
|
23222
|
+
}
|
|
23223
|
+
if (input[_MR] != null) {
|
|
23224
|
+
entries[_MR] = input[_MR];
|
|
23225
|
+
}
|
|
23226
|
+
if (input[_CRIa] != null) {
|
|
23227
|
+
const memberEntries = se_CapacityReservationIdSet(input[_CRIa], context);
|
|
23228
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
23229
|
+
const loc = `CapacityReservationId.${key.substring(key.indexOf(".") + 1)}`;
|
|
23230
|
+
entries[loc] = value;
|
|
23231
|
+
});
|
|
23232
|
+
}
|
|
23233
|
+
if (input[_Fi] != null) {
|
|
23234
|
+
const memberEntries = se_FilterList(input[_Fi], context);
|
|
23235
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
23236
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
23237
|
+
entries[loc] = value;
|
|
23238
|
+
});
|
|
23239
|
+
}
|
|
23240
|
+
return entries;
|
|
23241
|
+
};
|
|
23192
23242
|
const se_DescribeCarrierGatewaysRequest = (input, context) => {
|
|
23193
23243
|
const entries = {};
|
|
23194
23244
|
if (input[_CGIa] != null) {
|
|
@@ -42645,6 +42695,44 @@ const de_CapacityReservationTargetResponse = (output, context) => {
|
|
|
42645
42695
|
}
|
|
42646
42696
|
return contents;
|
|
42647
42697
|
};
|
|
42698
|
+
const de_CapacityReservationTopology = (output, context) => {
|
|
42699
|
+
const contents = {};
|
|
42700
|
+
if (output[_cRI] != null) {
|
|
42701
|
+
contents[_CRI] = __expectString(output[_cRI]);
|
|
42702
|
+
}
|
|
42703
|
+
if (output[_cBI] != null) {
|
|
42704
|
+
contents[_CBIa] = __expectString(output[_cBI]);
|
|
42705
|
+
}
|
|
42706
|
+
if (output[_st] != null) {
|
|
42707
|
+
contents[_Stat] = __expectString(output[_st]);
|
|
42708
|
+
}
|
|
42709
|
+
if (output[_iT] != null) {
|
|
42710
|
+
contents[_IT] = __expectString(output[_iT]);
|
|
42711
|
+
}
|
|
42712
|
+
if (output[_gN] != null) {
|
|
42713
|
+
contents[_GN] = __expectString(output[_gN]);
|
|
42714
|
+
}
|
|
42715
|
+
if (String(output.networkNodeSet).trim() === "") {
|
|
42716
|
+
contents[_NN] = [];
|
|
42717
|
+
}
|
|
42718
|
+
else if (output[_nNS] != null && output[_nNS][_i] != null) {
|
|
42719
|
+
contents[_NN] = de_NetworkNodeSet(__getArrayIfSingleItem(output[_nNS][_i]), context);
|
|
42720
|
+
}
|
|
42721
|
+
if (output[_aZI] != null) {
|
|
42722
|
+
contents[_AZI] = __expectString(output[_aZI]);
|
|
42723
|
+
}
|
|
42724
|
+
if (output[_aZ] != null) {
|
|
42725
|
+
contents[_AZ] = __expectString(output[_aZ]);
|
|
42726
|
+
}
|
|
42727
|
+
return contents;
|
|
42728
|
+
};
|
|
42729
|
+
const de_CapacityReservationTopologySet = (output, context) => {
|
|
42730
|
+
return (output || [])
|
|
42731
|
+
.filter((e) => e != null)
|
|
42732
|
+
.map((entry) => {
|
|
42733
|
+
return de_CapacityReservationTopology(entry, context);
|
|
42734
|
+
});
|
|
42735
|
+
};
|
|
42648
42736
|
const de_CarrierGateway = (output, context) => {
|
|
42649
42737
|
const contents = {};
|
|
42650
42738
|
if (output[_cGI] != null) {
|
|
@@ -45251,6 +45339,19 @@ const de_DescribeCapacityReservationsResult = (output, context) => {
|
|
|
45251
45339
|
}
|
|
45252
45340
|
return contents;
|
|
45253
45341
|
};
|
|
45342
|
+
const de_DescribeCapacityReservationTopologyResult = (output, context) => {
|
|
45343
|
+
const contents = {};
|
|
45344
|
+
if (output[_nTe] != null) {
|
|
45345
|
+
contents[_NT] = __expectString(output[_nTe]);
|
|
45346
|
+
}
|
|
45347
|
+
if (String(output.capacityReservationSet).trim() === "") {
|
|
45348
|
+
contents[_CRapac] = [];
|
|
45349
|
+
}
|
|
45350
|
+
else if (output[_cRS] != null && output[_cRS][_i] != null) {
|
|
45351
|
+
contents[_CRapac] = de_CapacityReservationTopologySet(__getArrayIfSingleItem(output[_cRS][_i]), context);
|
|
45352
|
+
}
|
|
45353
|
+
return contents;
|
|
45354
|
+
};
|
|
45254
45355
|
const de_DescribeCarrierGatewaysResult = (output, context) => {
|
|
45255
45356
|
const contents = {};
|
|
45256
45357
|
if (String(output.carrierGatewaySet).trim() === "") {
|
|
@@ -56957,6 +57058,13 @@ const de_NetworkInterfacePrivateIpAddressList = (output, context) => {
|
|
|
56957
57058
|
return de_NetworkInterfacePrivateIpAddress(entry, context);
|
|
56958
57059
|
});
|
|
56959
57060
|
};
|
|
57061
|
+
const de_NetworkNodeSet = (output, context) => {
|
|
57062
|
+
return (output || [])
|
|
57063
|
+
.filter((e) => e != null)
|
|
57064
|
+
.map((entry) => {
|
|
57065
|
+
return __expectString(entry);
|
|
57066
|
+
});
|
|
57067
|
+
};
|
|
56960
57068
|
const de_NetworkNodesList = (output, context) => {
|
|
56961
57069
|
return (output || [])
|
|
56962
57070
|
.filter((e) => e != null)
|
|
@@ -65595,6 +65703,7 @@ const _DCRBO = "DisassociateCapacityReservationBillingOwner";
|
|
|
65595
65703
|
const _DCRBR = "DescribeCapacityReservationBillingRequests";
|
|
65596
65704
|
const _DCRF = "DescribeCapacityReservationFleets";
|
|
65597
65705
|
const _DCRI = "DestinationCapacityReservationId";
|
|
65706
|
+
const _DCRT = "DescribeCapacityReservationTopology";
|
|
65598
65707
|
const _DCRe = "DestinationCapacityReservation";
|
|
65599
65708
|
const _DCT = "DescribeConversionTasks";
|
|
65600
65709
|
const _DCVAR = "DescribeClientVpnAuthorizationRules";
|
package/dist-types/EC2.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ import { DescribeCapacityManagerDataExportsCommandInput, DescribeCapacityManager
|
|
|
263
263
|
import { DescribeCapacityReservationBillingRequestsCommandInput, DescribeCapacityReservationBillingRequestsCommandOutput } from "./commands/DescribeCapacityReservationBillingRequestsCommand";
|
|
264
264
|
import { DescribeCapacityReservationFleetsCommandInput, DescribeCapacityReservationFleetsCommandOutput } from "./commands/DescribeCapacityReservationFleetsCommand";
|
|
265
265
|
import { DescribeCapacityReservationsCommandInput, DescribeCapacityReservationsCommandOutput } from "./commands/DescribeCapacityReservationsCommand";
|
|
266
|
+
import { DescribeCapacityReservationTopologyCommandInput, DescribeCapacityReservationTopologyCommandOutput } from "./commands/DescribeCapacityReservationTopologyCommand";
|
|
266
267
|
import { DescribeCarrierGatewaysCommandInput, DescribeCarrierGatewaysCommandOutput } from "./commands/DescribeCarrierGatewaysCommand";
|
|
267
268
|
import { DescribeClassicLinkInstancesCommandInput, DescribeClassicLinkInstancesCommandOutput } from "./commands/DescribeClassicLinkInstancesCommand";
|
|
268
269
|
import { DescribeClientVpnAuthorizationRulesCommandInput, DescribeClientVpnAuthorizationRulesCommandOutput } from "./commands/DescribeClientVpnAuthorizationRulesCommand";
|
|
@@ -2330,6 +2331,13 @@ export interface EC2 {
|
|
|
2330
2331
|
describeCapacityReservations(args: DescribeCapacityReservationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCapacityReservationsCommandOutput>;
|
|
2331
2332
|
describeCapacityReservations(args: DescribeCapacityReservationsCommandInput, cb: (err: any, data?: DescribeCapacityReservationsCommandOutput) => void): void;
|
|
2332
2333
|
describeCapacityReservations(args: DescribeCapacityReservationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCapacityReservationsCommandOutput) => void): void;
|
|
2334
|
+
/**
|
|
2335
|
+
* @see {@link DescribeCapacityReservationTopologyCommand}
|
|
2336
|
+
*/
|
|
2337
|
+
describeCapacityReservationTopology(): Promise<DescribeCapacityReservationTopologyCommandOutput>;
|
|
2338
|
+
describeCapacityReservationTopology(args: DescribeCapacityReservationTopologyCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCapacityReservationTopologyCommandOutput>;
|
|
2339
|
+
describeCapacityReservationTopology(args: DescribeCapacityReservationTopologyCommandInput, cb: (err: any, data?: DescribeCapacityReservationTopologyCommandOutput) => void): void;
|
|
2340
|
+
describeCapacityReservationTopology(args: DescribeCapacityReservationTopologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCapacityReservationTopologyCommandOutput) => void): void;
|
|
2333
2341
|
/**
|
|
2334
2342
|
* @see {@link DescribeCarrierGatewaysCommand}
|
|
2335
2343
|
*/
|