@aws-sdk/client-ec2 3.535.0 → 3.537.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 +119 -0
- package/dist-es/EC2.js +2 -0
- package/dist-es/commands/DescribeMacHostsCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/pagination/DescribeMacHostsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_ec2.js +98 -0
- package/dist-types/EC2.d.ts +8 -0
- package/dist-types/EC2Client.d.ts +3 -2
- package/dist-types/commands/DescribeMacHostsCommand.d.ts +79 -0
- package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -1
- package/dist-types/commands/DescribeStaleSecurityGroupsCommand.d.ts +1 -2
- package/dist-types/commands/GetIpamDiscoveredPublicAddressesCommand.d.ts +2 -1
- package/dist-types/commands/RegisterImageCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_4.d.ts +77 -87
- package/dist-types/models/models_5.d.ts +89 -134
- package/dist-types/models/models_6.d.ts +135 -173
- package/dist-types/models/models_7.d.ts +172 -2
- package/dist-types/pagination/DescribeMacHostsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_ec2.d.ts +9 -0
- package/dist-types/ts3.4/EC2.d.ts +18 -0
- package/dist-types/ts3.4/EC2Client.d.ts +6 -0
- package/dist-types/ts3.4/commands/DescribeMacHostsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeStaleSecurityGroupsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetIpamDiscoveredPublicAddressesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RegisterImageCommand.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 +14 -17
- package/dist-types/ts3.4/models/models_5.d.ts +23 -30
- package/dist-types/ts3.4/models/models_6.d.ts +34 -30
- package/dist-types/ts3.4/models/models_7.d.ts +31 -1
- package/dist-types/ts3.4/pagination/DescribeMacHostsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2541,6 +2541,14 @@ DescribeLockedSnapshots
|
|
|
2541
2541
|
|
|
2542
2542
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeLockedSnapshotsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeLockedSnapshotsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeLockedSnapshotsCommandOutput/)
|
|
2543
2543
|
|
|
2544
|
+
</details>
|
|
2545
|
+
<details>
|
|
2546
|
+
<summary>
|
|
2547
|
+
DescribeMacHosts
|
|
2548
|
+
</summary>
|
|
2549
|
+
|
|
2550
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeMacHostsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeMacHostsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeMacHostsCommandOutput/)
|
|
2551
|
+
|
|
2544
2552
|
</details>
|
|
2545
2553
|
<details>
|
|
2546
2554
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -400,6 +400,7 @@ __export(src_exports, {
|
|
|
400
400
|
DescribeLocalGatewayVirtualInterfacesCommand: () => DescribeLocalGatewayVirtualInterfacesCommand,
|
|
401
401
|
DescribeLocalGatewaysCommand: () => DescribeLocalGatewaysCommand,
|
|
402
402
|
DescribeLockedSnapshotsCommand: () => DescribeLockedSnapshotsCommand,
|
|
403
|
+
DescribeMacHostsCommand: () => DescribeMacHostsCommand,
|
|
403
404
|
DescribeManagedPrefixListsCommand: () => DescribeManagedPrefixListsCommand,
|
|
404
405
|
DescribeMovingAddressesCommand: () => DescribeMovingAddressesCommand,
|
|
405
406
|
DescribeNatGatewaysCommand: () => DescribeNatGatewaysCommand,
|
|
@@ -1103,6 +1104,7 @@ __export(src_exports, {
|
|
|
1103
1104
|
paginateDescribeLocalGatewayVirtualInterfaceGroups: () => paginateDescribeLocalGatewayVirtualInterfaceGroups,
|
|
1104
1105
|
paginateDescribeLocalGatewayVirtualInterfaces: () => paginateDescribeLocalGatewayVirtualInterfaces,
|
|
1105
1106
|
paginateDescribeLocalGateways: () => paginateDescribeLocalGateways,
|
|
1107
|
+
paginateDescribeMacHosts: () => paginateDescribeMacHosts,
|
|
1106
1108
|
paginateDescribeManagedPrefixLists: () => paginateDescribeManagedPrefixLists,
|
|
1107
1109
|
paginateDescribeMovingAddresses: () => paginateDescribeMovingAddresses,
|
|
1108
1110
|
paginateDescribeNatGateways: () => paginateDescribeNatGateways,
|
|
@@ -4357,6 +4359,16 @@ var se_DescribeLockedSnapshotsCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
4357
4359
|
});
|
|
4358
4360
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
4359
4361
|
}, "se_DescribeLockedSnapshotsCommand");
|
|
4362
|
+
var se_DescribeMacHostsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
4363
|
+
const headers = SHARED_HEADERS;
|
|
4364
|
+
let body;
|
|
4365
|
+
body = buildFormUrlencodedString({
|
|
4366
|
+
...se_DescribeMacHostsRequest(input, context),
|
|
4367
|
+
[_A]: _DMH,
|
|
4368
|
+
[_V]: _
|
|
4369
|
+
});
|
|
4370
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
4371
|
+
}, "se_DescribeMacHostsCommand");
|
|
4360
4372
|
var se_DescribeManagedPrefixListsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
4361
4373
|
const headers = SHARED_HEADERS;
|
|
4362
4374
|
let body;
|
|
@@ -11302,6 +11314,19 @@ var de_DescribeLockedSnapshotsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
11302
11314
|
};
|
|
11303
11315
|
return response;
|
|
11304
11316
|
}, "de_DescribeLockedSnapshotsCommand");
|
|
11317
|
+
var de_DescribeMacHostsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
11318
|
+
if (output.statusCode >= 300) {
|
|
11319
|
+
return de_CommandError(output, context);
|
|
11320
|
+
}
|
|
11321
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
11322
|
+
let contents = {};
|
|
11323
|
+
contents = de_DescribeMacHostsResult(data, context);
|
|
11324
|
+
const response = {
|
|
11325
|
+
$metadata: deserializeMetadata(output),
|
|
11326
|
+
...contents
|
|
11327
|
+
};
|
|
11328
|
+
return response;
|
|
11329
|
+
}, "de_DescribeMacHostsCommand");
|
|
11305
11330
|
var de_DescribeManagedPrefixListsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
11306
11331
|
if (output.statusCode >= 300) {
|
|
11307
11332
|
return de_CommandError(output, context);
|
|
@@ -23953,6 +23978,37 @@ var se_DescribeLockedSnapshotsRequest = /* @__PURE__ */ __name((input, context)
|
|
|
23953
23978
|
}
|
|
23954
23979
|
return entries;
|
|
23955
23980
|
}, "se_DescribeLockedSnapshotsRequest");
|
|
23981
|
+
var se_DescribeMacHostsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
23982
|
+
var _a2, _b2;
|
|
23983
|
+
const entries = {};
|
|
23984
|
+
if (input[_Fi] != null) {
|
|
23985
|
+
const memberEntries = se_FilterList(input[_Fi], context);
|
|
23986
|
+
if (((_a2 = input[_Fi]) == null ? void 0 : _a2.length) === 0) {
|
|
23987
|
+
entries.Filter = [];
|
|
23988
|
+
}
|
|
23989
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
23990
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
23991
|
+
entries[loc] = value;
|
|
23992
|
+
});
|
|
23993
|
+
}
|
|
23994
|
+
if (input[_HI] != null) {
|
|
23995
|
+
const memberEntries = se_RequestHostIdList(input[_HI], context);
|
|
23996
|
+
if (((_b2 = input[_HI]) == null ? void 0 : _b2.length) === 0) {
|
|
23997
|
+
entries.HostId = [];
|
|
23998
|
+
}
|
|
23999
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
24000
|
+
const loc = `HostId.${key.substring(key.indexOf(".") + 1)}`;
|
|
24001
|
+
entries[loc] = value;
|
|
24002
|
+
});
|
|
24003
|
+
}
|
|
24004
|
+
if (input[_MR] != null) {
|
|
24005
|
+
entries[_MR] = input[_MR];
|
|
24006
|
+
}
|
|
24007
|
+
if (input[_NT] != null) {
|
|
24008
|
+
entries[_NT] = input[_NT];
|
|
24009
|
+
}
|
|
24010
|
+
return entries;
|
|
24011
|
+
}, "se_DescribeMacHostsRequest");
|
|
23956
24012
|
var se_DescribeManagedPrefixListsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
23957
24013
|
var _a2, _b2;
|
|
23958
24014
|
const entries = {};
|
|
@@ -43532,6 +43588,18 @@ var de_DescribeLockedSnapshotsResult = /* @__PURE__ */ __name((output, context)
|
|
|
43532
43588
|
}
|
|
43533
43589
|
return contents;
|
|
43534
43590
|
}, "de_DescribeLockedSnapshotsResult");
|
|
43591
|
+
var de_DescribeMacHostsResult = /* @__PURE__ */ __name((output, context) => {
|
|
43592
|
+
const contents = {};
|
|
43593
|
+
if (output.macHostSet === "") {
|
|
43594
|
+
contents[_MHa] = [];
|
|
43595
|
+
} else if (output[_mHS] != null && output[_mHS][_i] != null) {
|
|
43596
|
+
contents[_MHa] = de_MacHostList((0, import_smithy_client.getArrayIfSingleItem)(output[_mHS][_i]), context);
|
|
43597
|
+
}
|
|
43598
|
+
if (output[_nTe] != null) {
|
|
43599
|
+
contents[_NT] = (0, import_smithy_client.expectString)(output[_nTe]);
|
|
43600
|
+
}
|
|
43601
|
+
return contents;
|
|
43602
|
+
}, "de_DescribeMacHostsResult");
|
|
43535
43603
|
var de_DescribeManagedPrefixListsResult = /* @__PURE__ */ __name((output, context) => {
|
|
43536
43604
|
const contents = {};
|
|
43537
43605
|
if (output[_nTe] != null) {
|
|
@@ -50950,6 +51018,28 @@ var de_LockSnapshotResult = /* @__PURE__ */ __name((output, context) => {
|
|
|
50950
51018
|
}
|
|
50951
51019
|
return contents;
|
|
50952
51020
|
}, "de_LockSnapshotResult");
|
|
51021
|
+
var de_MacHost = /* @__PURE__ */ __name((output, context) => {
|
|
51022
|
+
const contents = {};
|
|
51023
|
+
if (output[_hI] != null) {
|
|
51024
|
+
contents[_HIo] = (0, import_smithy_client.expectString)(output[_hI]);
|
|
51025
|
+
}
|
|
51026
|
+
if (output.macOSLatestSupportedVersionSet === "") {
|
|
51027
|
+
contents[_MOSLSV] = [];
|
|
51028
|
+
} else if (output[_mOSLSVS] != null && output[_mOSLSVS][_i] != null) {
|
|
51029
|
+
contents[_MOSLSV] = de_MacOSVersionStringList((0, import_smithy_client.getArrayIfSingleItem)(output[_mOSLSVS][_i]), context);
|
|
51030
|
+
}
|
|
51031
|
+
return contents;
|
|
51032
|
+
}, "de_MacHost");
|
|
51033
|
+
var de_MacHostList = /* @__PURE__ */ __name((output, context) => {
|
|
51034
|
+
return (output || []).filter((e) => e != null).map((entry) => {
|
|
51035
|
+
return de_MacHost(entry, context);
|
|
51036
|
+
});
|
|
51037
|
+
}, "de_MacHostList");
|
|
51038
|
+
var de_MacOSVersionStringList = /* @__PURE__ */ __name((output, context) => {
|
|
51039
|
+
return (output || []).filter((e) => e != null).map((entry) => {
|
|
51040
|
+
return (0, import_smithy_client.expectString)(entry);
|
|
51041
|
+
});
|
|
51042
|
+
}, "de_MacOSVersionStringList");
|
|
50953
51043
|
var de_MaintenanceDetails = /* @__PURE__ */ __name((output, context) => {
|
|
50954
51044
|
const contents = {};
|
|
50955
51045
|
if (output[_pM] != null) {
|
|
@@ -59317,6 +59407,7 @@ var _DLTe = "DescribeLaunchTemplates";
|
|
|
59317
59407
|
var _DMA = "DescribeMovingAddresses";
|
|
59318
59408
|
var _DMGM = "DeregisteredMulticastGroupMembers";
|
|
59319
59409
|
var _DMGS = "DeregisteredMulticastGroupSources";
|
|
59410
|
+
var _DMH = "DescribeMacHosts";
|
|
59320
59411
|
var _DMPL = "DeleteManagedPrefixList";
|
|
59321
59412
|
var _DMPLe = "DescribeManagedPrefixLists";
|
|
59322
59413
|
var _DN = "DeviceName";
|
|
@@ -60162,6 +60253,7 @@ var _MFIA = "ModifyFpgaImageAttribute";
|
|
|
60162
60253
|
var _MG = "MulticastGroups";
|
|
60163
60254
|
var _MGBPVC = "MemoryGiBPerVCpu";
|
|
60164
60255
|
var _MH = "ModifyHosts";
|
|
60256
|
+
var _MHa = "MacHosts";
|
|
60165
60257
|
var _MI = "ModifyIpam";
|
|
60166
60258
|
var _MIA = "ModifyImageAttribute";
|
|
60167
60259
|
var _MIAo = "ModifyInstanceAttribute";
|
|
@@ -60191,6 +60283,7 @@ var _MNI = "MaximumNetworkInterfaces";
|
|
|
60191
60283
|
var _MNIA = "ModifyNetworkInterfaceAttribute";
|
|
60192
60284
|
var _MO = "MetadataOptions";
|
|
60193
60285
|
var _MOSLRG = "MemberOfServiceLinkedResourceGroup";
|
|
60286
|
+
var _MOSLSV = "MacOSLatestSupportedVersions";
|
|
60194
60287
|
var _MOa = "MaintenanceOptions";
|
|
60195
60288
|
var _MP = "MatchPaths";
|
|
60196
60289
|
var _MPDNO = "ModifyPrivateDnsNameOptions";
|
|
@@ -62046,6 +62139,7 @@ var _mE = "maxEntries";
|
|
|
62046
62139
|
var _mEI = "maximumEfaInterfaces";
|
|
62047
62140
|
var _mG = "multicastGroups";
|
|
62048
62141
|
var _mGBPVC = "memoryGiBPerVCpu";
|
|
62142
|
+
var _mHS = "macHostSet";
|
|
62049
62143
|
var _mI = "maximumIops";
|
|
62050
62144
|
var _mIe = "memoryInfo";
|
|
62051
62145
|
var _mMB = "memoryMiB";
|
|
@@ -62053,6 +62147,7 @@ var _mNC = "maximumNetworkCards";
|
|
|
62053
62147
|
var _mNI = "maximumNetworkInterfaces";
|
|
62054
62148
|
var _mO = "metadataOptions";
|
|
62055
62149
|
var _mOSLRG = "memberOfServiceLinkedResourceGroup";
|
|
62150
|
+
var _mOSLSVS = "macOSLatestSupportedVersionSet";
|
|
62056
62151
|
var _mOa = "maintenanceOptions";
|
|
62057
62152
|
var _mP = "maxPrice";
|
|
62058
62153
|
var _mPIOL = "mapPublicIpOnLaunch";
|
|
@@ -70507,6 +70602,23 @@ var _DescribeLockedSnapshotsCommand = class _DescribeLockedSnapshotsCommand exte
|
|
|
70507
70602
|
__name(_DescribeLockedSnapshotsCommand, "DescribeLockedSnapshotsCommand");
|
|
70508
70603
|
var DescribeLockedSnapshotsCommand = _DescribeLockedSnapshotsCommand;
|
|
70509
70604
|
|
|
70605
|
+
// src/commands/DescribeMacHostsCommand.ts
|
|
70606
|
+
|
|
70607
|
+
|
|
70608
|
+
|
|
70609
|
+
|
|
70610
|
+
var _DescribeMacHostsCommand = class _DescribeMacHostsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
70611
|
+
...commonParams
|
|
70612
|
+
}).m(function(Command, cs, config, o) {
|
|
70613
|
+
return [
|
|
70614
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
70615
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
70616
|
+
];
|
|
70617
|
+
}).s("AmazonEC2", "DescribeMacHosts", {}).n("EC2Client", "DescribeMacHostsCommand").f(void 0, void 0).ser(se_DescribeMacHostsCommand).de(de_DescribeMacHostsCommand).build() {
|
|
70618
|
+
};
|
|
70619
|
+
__name(_DescribeMacHostsCommand, "DescribeMacHostsCommand");
|
|
70620
|
+
var DescribeMacHostsCommand = _DescribeMacHostsCommand;
|
|
70621
|
+
|
|
70510
70622
|
// src/commands/DescribeManagedPrefixListsCommand.ts
|
|
70511
70623
|
|
|
70512
70624
|
|
|
@@ -76666,6 +76778,7 @@ var commands = {
|
|
|
76666
76778
|
DescribeLocalGatewayVirtualInterfaceGroupsCommand,
|
|
76667
76779
|
DescribeLocalGatewayVirtualInterfacesCommand,
|
|
76668
76780
|
DescribeLockedSnapshotsCommand,
|
|
76781
|
+
DescribeMacHostsCommand,
|
|
76669
76782
|
DescribeManagedPrefixListsCommand,
|
|
76670
76783
|
DescribeMovingAddressesCommand,
|
|
76671
76784
|
DescribeNatGatewaysCommand,
|
|
@@ -77214,6 +77327,10 @@ var paginateDescribeLocalGatewayVirtualInterfaces = (0, import_core.createPagina
|
|
|
77214
77327
|
|
|
77215
77328
|
var paginateDescribeLocalGateways = (0, import_core.createPaginator)(EC2Client, DescribeLocalGatewaysCommand, "NextToken", "NextToken", "MaxResults");
|
|
77216
77329
|
|
|
77330
|
+
// src/pagination/DescribeMacHostsPaginator.ts
|
|
77331
|
+
|
|
77332
|
+
var paginateDescribeMacHosts = (0, import_core.createPaginator)(EC2Client, DescribeMacHostsCommand, "NextToken", "NextToken", "MaxResults");
|
|
77333
|
+
|
|
77217
77334
|
// src/pagination/DescribeManagedPrefixListsPaginator.ts
|
|
77218
77335
|
|
|
77219
77336
|
var paginateDescribeManagedPrefixLists = (0, import_core.createPaginator)(EC2Client, DescribeManagedPrefixListsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -79735,6 +79852,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
79735
79852
|
DescribeLocalGatewayVirtualInterfacesCommand,
|
|
79736
79853
|
DescribeLocalGatewaysCommand,
|
|
79737
79854
|
DescribeLockedSnapshotsCommand,
|
|
79855
|
+
DescribeMacHostsCommand,
|
|
79738
79856
|
DescribeManagedPrefixListsCommand,
|
|
79739
79857
|
DescribeMovingAddressesCommand,
|
|
79740
79858
|
DescribeNatGatewaysCommand,
|
|
@@ -80111,6 +80229,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
80111
80229
|
paginateDescribeLocalGatewayVirtualInterfaceGroups,
|
|
80112
80230
|
paginateDescribeLocalGatewayVirtualInterfaces,
|
|
80113
80231
|
paginateDescribeLocalGateways,
|
|
80232
|
+
paginateDescribeMacHosts,
|
|
80114
80233
|
paginateDescribeManagedPrefixLists,
|
|
80115
80234
|
paginateDescribeMovingAddresses,
|
|
80116
80235
|
paginateDescribeNatGateways,
|
package/dist-es/EC2.js
CHANGED
|
@@ -291,6 +291,7 @@ import { DescribeLocalGatewaysCommand, } from "./commands/DescribeLocalGatewaysC
|
|
|
291
291
|
import { DescribeLocalGatewayVirtualInterfaceGroupsCommand, } from "./commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand";
|
|
292
292
|
import { DescribeLocalGatewayVirtualInterfacesCommand, } from "./commands/DescribeLocalGatewayVirtualInterfacesCommand";
|
|
293
293
|
import { DescribeLockedSnapshotsCommand, } from "./commands/DescribeLockedSnapshotsCommand";
|
|
294
|
+
import { DescribeMacHostsCommand, } from "./commands/DescribeMacHostsCommand";
|
|
294
295
|
import { DescribeManagedPrefixListsCommand, } from "./commands/DescribeManagedPrefixListsCommand";
|
|
295
296
|
import { DescribeMovingAddressesCommand, } from "./commands/DescribeMovingAddressesCommand";
|
|
296
297
|
import { DescribeNatGatewaysCommand, } from "./commands/DescribeNatGatewaysCommand";
|
|
@@ -908,6 +909,7 @@ const commands = {
|
|
|
908
909
|
DescribeLocalGatewayVirtualInterfaceGroupsCommand,
|
|
909
910
|
DescribeLocalGatewayVirtualInterfacesCommand,
|
|
910
911
|
DescribeLockedSnapshotsCommand,
|
|
912
|
+
DescribeMacHostsCommand,
|
|
911
913
|
DescribeManagedPrefixListsCommand,
|
|
912
914
|
DescribeMovingAddressesCommand,
|
|
913
915
|
DescribeNatGatewaysCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
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_DescribeMacHostsCommand, se_DescribeMacHostsCommand } from "../protocols/Aws_ec2";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeMacHostsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonEC2", "DescribeMacHosts", {})
|
|
19
|
+
.n("EC2Client", "DescribeMacHostsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DescribeMacHostsCommand)
|
|
22
|
+
.de(de_DescribeMacHostsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -290,6 +290,7 @@ export * from "./DescribeLocalGatewayVirtualInterfaceGroupsCommand";
|
|
|
290
290
|
export * from "./DescribeLocalGatewayVirtualInterfacesCommand";
|
|
291
291
|
export * from "./DescribeLocalGatewaysCommand";
|
|
292
292
|
export * from "./DescribeLockedSnapshotsCommand";
|
|
293
|
+
export * from "./DescribeMacHostsCommand";
|
|
293
294
|
export * from "./DescribeManagedPrefixListsCommand";
|
|
294
295
|
export * from "./DescribeMovingAddressesCommand";
|
|
295
296
|
export * from "./DescribeNatGatewaysCommand";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { DescribeMacHostsCommand, } from "../commands/DescribeMacHostsCommand";
|
|
3
|
+
import { EC2Client } from "../EC2Client";
|
|
4
|
+
export const paginateDescribeMacHosts = createPaginator(EC2Client, DescribeMacHostsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -52,6 +52,7 @@ export * from "./DescribeLocalGatewayRouteTablesPaginator";
|
|
|
52
52
|
export * from "./DescribeLocalGatewayVirtualInterfaceGroupsPaginator";
|
|
53
53
|
export * from "./DescribeLocalGatewayVirtualInterfacesPaginator";
|
|
54
54
|
export * from "./DescribeLocalGatewaysPaginator";
|
|
55
|
+
export * from "./DescribeMacHostsPaginator";
|
|
55
56
|
export * from "./DescribeManagedPrefixListsPaginator";
|
|
56
57
|
export * from "./DescribeMovingAddressesPaginator";
|
|
57
58
|
export * from "./DescribeNatGatewaysPaginator";
|
|
@@ -2923,6 +2923,16 @@ export const se_DescribeLockedSnapshotsCommand = async (input, context) => {
|
|
|
2923
2923
|
});
|
|
2924
2924
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2925
2925
|
};
|
|
2926
|
+
export const se_DescribeMacHostsCommand = async (input, context) => {
|
|
2927
|
+
const headers = SHARED_HEADERS;
|
|
2928
|
+
let body;
|
|
2929
|
+
body = buildFormUrlencodedString({
|
|
2930
|
+
...se_DescribeMacHostsRequest(input, context),
|
|
2931
|
+
[_A]: _DMH,
|
|
2932
|
+
[_V]: _,
|
|
2933
|
+
});
|
|
2934
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2935
|
+
};
|
|
2926
2936
|
export const se_DescribeManagedPrefixListsCommand = async (input, context) => {
|
|
2927
2937
|
const headers = SHARED_HEADERS;
|
|
2928
2938
|
let body;
|
|
@@ -9868,6 +9878,19 @@ export const de_DescribeLockedSnapshotsCommand = async (output, context) => {
|
|
|
9868
9878
|
};
|
|
9869
9879
|
return response;
|
|
9870
9880
|
};
|
|
9881
|
+
export const de_DescribeMacHostsCommand = async (output, context) => {
|
|
9882
|
+
if (output.statusCode >= 300) {
|
|
9883
|
+
return de_CommandError(output, context);
|
|
9884
|
+
}
|
|
9885
|
+
const data = await parseBody(output.body, context);
|
|
9886
|
+
let contents = {};
|
|
9887
|
+
contents = de_DescribeMacHostsResult(data, context);
|
|
9888
|
+
const response = {
|
|
9889
|
+
$metadata: deserializeMetadata(output),
|
|
9890
|
+
...contents,
|
|
9891
|
+
};
|
|
9892
|
+
return response;
|
|
9893
|
+
};
|
|
9871
9894
|
export const de_DescribeManagedPrefixListsCommand = async (output, context) => {
|
|
9872
9895
|
if (output.statusCode >= 300) {
|
|
9873
9896
|
return de_CommandError(output, context);
|
|
@@ -22352,6 +22375,36 @@ const se_DescribeLockedSnapshotsRequest = (input, context) => {
|
|
|
22352
22375
|
}
|
|
22353
22376
|
return entries;
|
|
22354
22377
|
};
|
|
22378
|
+
const se_DescribeMacHostsRequest = (input, context) => {
|
|
22379
|
+
const entries = {};
|
|
22380
|
+
if (input[_Fi] != null) {
|
|
22381
|
+
const memberEntries = se_FilterList(input[_Fi], context);
|
|
22382
|
+
if (input[_Fi]?.length === 0) {
|
|
22383
|
+
entries.Filter = [];
|
|
22384
|
+
}
|
|
22385
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
22386
|
+
const loc = `Filter.${key.substring(key.indexOf(".") + 1)}`;
|
|
22387
|
+
entries[loc] = value;
|
|
22388
|
+
});
|
|
22389
|
+
}
|
|
22390
|
+
if (input[_HI] != null) {
|
|
22391
|
+
const memberEntries = se_RequestHostIdList(input[_HI], context);
|
|
22392
|
+
if (input[_HI]?.length === 0) {
|
|
22393
|
+
entries.HostId = [];
|
|
22394
|
+
}
|
|
22395
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
22396
|
+
const loc = `HostId.${key.substring(key.indexOf(".") + 1)}`;
|
|
22397
|
+
entries[loc] = value;
|
|
22398
|
+
});
|
|
22399
|
+
}
|
|
22400
|
+
if (input[_MR] != null) {
|
|
22401
|
+
entries[_MR] = input[_MR];
|
|
22402
|
+
}
|
|
22403
|
+
if (input[_NT] != null) {
|
|
22404
|
+
entries[_NT] = input[_NT];
|
|
22405
|
+
}
|
|
22406
|
+
return entries;
|
|
22407
|
+
};
|
|
22355
22408
|
const se_DescribeManagedPrefixListsRequest = (input, context) => {
|
|
22356
22409
|
const entries = {};
|
|
22357
22410
|
if (input[_DRr] != null) {
|
|
@@ -42005,6 +42058,19 @@ const de_DescribeLockedSnapshotsResult = (output, context) => {
|
|
|
42005
42058
|
}
|
|
42006
42059
|
return contents;
|
|
42007
42060
|
};
|
|
42061
|
+
const de_DescribeMacHostsResult = (output, context) => {
|
|
42062
|
+
const contents = {};
|
|
42063
|
+
if (output.macHostSet === "") {
|
|
42064
|
+
contents[_MHa] = [];
|
|
42065
|
+
}
|
|
42066
|
+
else if (output[_mHS] != null && output[_mHS][_i] != null) {
|
|
42067
|
+
contents[_MHa] = de_MacHostList(__getArrayIfSingleItem(output[_mHS][_i]), context);
|
|
42068
|
+
}
|
|
42069
|
+
if (output[_nTe] != null) {
|
|
42070
|
+
contents[_NT] = __expectString(output[_nTe]);
|
|
42071
|
+
}
|
|
42072
|
+
return contents;
|
|
42073
|
+
};
|
|
42008
42074
|
const de_DescribeManagedPrefixListsResult = (output, context) => {
|
|
42009
42075
|
const contents = {};
|
|
42010
42076
|
if (output[_nTe] != null) {
|
|
@@ -49951,6 +50017,33 @@ const de_LockSnapshotResult = (output, context) => {
|
|
|
49951
50017
|
}
|
|
49952
50018
|
return contents;
|
|
49953
50019
|
};
|
|
50020
|
+
const de_MacHost = (output, context) => {
|
|
50021
|
+
const contents = {};
|
|
50022
|
+
if (output[_hI] != null) {
|
|
50023
|
+
contents[_HIo] = __expectString(output[_hI]);
|
|
50024
|
+
}
|
|
50025
|
+
if (output.macOSLatestSupportedVersionSet === "") {
|
|
50026
|
+
contents[_MOSLSV] = [];
|
|
50027
|
+
}
|
|
50028
|
+
else if (output[_mOSLSVS] != null && output[_mOSLSVS][_i] != null) {
|
|
50029
|
+
contents[_MOSLSV] = de_MacOSVersionStringList(__getArrayIfSingleItem(output[_mOSLSVS][_i]), context);
|
|
50030
|
+
}
|
|
50031
|
+
return contents;
|
|
50032
|
+
};
|
|
50033
|
+
const de_MacHostList = (output, context) => {
|
|
50034
|
+
return (output || [])
|
|
50035
|
+
.filter((e) => e != null)
|
|
50036
|
+
.map((entry) => {
|
|
50037
|
+
return de_MacHost(entry, context);
|
|
50038
|
+
});
|
|
50039
|
+
};
|
|
50040
|
+
const de_MacOSVersionStringList = (output, context) => {
|
|
50041
|
+
return (output || [])
|
|
50042
|
+
.filter((e) => e != null)
|
|
50043
|
+
.map((entry) => {
|
|
50044
|
+
return __expectString(entry);
|
|
50045
|
+
});
|
|
50046
|
+
};
|
|
49954
50047
|
const de_MaintenanceDetails = (output, context) => {
|
|
49955
50048
|
const contents = {};
|
|
49956
50049
|
if (output[_pM] != null) {
|
|
@@ -58887,6 +58980,7 @@ const _DLTe = "DescribeLaunchTemplates";
|
|
|
58887
58980
|
const _DMA = "DescribeMovingAddresses";
|
|
58888
58981
|
const _DMGM = "DeregisteredMulticastGroupMembers";
|
|
58889
58982
|
const _DMGS = "DeregisteredMulticastGroupSources";
|
|
58983
|
+
const _DMH = "DescribeMacHosts";
|
|
58890
58984
|
const _DMPL = "DeleteManagedPrefixList";
|
|
58891
58985
|
const _DMPLe = "DescribeManagedPrefixLists";
|
|
58892
58986
|
const _DN = "DeviceName";
|
|
@@ -59732,6 +59826,7 @@ const _MFIA = "ModifyFpgaImageAttribute";
|
|
|
59732
59826
|
const _MG = "MulticastGroups";
|
|
59733
59827
|
const _MGBPVC = "MemoryGiBPerVCpu";
|
|
59734
59828
|
const _MH = "ModifyHosts";
|
|
59829
|
+
const _MHa = "MacHosts";
|
|
59735
59830
|
const _MI = "ModifyIpam";
|
|
59736
59831
|
const _MIA = "ModifyImageAttribute";
|
|
59737
59832
|
const _MIAo = "ModifyInstanceAttribute";
|
|
@@ -59761,6 +59856,7 @@ const _MNI = "MaximumNetworkInterfaces";
|
|
|
59761
59856
|
const _MNIA = "ModifyNetworkInterfaceAttribute";
|
|
59762
59857
|
const _MO = "MetadataOptions";
|
|
59763
59858
|
const _MOSLRG = "MemberOfServiceLinkedResourceGroup";
|
|
59859
|
+
const _MOSLSV = "MacOSLatestSupportedVersions";
|
|
59764
59860
|
const _MOa = "MaintenanceOptions";
|
|
59765
59861
|
const _MP = "MatchPaths";
|
|
59766
59862
|
const _MPDNO = "ModifyPrivateDnsNameOptions";
|
|
@@ -61616,6 +61712,7 @@ const _mE = "maxEntries";
|
|
|
61616
61712
|
const _mEI = "maximumEfaInterfaces";
|
|
61617
61713
|
const _mG = "multicastGroups";
|
|
61618
61714
|
const _mGBPVC = "memoryGiBPerVCpu";
|
|
61715
|
+
const _mHS = "macHostSet";
|
|
61619
61716
|
const _mI = "maximumIops";
|
|
61620
61717
|
const _mIe = "memoryInfo";
|
|
61621
61718
|
const _mMB = "memoryMiB";
|
|
@@ -61623,6 +61720,7 @@ const _mNC = "maximumNetworkCards";
|
|
|
61623
61720
|
const _mNI = "maximumNetworkInterfaces";
|
|
61624
61721
|
const _mO = "metadataOptions";
|
|
61625
61722
|
const _mOSLRG = "memberOfServiceLinkedResourceGroup";
|
|
61723
|
+
const _mOSLSVS = "macOSLatestSupportedVersionSet";
|
|
61626
61724
|
const _mOa = "maintenanceOptions";
|
|
61627
61725
|
const _mP = "maxPrice";
|
|
61628
61726
|
const _mPIOL = "mapPublicIpOnLaunch";
|
package/dist-types/EC2.d.ts
CHANGED
|
@@ -291,6 +291,7 @@ import { DescribeLocalGatewaysCommandInput, DescribeLocalGatewaysCommandOutput }
|
|
|
291
291
|
import { DescribeLocalGatewayVirtualInterfaceGroupsCommandInput, DescribeLocalGatewayVirtualInterfaceGroupsCommandOutput } from "./commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand";
|
|
292
292
|
import { DescribeLocalGatewayVirtualInterfacesCommandInput, DescribeLocalGatewayVirtualInterfacesCommandOutput } from "./commands/DescribeLocalGatewayVirtualInterfacesCommand";
|
|
293
293
|
import { DescribeLockedSnapshotsCommandInput, DescribeLockedSnapshotsCommandOutput } from "./commands/DescribeLockedSnapshotsCommand";
|
|
294
|
+
import { DescribeMacHostsCommandInput, DescribeMacHostsCommandOutput } from "./commands/DescribeMacHostsCommand";
|
|
294
295
|
import { DescribeManagedPrefixListsCommandInput, DescribeManagedPrefixListsCommandOutput } from "./commands/DescribeManagedPrefixListsCommand";
|
|
295
296
|
import { DescribeMovingAddressesCommandInput, DescribeMovingAddressesCommandOutput } from "./commands/DescribeMovingAddressesCommand";
|
|
296
297
|
import { DescribeNatGatewaysCommandInput, DescribeNatGatewaysCommandOutput } from "./commands/DescribeNatGatewaysCommand";
|
|
@@ -2453,6 +2454,13 @@ export interface EC2 {
|
|
|
2453
2454
|
describeLockedSnapshots(args: DescribeLockedSnapshotsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLockedSnapshotsCommandOutput>;
|
|
2454
2455
|
describeLockedSnapshots(args: DescribeLockedSnapshotsCommandInput, cb: (err: any, data?: DescribeLockedSnapshotsCommandOutput) => void): void;
|
|
2455
2456
|
describeLockedSnapshots(args: DescribeLockedSnapshotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLockedSnapshotsCommandOutput) => void): void;
|
|
2457
|
+
/**
|
|
2458
|
+
* @see {@link DescribeMacHostsCommand}
|
|
2459
|
+
*/
|
|
2460
|
+
describeMacHosts(): Promise<DescribeMacHostsCommandOutput>;
|
|
2461
|
+
describeMacHosts(args: DescribeMacHostsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeMacHostsCommandOutput>;
|
|
2462
|
+
describeMacHosts(args: DescribeMacHostsCommandInput, cb: (err: any, data?: DescribeMacHostsCommandOutput) => void): void;
|
|
2463
|
+
describeMacHosts(args: DescribeMacHostsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMacHostsCommandOutput) => void): void;
|
|
2456
2464
|
/**
|
|
2457
2465
|
* @see {@link DescribeManagedPrefixListsCommand}
|
|
2458
2466
|
*/
|