@aws-sdk/client-emr 3.354.0 → 3.357.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/EMR.js +2 -0
- package/dist-cjs/commands/ListSupportedInstanceTypesCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/pagination/ListSupportedInstanceTypesPaginator.js +28 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +87 -21
- package/dist-es/EMR.js +2 -0
- package/dist-es/commands/ListSupportedInstanceTypesCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/pagination/ListSupportedInstanceTypesPaginator.js +24 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +71 -7
- package/dist-types/EMR.d.ts +7 -0
- package/dist-types/EMRClient.d.ts +4 -3
- package/dist-types/commands/ListSupportedInstanceTypesCommand.d.ts +97 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +97 -4
- package/dist-types/pagination/ListSupportedInstanceTypesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/EMR.d.ts +17 -0
- package/dist-types/ts3.4/EMRClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListSupportedInstanceTypesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +21 -0
- package/dist-types/ts3.4/pagination/ListSupportedInstanceTypesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +29 -29
package/README.md
CHANGED
|
@@ -476,6 +476,14 @@ ListStudioSessionMappings
|
|
|
476
476
|
|
|
477
477
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr/classes/liststudiosessionmappingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr/interfaces/liststudiosessionmappingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr/interfaces/liststudiosessionmappingscommandoutput.html)
|
|
478
478
|
|
|
479
|
+
</details>
|
|
480
|
+
<details>
|
|
481
|
+
<summary>
|
|
482
|
+
ListSupportedInstanceTypes
|
|
483
|
+
</summary>
|
|
484
|
+
|
|
485
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr/classes/listsupportedinstancetypescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr/interfaces/listsupportedinstancetypescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr/interfaces/listsupportedinstancetypescommandoutput.html)
|
|
486
|
+
|
|
479
487
|
</details>
|
|
480
488
|
<details>
|
|
481
489
|
<summary>
|
package/dist-cjs/EMR.js
CHANGED
|
@@ -36,6 +36,7 @@ const ListSecurityConfigurationsCommand_1 = require("./commands/ListSecurityConf
|
|
|
36
36
|
const ListStepsCommand_1 = require("./commands/ListStepsCommand");
|
|
37
37
|
const ListStudiosCommand_1 = require("./commands/ListStudiosCommand");
|
|
38
38
|
const ListStudioSessionMappingsCommand_1 = require("./commands/ListStudioSessionMappingsCommand");
|
|
39
|
+
const ListSupportedInstanceTypesCommand_1 = require("./commands/ListSupportedInstanceTypesCommand");
|
|
39
40
|
const ModifyClusterCommand_1 = require("./commands/ModifyClusterCommand");
|
|
40
41
|
const ModifyInstanceFleetCommand_1 = require("./commands/ModifyInstanceFleetCommand");
|
|
41
42
|
const ModifyInstanceGroupsCommand_1 = require("./commands/ModifyInstanceGroupsCommand");
|
|
@@ -91,6 +92,7 @@ const commands = {
|
|
|
91
92
|
ListStepsCommand: ListStepsCommand_1.ListStepsCommand,
|
|
92
93
|
ListStudiosCommand: ListStudiosCommand_1.ListStudiosCommand,
|
|
93
94
|
ListStudioSessionMappingsCommand: ListStudioSessionMappingsCommand_1.ListStudioSessionMappingsCommand,
|
|
95
|
+
ListSupportedInstanceTypesCommand: ListSupportedInstanceTypesCommand_1.ListSupportedInstanceTypesCommand,
|
|
94
96
|
ModifyClusterCommand: ModifyClusterCommand_1.ModifyClusterCommand,
|
|
95
97
|
ModifyInstanceFleetCommand: ModifyInstanceFleetCommand_1.ModifyInstanceFleetCommand,
|
|
96
98
|
ModifyInstanceGroupsCommand: ModifyInstanceGroupsCommand_1.ModifyInstanceGroupsCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSupportedInstanceTypesCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ListSupportedInstanceTypesCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListSupportedInstanceTypesCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "EMRClient";
|
|
28
|
+
const commandName = "ListSupportedInstanceTypesCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_ListSupportedInstanceTypesCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_ListSupportedInstanceTypesCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListSupportedInstanceTypesCommand = ListSupportedInstanceTypesCommand;
|
|
@@ -35,6 +35,7 @@ tslib_1.__exportStar(require("./ListSecurityConfigurationsCommand"), exports);
|
|
|
35
35
|
tslib_1.__exportStar(require("./ListStepsCommand"), exports);
|
|
36
36
|
tslib_1.__exportStar(require("./ListStudioSessionMappingsCommand"), exports);
|
|
37
37
|
tslib_1.__exportStar(require("./ListStudiosCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./ListSupportedInstanceTypesCommand"), exports);
|
|
38
39
|
tslib_1.__exportStar(require("./ModifyClusterCommand"), exports);
|
|
39
40
|
tslib_1.__exportStar(require("./ModifyInstanceFleetCommand"), exports);
|
|
40
41
|
tslib_1.__exportStar(require("./ModifyInstanceGroupsCommand"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListSupportedInstanceTypes = void 0;
|
|
4
|
+
const ListSupportedInstanceTypesCommand_1 = require("../commands/ListSupportedInstanceTypesCommand");
|
|
5
|
+
const EMRClient_1 = require("../EMRClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListSupportedInstanceTypesCommand_1.ListSupportedInstanceTypesCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListSupportedInstanceTypes(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
if (config.client instanceof EMRClient_1.EMRClient) {
|
|
16
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
throw new Error("Invalid client, expected EMR | EMRClient");
|
|
20
|
+
}
|
|
21
|
+
yield page;
|
|
22
|
+
const prevToken = token;
|
|
23
|
+
token = page.Marker;
|
|
24
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
+
}
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
exports.paginateListSupportedInstanceTypes = paginateListSupportedInstanceTypes;
|
|
@@ -13,3 +13,4 @@ tslib_1.__exportStar(require("./ListSecurityConfigurationsPaginator"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./ListStepsPaginator"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./ListStudioSessionMappingsPaginator"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./ListStudiosPaginator"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ListSupportedInstanceTypesPaginator"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateStudioSessionMappingCommand = exports.de_UpdateStudioCommand = exports.de_TerminateJobFlowsCommand = exports.de_StopNotebookExecutionCommand = exports.de_StartNotebookExecutionCommand = exports.de_SetVisibleToAllUsersCommand = void 0;
|
|
3
|
+
exports.se_StartNotebookExecutionCommand = exports.se_SetVisibleToAllUsersCommand = exports.se_SetTerminationProtectionCommand = exports.se_RunJobFlowCommand = exports.se_RemoveTagsCommand = exports.se_RemoveManagedScalingPolicyCommand = exports.se_RemoveAutoTerminationPolicyCommand = exports.se_RemoveAutoScalingPolicyCommand = exports.se_PutManagedScalingPolicyCommand = exports.se_PutBlockPublicAccessConfigurationCommand = exports.se_PutAutoTerminationPolicyCommand = exports.se_PutAutoScalingPolicyCommand = exports.se_ModifyInstanceGroupsCommand = exports.se_ModifyInstanceFleetCommand = exports.se_ModifyClusterCommand = exports.se_ListSupportedInstanceTypesCommand = exports.se_ListStudioSessionMappingsCommand = exports.se_ListStudiosCommand = exports.se_ListStepsCommand = exports.se_ListSecurityConfigurationsCommand = exports.se_ListReleaseLabelsCommand = exports.se_ListNotebookExecutionsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceGroupsCommand = exports.se_ListInstanceFleetsCommand = exports.se_ListClustersCommand = exports.se_ListBootstrapActionsCommand = exports.se_GetStudioSessionMappingCommand = exports.se_GetManagedScalingPolicyCommand = exports.se_GetClusterSessionCredentialsCommand = exports.se_GetBlockPublicAccessConfigurationCommand = exports.se_GetAutoTerminationPolicyCommand = exports.se_DescribeStudioCommand = exports.se_DescribeStepCommand = exports.se_DescribeSecurityConfigurationCommand = exports.se_DescribeReleaseLabelCommand = exports.se_DescribeNotebookExecutionCommand = exports.se_DescribeJobFlowsCommand = exports.se_DescribeClusterCommand = exports.se_DeleteStudioSessionMappingCommand = exports.se_DeleteStudioCommand = exports.se_DeleteSecurityConfigurationCommand = exports.se_CreateStudioSessionMappingCommand = exports.se_CreateStudioCommand = exports.se_CreateSecurityConfigurationCommand = exports.se_CancelStepsCommand = exports.se_AddTagsCommand = exports.se_AddJobFlowStepsCommand = exports.se_AddInstanceGroupsCommand = exports.se_AddInstanceFleetCommand = void 0;
|
|
4
|
+
exports.de_RemoveTagsCommand = exports.de_RemoveManagedScalingPolicyCommand = exports.de_RemoveAutoTerminationPolicyCommand = exports.de_RemoveAutoScalingPolicyCommand = exports.de_PutManagedScalingPolicyCommand = exports.de_PutBlockPublicAccessConfigurationCommand = exports.de_PutAutoTerminationPolicyCommand = exports.de_PutAutoScalingPolicyCommand = exports.de_ModifyInstanceGroupsCommand = exports.de_ModifyInstanceFleetCommand = exports.de_ModifyClusterCommand = exports.de_ListSupportedInstanceTypesCommand = exports.de_ListStudioSessionMappingsCommand = exports.de_ListStudiosCommand = exports.de_ListStepsCommand = exports.de_ListSecurityConfigurationsCommand = exports.de_ListReleaseLabelsCommand = exports.de_ListNotebookExecutionsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceGroupsCommand = exports.de_ListInstanceFleetsCommand = exports.de_ListClustersCommand = exports.de_ListBootstrapActionsCommand = exports.de_GetStudioSessionMappingCommand = exports.de_GetManagedScalingPolicyCommand = exports.de_GetClusterSessionCredentialsCommand = exports.de_GetBlockPublicAccessConfigurationCommand = exports.de_GetAutoTerminationPolicyCommand = exports.de_DescribeStudioCommand = exports.de_DescribeStepCommand = exports.de_DescribeSecurityConfigurationCommand = exports.de_DescribeReleaseLabelCommand = exports.de_DescribeNotebookExecutionCommand = exports.de_DescribeJobFlowsCommand = exports.de_DescribeClusterCommand = exports.de_DeleteStudioSessionMappingCommand = exports.de_DeleteStudioCommand = exports.de_DeleteSecurityConfigurationCommand = exports.de_CreateStudioSessionMappingCommand = exports.de_CreateStudioCommand = exports.de_CreateSecurityConfigurationCommand = exports.de_CancelStepsCommand = exports.de_AddTagsCommand = exports.de_AddJobFlowStepsCommand = exports.de_AddInstanceGroupsCommand = exports.de_AddInstanceFleetCommand = exports.se_UpdateStudioSessionMappingCommand = exports.se_UpdateStudioCommand = exports.se_TerminateJobFlowsCommand = exports.se_StopNotebookExecutionCommand = void 0;
|
|
5
|
+
exports.de_UpdateStudioSessionMappingCommand = exports.de_UpdateStudioCommand = exports.de_TerminateJobFlowsCommand = exports.de_StopNotebookExecutionCommand = exports.de_StartNotebookExecutionCommand = exports.de_SetVisibleToAllUsersCommand = exports.de_SetTerminationProtectionCommand = exports.de_RunJobFlowCommand = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const EMRServiceException_1 = require("../models/EMRServiceException");
|
|
@@ -245,6 +245,13 @@ const se_ListStudioSessionMappingsCommand = async (input, context) => {
|
|
|
245
245
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
246
|
};
|
|
247
247
|
exports.se_ListStudioSessionMappingsCommand = se_ListStudioSessionMappingsCommand;
|
|
248
|
+
const se_ListSupportedInstanceTypesCommand = async (input, context) => {
|
|
249
|
+
const headers = sharedHeaders("ListSupportedInstanceTypes");
|
|
250
|
+
let body;
|
|
251
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
252
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
+
};
|
|
254
|
+
exports.se_ListSupportedInstanceTypesCommand = se_ListSupportedInstanceTypesCommand;
|
|
248
255
|
const se_ModifyClusterCommand = async (input, context) => {
|
|
249
256
|
const headers = sharedHeaders("ModifyCluster");
|
|
250
257
|
let body;
|
|
@@ -628,7 +635,7 @@ const de_CreateStudioSessionMappingCommand = async (output, context) => {
|
|
|
628
635
|
if (output.statusCode >= 300) {
|
|
629
636
|
return de_CreateStudioSessionMappingCommandError(output, context);
|
|
630
637
|
}
|
|
631
|
-
await collectBody(output.body, context);
|
|
638
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
632
639
|
const response = {
|
|
633
640
|
$metadata: deserializeMetadata(output),
|
|
634
641
|
};
|
|
@@ -697,7 +704,7 @@ const de_DeleteStudioCommand = async (output, context) => {
|
|
|
697
704
|
if (output.statusCode >= 300) {
|
|
698
705
|
return de_DeleteStudioCommandError(output, context);
|
|
699
706
|
}
|
|
700
|
-
await collectBody(output.body, context);
|
|
707
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
701
708
|
const response = {
|
|
702
709
|
$metadata: deserializeMetadata(output),
|
|
703
710
|
};
|
|
@@ -730,7 +737,7 @@ const de_DeleteStudioSessionMappingCommand = async (output, context) => {
|
|
|
730
737
|
if (output.statusCode >= 300) {
|
|
731
738
|
return de_DeleteStudioSessionMappingCommandError(output, context);
|
|
732
739
|
}
|
|
733
|
-
await collectBody(output.body, context);
|
|
740
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
734
741
|
const response = {
|
|
735
742
|
$metadata: deserializeMetadata(output),
|
|
736
743
|
};
|
|
@@ -1566,6 +1573,42 @@ const de_ListStudioSessionMappingsCommandError = async (output, context) => {
|
|
|
1566
1573
|
});
|
|
1567
1574
|
}
|
|
1568
1575
|
};
|
|
1576
|
+
const de_ListSupportedInstanceTypesCommand = async (output, context) => {
|
|
1577
|
+
if (output.statusCode >= 300) {
|
|
1578
|
+
return de_ListSupportedInstanceTypesCommandError(output, context);
|
|
1579
|
+
}
|
|
1580
|
+
const data = await parseBody(output.body, context);
|
|
1581
|
+
let contents = {};
|
|
1582
|
+
contents = de_ListSupportedInstanceTypesOutput(data, context);
|
|
1583
|
+
const response = {
|
|
1584
|
+
$metadata: deserializeMetadata(output),
|
|
1585
|
+
...contents,
|
|
1586
|
+
};
|
|
1587
|
+
return response;
|
|
1588
|
+
};
|
|
1589
|
+
exports.de_ListSupportedInstanceTypesCommand = de_ListSupportedInstanceTypesCommand;
|
|
1590
|
+
const de_ListSupportedInstanceTypesCommandError = async (output, context) => {
|
|
1591
|
+
const parsedOutput = {
|
|
1592
|
+
...output,
|
|
1593
|
+
body: await parseErrorBody(output.body, context),
|
|
1594
|
+
};
|
|
1595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
+
switch (errorCode) {
|
|
1597
|
+
case "InternalServerException":
|
|
1598
|
+
case "com.amazonaws.emr#InternalServerException":
|
|
1599
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1600
|
+
case "InvalidRequestException":
|
|
1601
|
+
case "com.amazonaws.emr#InvalidRequestException":
|
|
1602
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1603
|
+
default:
|
|
1604
|
+
const parsedBody = parsedOutput.body;
|
|
1605
|
+
return throwDefaultError({
|
|
1606
|
+
output,
|
|
1607
|
+
parsedBody,
|
|
1608
|
+
errorCode,
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
};
|
|
1569
1612
|
const de_ModifyClusterCommand = async (output, context) => {
|
|
1570
1613
|
if (output.statusCode >= 300) {
|
|
1571
1614
|
return de_ModifyClusterCommandError(output, context);
|
|
@@ -1606,7 +1649,7 @@ const de_ModifyInstanceFleetCommand = async (output, context) => {
|
|
|
1606
1649
|
if (output.statusCode >= 300) {
|
|
1607
1650
|
return de_ModifyInstanceFleetCommandError(output, context);
|
|
1608
1651
|
}
|
|
1609
|
-
await collectBody(output.body, context);
|
|
1652
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1610
1653
|
const response = {
|
|
1611
1654
|
$metadata: deserializeMetadata(output),
|
|
1612
1655
|
};
|
|
@@ -1639,7 +1682,7 @@ const de_ModifyInstanceGroupsCommand = async (output, context) => {
|
|
|
1639
1682
|
if (output.statusCode >= 300) {
|
|
1640
1683
|
return de_ModifyInstanceGroupsCommandError(output, context);
|
|
1641
1684
|
}
|
|
1642
|
-
await collectBody(output.body, context);
|
|
1685
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1643
1686
|
const response = {
|
|
1644
1687
|
$metadata: deserializeMetadata(output),
|
|
1645
1688
|
};
|
|
@@ -1936,7 +1979,7 @@ const de_SetTerminationProtectionCommand = async (output, context) => {
|
|
|
1936
1979
|
if (output.statusCode >= 300) {
|
|
1937
1980
|
return de_SetTerminationProtectionCommandError(output, context);
|
|
1938
1981
|
}
|
|
1939
|
-
await collectBody(output.body, context);
|
|
1982
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1940
1983
|
const response = {
|
|
1941
1984
|
$metadata: deserializeMetadata(output),
|
|
1942
1985
|
};
|
|
@@ -1966,7 +2009,7 @@ const de_SetVisibleToAllUsersCommand = async (output, context) => {
|
|
|
1966
2009
|
if (output.statusCode >= 300) {
|
|
1967
2010
|
return de_SetVisibleToAllUsersCommandError(output, context);
|
|
1968
2011
|
}
|
|
1969
|
-
await collectBody(output.body, context);
|
|
2012
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1970
2013
|
const response = {
|
|
1971
2014
|
$metadata: deserializeMetadata(output),
|
|
1972
2015
|
};
|
|
@@ -2032,7 +2075,7 @@ const de_StopNotebookExecutionCommand = async (output, context) => {
|
|
|
2032
2075
|
if (output.statusCode >= 300) {
|
|
2033
2076
|
return de_StopNotebookExecutionCommandError(output, context);
|
|
2034
2077
|
}
|
|
2035
|
-
await collectBody(output.body, context);
|
|
2078
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2036
2079
|
const response = {
|
|
2037
2080
|
$metadata: deserializeMetadata(output),
|
|
2038
2081
|
};
|
|
@@ -2065,7 +2108,7 @@ const de_TerminateJobFlowsCommand = async (output, context) => {
|
|
|
2065
2108
|
if (output.statusCode >= 300) {
|
|
2066
2109
|
return de_TerminateJobFlowsCommandError(output, context);
|
|
2067
2110
|
}
|
|
2068
|
-
await collectBody(output.body, context);
|
|
2111
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2069
2112
|
const response = {
|
|
2070
2113
|
$metadata: deserializeMetadata(output),
|
|
2071
2114
|
};
|
|
@@ -2095,7 +2138,7 @@ const de_UpdateStudioCommand = async (output, context) => {
|
|
|
2095
2138
|
if (output.statusCode >= 300) {
|
|
2096
2139
|
return de_UpdateStudioCommandError(output, context);
|
|
2097
2140
|
}
|
|
2098
|
-
await collectBody(output.body, context);
|
|
2141
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2099
2142
|
const response = {
|
|
2100
2143
|
$metadata: deserializeMetadata(output),
|
|
2101
2144
|
};
|
|
@@ -2128,7 +2171,7 @@ const de_UpdateStudioSessionMappingCommand = async (output, context) => {
|
|
|
2128
2171
|
if (output.statusCode >= 300) {
|
|
2129
2172
|
return de_UpdateStudioSessionMappingCommandError(output, context);
|
|
2130
2173
|
}
|
|
2131
|
-
await collectBody(output.body, context);
|
|
2174
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2132
2175
|
const response = {
|
|
2133
2176
|
$metadata: deserializeMetadata(output),
|
|
2134
2177
|
};
|
|
@@ -2877,6 +2920,12 @@ const de_ListStudiosOutput = (output, context) => {
|
|
|
2877
2920
|
Studios: (_) => de_StudioSummaryList(_, context),
|
|
2878
2921
|
});
|
|
2879
2922
|
};
|
|
2923
|
+
const de_ListSupportedInstanceTypesOutput = (output, context) => {
|
|
2924
|
+
return (0, smithy_client_1.take)(output, {
|
|
2925
|
+
Marker: smithy_client_1.expectString,
|
|
2926
|
+
SupportedInstanceTypes: (_) => de_SupportedInstanceTypesList(_, context),
|
|
2927
|
+
});
|
|
2928
|
+
};
|
|
2880
2929
|
const de_NotebookExecution = (output, context) => {
|
|
2881
2930
|
return (0, smithy_client_1.take)(output, {
|
|
2882
2931
|
Arn: smithy_client_1.expectString,
|
|
@@ -3095,19 +3144,36 @@ const de_StudioSummaryList = (output, context) => {
|
|
|
3095
3144
|
});
|
|
3096
3145
|
return retVal;
|
|
3097
3146
|
};
|
|
3147
|
+
const de_SupportedInstanceType = (output, context) => {
|
|
3148
|
+
return (0, smithy_client_1.take)(output, {
|
|
3149
|
+
Architecture: smithy_client_1.expectString,
|
|
3150
|
+
EbsOptimizedAvailable: smithy_client_1.expectBoolean,
|
|
3151
|
+
EbsOptimizedByDefault: smithy_client_1.expectBoolean,
|
|
3152
|
+
EbsStorageOnly: smithy_client_1.expectBoolean,
|
|
3153
|
+
InstanceFamilyId: smithy_client_1.expectString,
|
|
3154
|
+
Is64BitsOnly: smithy_client_1.expectBoolean,
|
|
3155
|
+
MemoryGB: smithy_client_1.limitedParseFloat32,
|
|
3156
|
+
NumberOfDisks: smithy_client_1.expectInt32,
|
|
3157
|
+
StorageGB: smithy_client_1.expectInt32,
|
|
3158
|
+
Type: smithy_client_1.expectString,
|
|
3159
|
+
VCPU: smithy_client_1.expectInt32,
|
|
3160
|
+
});
|
|
3161
|
+
};
|
|
3162
|
+
const de_SupportedInstanceTypesList = (output, context) => {
|
|
3163
|
+
const retVal = (output || [])
|
|
3164
|
+
.filter((e) => e != null)
|
|
3165
|
+
.map((entry) => {
|
|
3166
|
+
return de_SupportedInstanceType(entry, context);
|
|
3167
|
+
});
|
|
3168
|
+
return retVal;
|
|
3169
|
+
};
|
|
3098
3170
|
const deserializeMetadata = (output) => ({
|
|
3099
3171
|
httpStatusCode: output.statusCode,
|
|
3100
3172
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3101
3173
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3102
3174
|
cfId: output.headers["x-amz-cf-id"],
|
|
3103
3175
|
});
|
|
3104
|
-
const
|
|
3105
|
-
if (streamBody instanceof Uint8Array) {
|
|
3106
|
-
return Promise.resolve(streamBody);
|
|
3107
|
-
}
|
|
3108
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3109
|
-
};
|
|
3110
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3176
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3111
3177
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(EMRServiceException_1.EMRServiceException);
|
|
3112
3178
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3113
3179
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
package/dist-es/EMR.js
CHANGED
|
@@ -33,6 +33,7 @@ import { ListSecurityConfigurationsCommand, } from "./commands/ListSecurityConfi
|
|
|
33
33
|
import { ListStepsCommand } from "./commands/ListStepsCommand";
|
|
34
34
|
import { ListStudiosCommand } from "./commands/ListStudiosCommand";
|
|
35
35
|
import { ListStudioSessionMappingsCommand, } from "./commands/ListStudioSessionMappingsCommand";
|
|
36
|
+
import { ListSupportedInstanceTypesCommand, } from "./commands/ListSupportedInstanceTypesCommand";
|
|
36
37
|
import { ModifyClusterCommand, } from "./commands/ModifyClusterCommand";
|
|
37
38
|
import { ModifyInstanceFleetCommand, } from "./commands/ModifyInstanceFleetCommand";
|
|
38
39
|
import { ModifyInstanceGroupsCommand, } from "./commands/ModifyInstanceGroupsCommand";
|
|
@@ -88,6 +89,7 @@ const commands = {
|
|
|
88
89
|
ListStepsCommand,
|
|
89
90
|
ListStudiosCommand,
|
|
90
91
|
ListStudioSessionMappingsCommand,
|
|
92
|
+
ListSupportedInstanceTypesCommand,
|
|
91
93
|
ModifyClusterCommand,
|
|
92
94
|
ModifyInstanceFleetCommand,
|
|
93
95
|
ModifyInstanceGroupsCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_ListSupportedInstanceTypesCommand, se_ListSupportedInstanceTypesCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListSupportedInstanceTypesCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListSupportedInstanceTypesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EMRClient";
|
|
25
|
+
const commandName = "ListSupportedInstanceTypesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ListSupportedInstanceTypesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ListSupportedInstanceTypesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -32,6 +32,7 @@ export * from "./ListSecurityConfigurationsCommand";
|
|
|
32
32
|
export * from "./ListStepsCommand";
|
|
33
33
|
export * from "./ListStudioSessionMappingsCommand";
|
|
34
34
|
export * from "./ListStudiosCommand";
|
|
35
|
+
export * from "./ListSupportedInstanceTypesCommand";
|
|
35
36
|
export * from "./ModifyClusterCommand";
|
|
36
37
|
export * from "./ModifyInstanceFleetCommand";
|
|
37
38
|
export * from "./ModifyInstanceGroupsCommand";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ListSupportedInstanceTypesCommand, } from "../commands/ListSupportedInstanceTypesCommand";
|
|
2
|
+
import { EMRClient } from "../EMRClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListSupportedInstanceTypesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListSupportedInstanceTypes(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
if (config.client instanceof EMRClient) {
|
|
13
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
throw new Error("Invalid client, expected EMR | EMRClient");
|
|
17
|
+
}
|
|
18
|
+
yield page;
|
|
19
|
+
const prevToken = token;
|
|
20
|
+
token = page.Marker;
|
|
21
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { EMRServiceException as __BaseException } from "../models/EMRServiceException";
|
|
4
4
|
import { InternalServerError, InternalServerException, InvalidRequestException, } from "../models/models_0";
|
|
@@ -206,6 +206,12 @@ export const se_ListStudioSessionMappingsCommand = async (input, context) => {
|
|
|
206
206
|
body = JSON.stringify(_json(input));
|
|
207
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
208
|
};
|
|
209
|
+
export const se_ListSupportedInstanceTypesCommand = async (input, context) => {
|
|
210
|
+
const headers = sharedHeaders("ListSupportedInstanceTypes");
|
|
211
|
+
let body;
|
|
212
|
+
body = JSON.stringify(_json(input));
|
|
213
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
|
+
};
|
|
209
215
|
export const se_ModifyClusterCommand = async (input, context) => {
|
|
210
216
|
const headers = sharedHeaders("ModifyCluster");
|
|
211
217
|
let body;
|
|
@@ -1474,6 +1480,41 @@ const de_ListStudioSessionMappingsCommandError = async (output, context) => {
|
|
|
1474
1480
|
});
|
|
1475
1481
|
}
|
|
1476
1482
|
};
|
|
1483
|
+
export const de_ListSupportedInstanceTypesCommand = async (output, context) => {
|
|
1484
|
+
if (output.statusCode >= 300) {
|
|
1485
|
+
return de_ListSupportedInstanceTypesCommandError(output, context);
|
|
1486
|
+
}
|
|
1487
|
+
const data = await parseBody(output.body, context);
|
|
1488
|
+
let contents = {};
|
|
1489
|
+
contents = de_ListSupportedInstanceTypesOutput(data, context);
|
|
1490
|
+
const response = {
|
|
1491
|
+
$metadata: deserializeMetadata(output),
|
|
1492
|
+
...contents,
|
|
1493
|
+
};
|
|
1494
|
+
return response;
|
|
1495
|
+
};
|
|
1496
|
+
const de_ListSupportedInstanceTypesCommandError = async (output, context) => {
|
|
1497
|
+
const parsedOutput = {
|
|
1498
|
+
...output,
|
|
1499
|
+
body: await parseErrorBody(output.body, context),
|
|
1500
|
+
};
|
|
1501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
+
switch (errorCode) {
|
|
1503
|
+
case "InternalServerException":
|
|
1504
|
+
case "com.amazonaws.emr#InternalServerException":
|
|
1505
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1506
|
+
case "InvalidRequestException":
|
|
1507
|
+
case "com.amazonaws.emr#InvalidRequestException":
|
|
1508
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1509
|
+
default:
|
|
1510
|
+
const parsedBody = parsedOutput.body;
|
|
1511
|
+
return throwDefaultError({
|
|
1512
|
+
output,
|
|
1513
|
+
parsedBody,
|
|
1514
|
+
errorCode,
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1477
1518
|
export const de_ModifyClusterCommand = async (output, context) => {
|
|
1478
1519
|
if (output.statusCode >= 300) {
|
|
1479
1520
|
return de_ModifyClusterCommandError(output, context);
|
|
@@ -2766,6 +2807,12 @@ const de_ListStudiosOutput = (output, context) => {
|
|
|
2766
2807
|
Studios: (_) => de_StudioSummaryList(_, context),
|
|
2767
2808
|
});
|
|
2768
2809
|
};
|
|
2810
|
+
const de_ListSupportedInstanceTypesOutput = (output, context) => {
|
|
2811
|
+
return take(output, {
|
|
2812
|
+
Marker: __expectString,
|
|
2813
|
+
SupportedInstanceTypes: (_) => de_SupportedInstanceTypesList(_, context),
|
|
2814
|
+
});
|
|
2815
|
+
};
|
|
2769
2816
|
const de_NotebookExecution = (output, context) => {
|
|
2770
2817
|
return take(output, {
|
|
2771
2818
|
Arn: __expectString,
|
|
@@ -2984,18 +3031,35 @@ const de_StudioSummaryList = (output, context) => {
|
|
|
2984
3031
|
});
|
|
2985
3032
|
return retVal;
|
|
2986
3033
|
};
|
|
3034
|
+
const de_SupportedInstanceType = (output, context) => {
|
|
3035
|
+
return take(output, {
|
|
3036
|
+
Architecture: __expectString,
|
|
3037
|
+
EbsOptimizedAvailable: __expectBoolean,
|
|
3038
|
+
EbsOptimizedByDefault: __expectBoolean,
|
|
3039
|
+
EbsStorageOnly: __expectBoolean,
|
|
3040
|
+
InstanceFamilyId: __expectString,
|
|
3041
|
+
Is64BitsOnly: __expectBoolean,
|
|
3042
|
+
MemoryGB: __limitedParseFloat32,
|
|
3043
|
+
NumberOfDisks: __expectInt32,
|
|
3044
|
+
StorageGB: __expectInt32,
|
|
3045
|
+
Type: __expectString,
|
|
3046
|
+
VCPU: __expectInt32,
|
|
3047
|
+
});
|
|
3048
|
+
};
|
|
3049
|
+
const de_SupportedInstanceTypesList = (output, context) => {
|
|
3050
|
+
const retVal = (output || [])
|
|
3051
|
+
.filter((e) => e != null)
|
|
3052
|
+
.map((entry) => {
|
|
3053
|
+
return de_SupportedInstanceType(entry, context);
|
|
3054
|
+
});
|
|
3055
|
+
return retVal;
|
|
3056
|
+
};
|
|
2987
3057
|
const deserializeMetadata = (output) => ({
|
|
2988
3058
|
httpStatusCode: output.statusCode,
|
|
2989
3059
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2990
3060
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2991
3061
|
cfId: output.headers["x-amz-cf-id"],
|
|
2992
3062
|
});
|
|
2993
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2994
|
-
if (streamBody instanceof Uint8Array) {
|
|
2995
|
-
return Promise.resolve(streamBody);
|
|
2996
|
-
}
|
|
2997
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2998
|
-
};
|
|
2999
3063
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3000
3064
|
const throwDefaultError = withBaseException(__BaseException);
|
|
3001
3065
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
package/dist-types/EMR.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { ListSecurityConfigurationsCommandInput, ListSecurityConfigurationsComma
|
|
|
33
33
|
import { ListStepsCommandInput, ListStepsCommandOutput } from "./commands/ListStepsCommand";
|
|
34
34
|
import { ListStudiosCommandInput, ListStudiosCommandOutput } from "./commands/ListStudiosCommand";
|
|
35
35
|
import { ListStudioSessionMappingsCommandInput, ListStudioSessionMappingsCommandOutput } from "./commands/ListStudioSessionMappingsCommand";
|
|
36
|
+
import { ListSupportedInstanceTypesCommandInput, ListSupportedInstanceTypesCommandOutput } from "./commands/ListSupportedInstanceTypesCommand";
|
|
36
37
|
import { ModifyClusterCommandInput, ModifyClusterCommandOutput } from "./commands/ModifyClusterCommand";
|
|
37
38
|
import { ModifyInstanceFleetCommandInput, ModifyInstanceFleetCommandOutput } from "./commands/ModifyInstanceFleetCommand";
|
|
38
39
|
import { ModifyInstanceGroupsCommandInput, ModifyInstanceGroupsCommandOutput } from "./commands/ModifyInstanceGroupsCommand";
|
|
@@ -258,6 +259,12 @@ export interface EMR {
|
|
|
258
259
|
listStudioSessionMappings(args: ListStudioSessionMappingsCommandInput, options?: __HttpHandlerOptions): Promise<ListStudioSessionMappingsCommandOutput>;
|
|
259
260
|
listStudioSessionMappings(args: ListStudioSessionMappingsCommandInput, cb: (err: any, data?: ListStudioSessionMappingsCommandOutput) => void): void;
|
|
260
261
|
listStudioSessionMappings(args: ListStudioSessionMappingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStudioSessionMappingsCommandOutput) => void): void;
|
|
262
|
+
/**
|
|
263
|
+
* @see {@link ListSupportedInstanceTypesCommand}
|
|
264
|
+
*/
|
|
265
|
+
listSupportedInstanceTypes(args: ListSupportedInstanceTypesCommandInput, options?: __HttpHandlerOptions): Promise<ListSupportedInstanceTypesCommandOutput>;
|
|
266
|
+
listSupportedInstanceTypes(args: ListSupportedInstanceTypesCommandInput, cb: (err: any, data?: ListSupportedInstanceTypesCommandOutput) => void): void;
|
|
267
|
+
listSupportedInstanceTypes(args: ListSupportedInstanceTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSupportedInstanceTypesCommandOutput) => void): void;
|
|
261
268
|
/**
|
|
262
269
|
* @see {@link ModifyClusterCommand}
|
|
263
270
|
*/
|
|
@@ -42,6 +42,7 @@ import { ListSecurityConfigurationsCommandInput, ListSecurityConfigurationsComma
|
|
|
42
42
|
import { ListStepsCommandInput, ListStepsCommandOutput } from "./commands/ListStepsCommand";
|
|
43
43
|
import { ListStudiosCommandInput, ListStudiosCommandOutput } from "./commands/ListStudiosCommand";
|
|
44
44
|
import { ListStudioSessionMappingsCommandInput, ListStudioSessionMappingsCommandOutput } from "./commands/ListStudioSessionMappingsCommand";
|
|
45
|
+
import { ListSupportedInstanceTypesCommandInput, ListSupportedInstanceTypesCommandOutput } from "./commands/ListSupportedInstanceTypesCommand";
|
|
45
46
|
import { ModifyClusterCommandInput, ModifyClusterCommandOutput } from "./commands/ModifyClusterCommand";
|
|
46
47
|
import { ModifyInstanceFleetCommandInput, ModifyInstanceFleetCommandOutput } from "./commands/ModifyInstanceFleetCommand";
|
|
47
48
|
import { ModifyInstanceGroupsCommandInput, ModifyInstanceGroupsCommandOutput } from "./commands/ModifyInstanceGroupsCommand";
|
|
@@ -66,11 +67,11 @@ export { __Client };
|
|
|
66
67
|
/**
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
69
|
-
export type ServiceInputTypes = AddInstanceFleetCommandInput | AddInstanceGroupsCommandInput | AddJobFlowStepsCommandInput | AddTagsCommandInput | CancelStepsCommandInput | CreateSecurityConfigurationCommandInput | CreateStudioCommandInput | CreateStudioSessionMappingCommandInput | DeleteSecurityConfigurationCommandInput | DeleteStudioCommandInput | DeleteStudioSessionMappingCommandInput | DescribeClusterCommandInput | DescribeJobFlowsCommandInput | DescribeNotebookExecutionCommandInput | DescribeReleaseLabelCommandInput | DescribeSecurityConfigurationCommandInput | DescribeStepCommandInput | DescribeStudioCommandInput | GetAutoTerminationPolicyCommandInput | GetBlockPublicAccessConfigurationCommandInput | GetClusterSessionCredentialsCommandInput | GetManagedScalingPolicyCommandInput | GetStudioSessionMappingCommandInput | ListBootstrapActionsCommandInput | ListClustersCommandInput | ListInstanceFleetsCommandInput | ListInstanceGroupsCommandInput | ListInstancesCommandInput | ListNotebookExecutionsCommandInput | ListReleaseLabelsCommandInput | ListSecurityConfigurationsCommandInput | ListStepsCommandInput | ListStudioSessionMappingsCommandInput | ListStudiosCommandInput | ModifyClusterCommandInput | ModifyInstanceFleetCommandInput | ModifyInstanceGroupsCommandInput | PutAutoScalingPolicyCommandInput | PutAutoTerminationPolicyCommandInput | PutBlockPublicAccessConfigurationCommandInput | PutManagedScalingPolicyCommandInput | RemoveAutoScalingPolicyCommandInput | RemoveAutoTerminationPolicyCommandInput | RemoveManagedScalingPolicyCommandInput | RemoveTagsCommandInput | RunJobFlowCommandInput | SetTerminationProtectionCommandInput | SetVisibleToAllUsersCommandInput | StartNotebookExecutionCommandInput | StopNotebookExecutionCommandInput | TerminateJobFlowsCommandInput | UpdateStudioCommandInput | UpdateStudioSessionMappingCommandInput;
|
|
70
|
+
export type ServiceInputTypes = AddInstanceFleetCommandInput | AddInstanceGroupsCommandInput | AddJobFlowStepsCommandInput | AddTagsCommandInput | CancelStepsCommandInput | CreateSecurityConfigurationCommandInput | CreateStudioCommandInput | CreateStudioSessionMappingCommandInput | DeleteSecurityConfigurationCommandInput | DeleteStudioCommandInput | DeleteStudioSessionMappingCommandInput | DescribeClusterCommandInput | DescribeJobFlowsCommandInput | DescribeNotebookExecutionCommandInput | DescribeReleaseLabelCommandInput | DescribeSecurityConfigurationCommandInput | DescribeStepCommandInput | DescribeStudioCommandInput | GetAutoTerminationPolicyCommandInput | GetBlockPublicAccessConfigurationCommandInput | GetClusterSessionCredentialsCommandInput | GetManagedScalingPolicyCommandInput | GetStudioSessionMappingCommandInput | ListBootstrapActionsCommandInput | ListClustersCommandInput | ListInstanceFleetsCommandInput | ListInstanceGroupsCommandInput | ListInstancesCommandInput | ListNotebookExecutionsCommandInput | ListReleaseLabelsCommandInput | ListSecurityConfigurationsCommandInput | ListStepsCommandInput | ListStudioSessionMappingsCommandInput | ListStudiosCommandInput | ListSupportedInstanceTypesCommandInput | ModifyClusterCommandInput | ModifyInstanceFleetCommandInput | ModifyInstanceGroupsCommandInput | PutAutoScalingPolicyCommandInput | PutAutoTerminationPolicyCommandInput | PutBlockPublicAccessConfigurationCommandInput | PutManagedScalingPolicyCommandInput | RemoveAutoScalingPolicyCommandInput | RemoveAutoTerminationPolicyCommandInput | RemoveManagedScalingPolicyCommandInput | RemoveTagsCommandInput | RunJobFlowCommandInput | SetTerminationProtectionCommandInput | SetVisibleToAllUsersCommandInput | StartNotebookExecutionCommandInput | StopNotebookExecutionCommandInput | TerminateJobFlowsCommandInput | UpdateStudioCommandInput | UpdateStudioSessionMappingCommandInput;
|
|
70
71
|
/**
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
73
|
-
export type ServiceOutputTypes = AddInstanceFleetCommandOutput | AddInstanceGroupsCommandOutput | AddJobFlowStepsCommandOutput | AddTagsCommandOutput | CancelStepsCommandOutput | CreateSecurityConfigurationCommandOutput | CreateStudioCommandOutput | CreateStudioSessionMappingCommandOutput | DeleteSecurityConfigurationCommandOutput | DeleteStudioCommandOutput | DeleteStudioSessionMappingCommandOutput | DescribeClusterCommandOutput | DescribeJobFlowsCommandOutput | DescribeNotebookExecutionCommandOutput | DescribeReleaseLabelCommandOutput | DescribeSecurityConfigurationCommandOutput | DescribeStepCommandOutput | DescribeStudioCommandOutput | GetAutoTerminationPolicyCommandOutput | GetBlockPublicAccessConfigurationCommandOutput | GetClusterSessionCredentialsCommandOutput | GetManagedScalingPolicyCommandOutput | GetStudioSessionMappingCommandOutput | ListBootstrapActionsCommandOutput | ListClustersCommandOutput | ListInstanceFleetsCommandOutput | ListInstanceGroupsCommandOutput | ListInstancesCommandOutput | ListNotebookExecutionsCommandOutput | ListReleaseLabelsCommandOutput | ListSecurityConfigurationsCommandOutput | ListStepsCommandOutput | ListStudioSessionMappingsCommandOutput | ListStudiosCommandOutput | ModifyClusterCommandOutput | ModifyInstanceFleetCommandOutput | ModifyInstanceGroupsCommandOutput | PutAutoScalingPolicyCommandOutput | PutAutoTerminationPolicyCommandOutput | PutBlockPublicAccessConfigurationCommandOutput | PutManagedScalingPolicyCommandOutput | RemoveAutoScalingPolicyCommandOutput | RemoveAutoTerminationPolicyCommandOutput | RemoveManagedScalingPolicyCommandOutput | RemoveTagsCommandOutput | RunJobFlowCommandOutput | SetTerminationProtectionCommandOutput | SetVisibleToAllUsersCommandOutput | StartNotebookExecutionCommandOutput | StopNotebookExecutionCommandOutput | TerminateJobFlowsCommandOutput | UpdateStudioCommandOutput | UpdateStudioSessionMappingCommandOutput;
|
|
74
|
+
export type ServiceOutputTypes = AddInstanceFleetCommandOutput | AddInstanceGroupsCommandOutput | AddJobFlowStepsCommandOutput | AddTagsCommandOutput | CancelStepsCommandOutput | CreateSecurityConfigurationCommandOutput | CreateStudioCommandOutput | CreateStudioSessionMappingCommandOutput | DeleteSecurityConfigurationCommandOutput | DeleteStudioCommandOutput | DeleteStudioSessionMappingCommandOutput | DescribeClusterCommandOutput | DescribeJobFlowsCommandOutput | DescribeNotebookExecutionCommandOutput | DescribeReleaseLabelCommandOutput | DescribeSecurityConfigurationCommandOutput | DescribeStepCommandOutput | DescribeStudioCommandOutput | GetAutoTerminationPolicyCommandOutput | GetBlockPublicAccessConfigurationCommandOutput | GetClusterSessionCredentialsCommandOutput | GetManagedScalingPolicyCommandOutput | GetStudioSessionMappingCommandOutput | ListBootstrapActionsCommandOutput | ListClustersCommandOutput | ListInstanceFleetsCommandOutput | ListInstanceGroupsCommandOutput | ListInstancesCommandOutput | ListNotebookExecutionsCommandOutput | ListReleaseLabelsCommandOutput | ListSecurityConfigurationsCommandOutput | ListStepsCommandOutput | ListStudioSessionMappingsCommandOutput | ListStudiosCommandOutput | ListSupportedInstanceTypesCommandOutput | ModifyClusterCommandOutput | ModifyInstanceFleetCommandOutput | ModifyInstanceGroupsCommandOutput | PutAutoScalingPolicyCommandOutput | PutAutoTerminationPolicyCommandOutput | PutBlockPublicAccessConfigurationCommandOutput | PutManagedScalingPolicyCommandOutput | RemoveAutoScalingPolicyCommandOutput | RemoveAutoTerminationPolicyCommandOutput | RemoveManagedScalingPolicyCommandOutput | RemoveTagsCommandOutput | RunJobFlowCommandOutput | SetTerminationProtectionCommandOutput | SetVisibleToAllUsersCommandOutput | StartNotebookExecutionCommandOutput | StopNotebookExecutionCommandOutput | TerminateJobFlowsCommandOutput | UpdateStudioCommandOutput | UpdateStudioSessionMappingCommandOutput;
|
|
74
75
|
/**
|
|
75
76
|
* @public
|
|
76
77
|
*/
|
|
@@ -126,7 +127,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
126
127
|
*/
|
|
127
128
|
runtime?: string;
|
|
128
129
|
/**
|
|
129
|
-
* Disable
|
|
130
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
130
131
|
* trait of an operation.
|
|
131
132
|
*/
|
|
132
133
|
disableHostPrefix?: boolean;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { EMRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRClient";
|
|
5
|
+
import { ListSupportedInstanceTypesInput, ListSupportedInstanceTypesOutput } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListSupportedInstanceTypesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListSupportedInstanceTypesCommandInput extends ListSupportedInstanceTypesInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListSupportedInstanceTypesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListSupportedInstanceTypesCommandOutput extends ListSupportedInstanceTypesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>A list of the instance types that Amazon EMR supports. You can filter the
|
|
27
|
+
* list by Amazon Web Services Region and Amazon EMR release. </p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { EMRClient, ListSupportedInstanceTypesCommand } from "@aws-sdk/client-emr"; // ES Modules import
|
|
32
|
+
* // const { EMRClient, ListSupportedInstanceTypesCommand } = require("@aws-sdk/client-emr"); // CommonJS import
|
|
33
|
+
* const client = new EMRClient(config);
|
|
34
|
+
* const input = { // ListSupportedInstanceTypesInput
|
|
35
|
+
* ReleaseLabel: "STRING_VALUE", // required
|
|
36
|
+
* Marker: "STRING_VALUE",
|
|
37
|
+
* };
|
|
38
|
+
* const command = new ListSupportedInstanceTypesCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // ListSupportedInstanceTypesOutput
|
|
41
|
+
* // SupportedInstanceTypes: [ // SupportedInstanceTypesList
|
|
42
|
+
* // { // SupportedInstanceType
|
|
43
|
+
* // Type: "STRING_VALUE",
|
|
44
|
+
* // MemoryGB: Number("float"),
|
|
45
|
+
* // StorageGB: Number("int"),
|
|
46
|
+
* // VCPU: Number("int"),
|
|
47
|
+
* // Is64BitsOnly: true || false,
|
|
48
|
+
* // InstanceFamilyId: "STRING_VALUE",
|
|
49
|
+
* // EbsOptimizedAvailable: true || false,
|
|
50
|
+
* // EbsOptimizedByDefault: true || false,
|
|
51
|
+
* // NumberOfDisks: Number("int"),
|
|
52
|
+
* // EbsStorageOnly: true || false,
|
|
53
|
+
* // Architecture: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // Marker: "STRING_VALUE",
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param ListSupportedInstanceTypesCommandInput - {@link ListSupportedInstanceTypesCommandInput}
|
|
62
|
+
* @returns {@link ListSupportedInstanceTypesCommandOutput}
|
|
63
|
+
* @see {@link ListSupportedInstanceTypesCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link ListSupportedInstanceTypesCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link EMRClientResolvedConfig | config} for EMRClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerException} (server fault)
|
|
68
|
+
* <p>This exception occurs when there is an internal failure in the Amazon EMR
|
|
69
|
+
* service.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
72
|
+
* <p>This exception occurs when there is something wrong with user input.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link EMRServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from EMR service.</p>
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
export declare class ListSupportedInstanceTypesCommand extends $Command<ListSupportedInstanceTypesCommandInput, ListSupportedInstanceTypesCommandOutput, EMRClientResolvedConfig> {
|
|
79
|
+
readonly input: ListSupportedInstanceTypesCommandInput;
|
|
80
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
81
|
+
/**
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
constructor(input: ListSupportedInstanceTypesCommandInput);
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EMRClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListSupportedInstanceTypesCommandInput, ListSupportedInstanceTypesCommandOutput>;
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
private serialize;
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
private deserialize;
|
|
97
|
+
}
|
|
@@ -32,6 +32,7 @@ export * from "./ListSecurityConfigurationsCommand";
|
|
|
32
32
|
export * from "./ListStepsCommand";
|
|
33
33
|
export * from "./ListStudioSessionMappingsCommand";
|
|
34
34
|
export * from "./ListStudiosCommand";
|
|
35
|
+
export * from "./ListSupportedInstanceTypesCommand";
|
|
35
36
|
export * from "./ModifyClusterCommand";
|
|
36
37
|
export * from "./ModifyInstanceFleetCommand";
|
|
37
38
|
export * from "./ModifyInstanceGroupsCommand";
|
|
@@ -262,10 +262,9 @@ export interface SpotProvisioningSpecification {
|
|
|
262
262
|
*/
|
|
263
263
|
BlockDurationMinutes?: number;
|
|
264
264
|
/**
|
|
265
|
-
* <p>Specifies
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
* </note>
|
|
265
|
+
* <p> Specifies the strategy to use in launching Spot Instance fleets. Currently, the only
|
|
266
|
+
* option is capacity-optimized (the default), which launches instances from Spot Instance
|
|
267
|
+
* pools with optimal capacity for the number of instances that are launching. </p>
|
|
269
268
|
*/
|
|
270
269
|
AllocationStrategy?: SpotProvisioningAllocationStrategy | string;
|
|
271
270
|
}
|
|
@@ -4123,6 +4122,100 @@ export interface ListStudioSessionMappingsOutput {
|
|
|
4123
4122
|
*/
|
|
4124
4123
|
Marker?: string;
|
|
4125
4124
|
}
|
|
4125
|
+
/**
|
|
4126
|
+
* @public
|
|
4127
|
+
*/
|
|
4128
|
+
export interface ListSupportedInstanceTypesInput {
|
|
4129
|
+
/**
|
|
4130
|
+
* <p>The Amazon EMR release label determines the <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-app-versions-6.x.html">versions of open-source
|
|
4131
|
+
* application packages</a> that Amazon EMR has installed on the cluster.
|
|
4132
|
+
* Release labels are in the format <code>emr-x.x.x</code>, where x.x.x is an Amazon EMR release number such as <code>emr-6.10.0</code>. For more information about Amazon EMR releases and their included application versions and features, see the
|
|
4133
|
+
* <i>
|
|
4134
|
+
* <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-release-components.html">Amazon EMR Release
|
|
4135
|
+
* Guide</a>
|
|
4136
|
+
* </i>.</p>
|
|
4137
|
+
*/
|
|
4138
|
+
ReleaseLabel: string | undefined;
|
|
4139
|
+
/**
|
|
4140
|
+
* <p>The pagination token that marks the next set of results to retrieve.</p>
|
|
4141
|
+
*/
|
|
4142
|
+
Marker?: string;
|
|
4143
|
+
}
|
|
4144
|
+
/**
|
|
4145
|
+
* @public
|
|
4146
|
+
* <p>An instance type that the specified Amazon EMR release supports.</p>
|
|
4147
|
+
*/
|
|
4148
|
+
export interface SupportedInstanceType {
|
|
4149
|
+
/**
|
|
4150
|
+
* <p>The <a href="http://aws.amazon.com/ec2/instance-types/">Amazon EC2 instance
|
|
4151
|
+
* type</a>, for example <code>m5.xlarge</code>, of the
|
|
4152
|
+
* <code>SupportedInstanceType</code>.</p>
|
|
4153
|
+
*/
|
|
4154
|
+
Type?: string;
|
|
4155
|
+
/**
|
|
4156
|
+
* <p>The amount of memory that is available to Amazon EMR from the <code>SupportedInstanceType</code>. The kernel and hypervisor
|
|
4157
|
+
* software consume some memory, so this value might be lower than the overall memory for the
|
|
4158
|
+
* instance type.</p>
|
|
4159
|
+
*/
|
|
4160
|
+
MemoryGB?: number;
|
|
4161
|
+
/**
|
|
4162
|
+
* <p>
|
|
4163
|
+
* <code>StorageGB</code> represents the storage capacity of the
|
|
4164
|
+
* <code>SupportedInstanceType</code>. This value is <code>0</code> for Amazon EBS-only instance types.</p>
|
|
4165
|
+
*/
|
|
4166
|
+
StorageGB?: number;
|
|
4167
|
+
/**
|
|
4168
|
+
* <p>The number of vCPUs available for the <code>SupportedInstanceType</code>.</p>
|
|
4169
|
+
*/
|
|
4170
|
+
VCPU?: number;
|
|
4171
|
+
/**
|
|
4172
|
+
* <p>Indicates whether the <code>SupportedInstanceType</code> only supports 64-bit
|
|
4173
|
+
* architecture.</p>
|
|
4174
|
+
*/
|
|
4175
|
+
Is64BitsOnly?: boolean;
|
|
4176
|
+
/**
|
|
4177
|
+
* <p>The Amazon EC2 family and generation for the
|
|
4178
|
+
* <code>SupportedInstanceType</code>.</p>
|
|
4179
|
+
*/
|
|
4180
|
+
InstanceFamilyId?: string;
|
|
4181
|
+
/**
|
|
4182
|
+
* <p>Indicates whether the <code>SupportedInstanceType</code> supports Amazon EBS
|
|
4183
|
+
* optimization.</p>
|
|
4184
|
+
*/
|
|
4185
|
+
EbsOptimizedAvailable?: boolean;
|
|
4186
|
+
/**
|
|
4187
|
+
* <p>Indicates whether the <code>SupportedInstanceType</code> uses Amazon EBS
|
|
4188
|
+
* optimization by default.</p>
|
|
4189
|
+
*/
|
|
4190
|
+
EbsOptimizedByDefault?: boolean;
|
|
4191
|
+
/**
|
|
4192
|
+
* <p>Number of disks for the <code>SupportedInstanceType</code>. This value is <code>0</code>
|
|
4193
|
+
* for Amazon EBS-only instance types.</p>
|
|
4194
|
+
*/
|
|
4195
|
+
NumberOfDisks?: number;
|
|
4196
|
+
/**
|
|
4197
|
+
* <p>Indicates whether the <code>SupportedInstanceType</code> only supports Amazon EBS.</p>
|
|
4198
|
+
*/
|
|
4199
|
+
EbsStorageOnly?: boolean;
|
|
4200
|
+
/**
|
|
4201
|
+
* <p>The CPU architecture, for example <code>X86_64</code> or <code>AARCH64</code>.</p>
|
|
4202
|
+
*/
|
|
4203
|
+
Architecture?: string;
|
|
4204
|
+
}
|
|
4205
|
+
/**
|
|
4206
|
+
* @public
|
|
4207
|
+
*/
|
|
4208
|
+
export interface ListSupportedInstanceTypesOutput {
|
|
4209
|
+
/**
|
|
4210
|
+
* <p>The list of instance types that the release specified in
|
|
4211
|
+
* <code>ListSupportedInstanceTypesInput$ReleaseLabel</code> supports, filtered by Amazon Web Services Region.</p>
|
|
4212
|
+
*/
|
|
4213
|
+
SupportedInstanceTypes?: SupportedInstanceType[];
|
|
4214
|
+
/**
|
|
4215
|
+
* <p>The pagination token that marks the next set of results to retrieve.</p>
|
|
4216
|
+
*/
|
|
4217
|
+
Marker?: string;
|
|
4218
|
+
}
|
|
4126
4219
|
/**
|
|
4127
4220
|
* @public
|
|
4128
4221
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { ListSupportedInstanceTypesCommandInput, ListSupportedInstanceTypesCommandOutput } from "../commands/ListSupportedInstanceTypesCommand";
|
|
3
|
+
import { EMRPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateListSupportedInstanceTypes(config: EMRPaginationConfiguration, input: ListSupportedInstanceTypesCommandInput, ...additionalArguments: any): Paginator<ListSupportedInstanceTypesCommandOutput>;
|
|
@@ -34,6 +34,7 @@ import { ListSecurityConfigurationsCommandInput, ListSecurityConfigurationsComma
|
|
|
34
34
|
import { ListStepsCommandInput, ListStepsCommandOutput } from "../commands/ListStepsCommand";
|
|
35
35
|
import { ListStudiosCommandInput, ListStudiosCommandOutput } from "../commands/ListStudiosCommand";
|
|
36
36
|
import { ListStudioSessionMappingsCommandInput, ListStudioSessionMappingsCommandOutput } from "../commands/ListStudioSessionMappingsCommand";
|
|
37
|
+
import { ListSupportedInstanceTypesCommandInput, ListSupportedInstanceTypesCommandOutput } from "../commands/ListSupportedInstanceTypesCommand";
|
|
37
38
|
import { ModifyClusterCommandInput, ModifyClusterCommandOutput } from "../commands/ModifyClusterCommand";
|
|
38
39
|
import { ModifyInstanceFleetCommandInput, ModifyInstanceFleetCommandOutput } from "../commands/ModifyInstanceFleetCommand";
|
|
39
40
|
import { ModifyInstanceGroupsCommandInput, ModifyInstanceGroupsCommandOutput } from "../commands/ModifyInstanceGroupsCommand";
|
|
@@ -189,6 +190,10 @@ export declare const se_ListStudiosCommand: (input: ListStudiosCommandInput, con
|
|
|
189
190
|
* serializeAws_json1_1ListStudioSessionMappingsCommand
|
|
190
191
|
*/
|
|
191
192
|
export declare const se_ListStudioSessionMappingsCommand: (input: ListStudioSessionMappingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
193
|
+
/**
|
|
194
|
+
* serializeAws_json1_1ListSupportedInstanceTypesCommand
|
|
195
|
+
*/
|
|
196
|
+
export declare const se_ListSupportedInstanceTypesCommand: (input: ListSupportedInstanceTypesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
192
197
|
/**
|
|
193
198
|
* serializeAws_json1_1ModifyClusterCommand
|
|
194
199
|
*/
|
|
@@ -401,6 +406,10 @@ export declare const de_ListStudiosCommand: (output: __HttpResponse, context: __
|
|
|
401
406
|
* deserializeAws_json1_1ListStudioSessionMappingsCommand
|
|
402
407
|
*/
|
|
403
408
|
export declare const de_ListStudioSessionMappingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListStudioSessionMappingsCommandOutput>;
|
|
409
|
+
/**
|
|
410
|
+
* deserializeAws_json1_1ListSupportedInstanceTypesCommand
|
|
411
|
+
*/
|
|
412
|
+
export declare const de_ListSupportedInstanceTypesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSupportedInstanceTypesCommandOutput>;
|
|
404
413
|
/**
|
|
405
414
|
* deserializeAws_json1_1ModifyClusterCommand
|
|
406
415
|
*/
|
|
@@ -135,6 +135,10 @@ import {
|
|
|
135
135
|
ListStudioSessionMappingsCommandInput,
|
|
136
136
|
ListStudioSessionMappingsCommandOutput,
|
|
137
137
|
} from "./commands/ListStudioSessionMappingsCommand";
|
|
138
|
+
import {
|
|
139
|
+
ListSupportedInstanceTypesCommandInput,
|
|
140
|
+
ListSupportedInstanceTypesCommandOutput,
|
|
141
|
+
} from "./commands/ListSupportedInstanceTypesCommand";
|
|
138
142
|
import {
|
|
139
143
|
ModifyClusterCommandInput,
|
|
140
144
|
ModifyClusterCommandOutput,
|
|
@@ -661,6 +665,19 @@ export interface EMR {
|
|
|
661
665
|
options: __HttpHandlerOptions,
|
|
662
666
|
cb: (err: any, data?: ListStudioSessionMappingsCommandOutput) => void
|
|
663
667
|
): void;
|
|
668
|
+
listSupportedInstanceTypes(
|
|
669
|
+
args: ListSupportedInstanceTypesCommandInput,
|
|
670
|
+
options?: __HttpHandlerOptions
|
|
671
|
+
): Promise<ListSupportedInstanceTypesCommandOutput>;
|
|
672
|
+
listSupportedInstanceTypes(
|
|
673
|
+
args: ListSupportedInstanceTypesCommandInput,
|
|
674
|
+
cb: (err: any, data?: ListSupportedInstanceTypesCommandOutput) => void
|
|
675
|
+
): void;
|
|
676
|
+
listSupportedInstanceTypes(
|
|
677
|
+
args: ListSupportedInstanceTypesCommandInput,
|
|
678
|
+
options: __HttpHandlerOptions,
|
|
679
|
+
cb: (err: any, data?: ListSupportedInstanceTypesCommandOutput) => void
|
|
680
|
+
): void;
|
|
664
681
|
modifyCluster(
|
|
665
682
|
args: ModifyClusterCommandInput,
|
|
666
683
|
options?: __HttpHandlerOptions
|
|
@@ -182,6 +182,10 @@ import {
|
|
|
182
182
|
ListStudioSessionMappingsCommandInput,
|
|
183
183
|
ListStudioSessionMappingsCommandOutput,
|
|
184
184
|
} from "./commands/ListStudioSessionMappingsCommand";
|
|
185
|
+
import {
|
|
186
|
+
ListSupportedInstanceTypesCommandInput,
|
|
187
|
+
ListSupportedInstanceTypesCommandOutput,
|
|
188
|
+
} from "./commands/ListSupportedInstanceTypesCommand";
|
|
185
189
|
import {
|
|
186
190
|
ModifyClusterCommandInput,
|
|
187
191
|
ModifyClusterCommandOutput,
|
|
@@ -299,6 +303,7 @@ export type ServiceInputTypes =
|
|
|
299
303
|
| ListStepsCommandInput
|
|
300
304
|
| ListStudioSessionMappingsCommandInput
|
|
301
305
|
| ListStudiosCommandInput
|
|
306
|
+
| ListSupportedInstanceTypesCommandInput
|
|
302
307
|
| ModifyClusterCommandInput
|
|
303
308
|
| ModifyInstanceFleetCommandInput
|
|
304
309
|
| ModifyInstanceGroupsCommandInput
|
|
@@ -353,6 +358,7 @@ export type ServiceOutputTypes =
|
|
|
353
358
|
| ListStepsCommandOutput
|
|
354
359
|
| ListStudioSessionMappingsCommandOutput
|
|
355
360
|
| ListStudiosCommandOutput
|
|
361
|
+
| ListSupportedInstanceTypesCommandOutput
|
|
356
362
|
| ModifyClusterCommandOutput
|
|
357
363
|
| ModifyInstanceFleetCommandOutput
|
|
358
364
|
| ModifyInstanceGroupsCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
EMRClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../EMRClient";
|
|
14
|
+
import {
|
|
15
|
+
ListSupportedInstanceTypesInput,
|
|
16
|
+
ListSupportedInstanceTypesOutput,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface ListSupportedInstanceTypesCommandInput
|
|
20
|
+
extends ListSupportedInstanceTypesInput {}
|
|
21
|
+
export interface ListSupportedInstanceTypesCommandOutput
|
|
22
|
+
extends ListSupportedInstanceTypesOutput,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class ListSupportedInstanceTypesCommand extends $Command<
|
|
25
|
+
ListSupportedInstanceTypesCommandInput,
|
|
26
|
+
ListSupportedInstanceTypesCommandOutput,
|
|
27
|
+
EMRClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: ListSupportedInstanceTypesCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: ListSupportedInstanceTypesCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: EMRClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
ListSupportedInstanceTypesCommandInput,
|
|
38
|
+
ListSupportedInstanceTypesCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -32,6 +32,7 @@ export * from "./ListSecurityConfigurationsCommand";
|
|
|
32
32
|
export * from "./ListStepsCommand";
|
|
33
33
|
export * from "./ListStudioSessionMappingsCommand";
|
|
34
34
|
export * from "./ListStudiosCommand";
|
|
35
|
+
export * from "./ListSupportedInstanceTypesCommand";
|
|
35
36
|
export * from "./ModifyClusterCommand";
|
|
36
37
|
export * from "./ModifyInstanceFleetCommand";
|
|
37
38
|
export * from "./ModifyInstanceGroupsCommand";
|
|
@@ -1141,6 +1141,27 @@ export interface ListStudioSessionMappingsOutput {
|
|
|
1141
1141
|
SessionMappings?: SessionMappingSummary[];
|
|
1142
1142
|
Marker?: string;
|
|
1143
1143
|
}
|
|
1144
|
+
export interface ListSupportedInstanceTypesInput {
|
|
1145
|
+
ReleaseLabel: string | undefined;
|
|
1146
|
+
Marker?: string;
|
|
1147
|
+
}
|
|
1148
|
+
export interface SupportedInstanceType {
|
|
1149
|
+
Type?: string;
|
|
1150
|
+
MemoryGB?: number;
|
|
1151
|
+
StorageGB?: number;
|
|
1152
|
+
VCPU?: number;
|
|
1153
|
+
Is64BitsOnly?: boolean;
|
|
1154
|
+
InstanceFamilyId?: string;
|
|
1155
|
+
EbsOptimizedAvailable?: boolean;
|
|
1156
|
+
EbsOptimizedByDefault?: boolean;
|
|
1157
|
+
NumberOfDisks?: number;
|
|
1158
|
+
EbsStorageOnly?: boolean;
|
|
1159
|
+
Architecture?: string;
|
|
1160
|
+
}
|
|
1161
|
+
export interface ListSupportedInstanceTypesOutput {
|
|
1162
|
+
SupportedInstanceTypes?: SupportedInstanceType[];
|
|
1163
|
+
Marker?: string;
|
|
1164
|
+
}
|
|
1144
1165
|
export interface ModifyClusterInput {
|
|
1145
1166
|
ClusterId: string | undefined;
|
|
1146
1167
|
StepConcurrencyLevel?: number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import {
|
|
3
|
+
ListSupportedInstanceTypesCommandInput,
|
|
4
|
+
ListSupportedInstanceTypesCommandOutput,
|
|
5
|
+
} from "../commands/ListSupportedInstanceTypesCommand";
|
|
6
|
+
import { EMRPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateListSupportedInstanceTypes(
|
|
8
|
+
config: EMRPaginationConfiguration,
|
|
9
|
+
input: ListSupportedInstanceTypesCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<ListSupportedInstanceTypesCommandOutput>;
|
|
@@ -139,6 +139,10 @@ import {
|
|
|
139
139
|
ListStudioSessionMappingsCommandInput,
|
|
140
140
|
ListStudioSessionMappingsCommandOutput,
|
|
141
141
|
} from "../commands/ListStudioSessionMappingsCommand";
|
|
142
|
+
import {
|
|
143
|
+
ListSupportedInstanceTypesCommandInput,
|
|
144
|
+
ListSupportedInstanceTypesCommandOutput,
|
|
145
|
+
} from "../commands/ListSupportedInstanceTypesCommand";
|
|
142
146
|
import {
|
|
143
147
|
ModifyClusterCommandInput,
|
|
144
148
|
ModifyClusterCommandOutput,
|
|
@@ -351,6 +355,10 @@ export declare const se_ListStudioSessionMappingsCommand: (
|
|
|
351
355
|
input: ListStudioSessionMappingsCommandInput,
|
|
352
356
|
context: __SerdeContext
|
|
353
357
|
) => Promise<__HttpRequest>;
|
|
358
|
+
export declare const se_ListSupportedInstanceTypesCommand: (
|
|
359
|
+
input: ListSupportedInstanceTypesCommandInput,
|
|
360
|
+
context: __SerdeContext
|
|
361
|
+
) => Promise<__HttpRequest>;
|
|
354
362
|
export declare const se_ModifyClusterCommand: (
|
|
355
363
|
input: ModifyClusterCommandInput,
|
|
356
364
|
context: __SerdeContext
|
|
@@ -563,6 +571,10 @@ export declare const de_ListStudioSessionMappingsCommand: (
|
|
|
563
571
|
output: __HttpResponse,
|
|
564
572
|
context: __SerdeContext
|
|
565
573
|
) => Promise<ListStudioSessionMappingsCommandOutput>;
|
|
574
|
+
export declare const de_ListSupportedInstanceTypesCommand: (
|
|
575
|
+
output: __HttpResponse,
|
|
576
|
+
context: __SerdeContext
|
|
577
|
+
) => Promise<ListSupportedInstanceTypesCommandOutput>;
|
|
566
578
|
export declare const de_ModifyClusterCommand: (
|
|
567
579
|
output: __HttpResponse,
|
|
568
580
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-emr",
|
|
3
3
|
"description": "AWS SDK for JavaScript Emr Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.357.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.357.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.357.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.357.0",
|
|
43
|
+
"@aws-sdk/types": "3.357.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.357.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.357.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
|
-
"@aws-sdk/util-waiter": "3.
|
|
55
|
+
"@aws-sdk/util-waiter": "3.357.0",
|
|
56
56
|
"@smithy/protocol-http": "^1.0.1",
|
|
57
57
|
"@smithy/types": "^1.0.0",
|
|
58
58
|
"tslib": "^2.5.0"
|