@aws-sdk/client-emr-containers 3.319.0 → 3.322.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 CHANGED
@@ -316,6 +316,14 @@ DescribeVirtualCluster
316
316
 
317
317
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr-containers/classes/describevirtualclustercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr-containers/interfaces/describevirtualclustercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr-containers/interfaces/describevirtualclustercommandoutput.html)
318
318
 
319
+ </details>
320
+ <details>
321
+ <summary>
322
+ GetManagedEndpointSessionCredentials
323
+ </summary>
324
+
325
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr-containers/classes/getmanagedendpointsessioncredentialscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr-containers/interfaces/getmanagedendpointsessioncredentialscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-emr-containers/interfaces/getmanagedendpointsessioncredentialscommandoutput.html)
326
+
319
327
  </details>
320
328
  <details>
321
329
  <summary>
@@ -13,6 +13,7 @@ const DescribeJobRunCommand_1 = require("./commands/DescribeJobRunCommand");
13
13
  const DescribeJobTemplateCommand_1 = require("./commands/DescribeJobTemplateCommand");
14
14
  const DescribeManagedEndpointCommand_1 = require("./commands/DescribeManagedEndpointCommand");
15
15
  const DescribeVirtualClusterCommand_1 = require("./commands/DescribeVirtualClusterCommand");
16
+ const GetManagedEndpointSessionCredentialsCommand_1 = require("./commands/GetManagedEndpointSessionCredentialsCommand");
16
17
  const ListJobRunsCommand_1 = require("./commands/ListJobRunsCommand");
17
18
  const ListJobTemplatesCommand_1 = require("./commands/ListJobTemplatesCommand");
18
19
  const ListManagedEndpointsCommand_1 = require("./commands/ListManagedEndpointsCommand");
@@ -34,6 +35,7 @@ const commands = {
34
35
  DescribeJobTemplateCommand: DescribeJobTemplateCommand_1.DescribeJobTemplateCommand,
35
36
  DescribeManagedEndpointCommand: DescribeManagedEndpointCommand_1.DescribeManagedEndpointCommand,
36
37
  DescribeVirtualClusterCommand: DescribeVirtualClusterCommand_1.DescribeVirtualClusterCommand,
38
+ GetManagedEndpointSessionCredentialsCommand: GetManagedEndpointSessionCredentialsCommand_1.GetManagedEndpointSessionCredentialsCommand,
37
39
  ListJobRunsCommand: ListJobRunsCommand_1.ListJobRunsCommand,
38
40
  ListJobTemplatesCommand: ListJobTemplatesCommand_1.ListJobTemplatesCommand,
39
41
  ListManagedEndpointsCommand: ListManagedEndpointsCommand_1.ListManagedEndpointsCommand,
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetManagedEndpointSessionCredentialsCommand = 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
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class GetManagedEndpointSessionCredentialsCommand 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, GetManagedEndpointSessionCredentialsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "EMRContainersClient";
28
+ const commandName = "GetManagedEndpointSessionCredentialsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: models_0_1.GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog,
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_restJson1_1.se_GetManagedEndpointSessionCredentialsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_GetManagedEndpointSessionCredentialsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetManagedEndpointSessionCredentialsCommand = GetManagedEndpointSessionCredentialsCommand;
@@ -12,6 +12,7 @@ tslib_1.__exportStar(require("./DescribeJobRunCommand"), exports);
12
12
  tslib_1.__exportStar(require("./DescribeJobTemplateCommand"), exports);
13
13
  tslib_1.__exportStar(require("./DescribeManagedEndpointCommand"), exports);
14
14
  tslib_1.__exportStar(require("./DescribeVirtualClusterCommand"), exports);
15
+ tslib_1.__exportStar(require("./GetManagedEndpointSessionCredentialsCommand"), exports);
15
16
  tslib_1.__exportStar(require("./ListJobRunsCommand"), exports);
16
17
  tslib_1.__exportStar(require("./ListJobTemplatesCommand"), exports);
17
18
  tslib_1.__exportStar(require("./ListManagedEndpointsCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://emr-containers-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://emr-containers-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://emr-containers.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://emr-containers.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://emr-containers-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://emr-containers-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://emr-containers.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://emr-containers.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListJobTemplatesResponseFilterSensitiveLog = exports.ListManagedEndpointsResponseFilterSensitiveLog = exports.ListJobRunsResponseFilterSensitiveLog = exports.DescribeJobTemplateResponseFilterSensitiveLog = exports.JobTemplateFilterSensitiveLog = exports.DescribeManagedEndpointResponseFilterSensitiveLog = exports.DescribeJobRunResponseFilterSensitiveLog = exports.CreateJobTemplateRequestFilterSensitiveLog = exports.StartJobRunRequestFilterSensitiveLog = exports.JobTemplateDataFilterSensitiveLog = exports.JobRunFilterSensitiveLog = exports.EndpointFilterSensitiveLog = exports.CreateManagedEndpointRequestFilterSensitiveLog = exports.ParametricConfigurationOverridesFilterSensitiveLog = exports.ConfigurationOverridesFilterSensitiveLog = exports.ConfigurationFilterSensitiveLog = exports.JobDriverFilterSensitiveLog = exports.SparkSubmitJobDriverFilterSensitiveLog = exports.SparkSqlJobDriverFilterSensitiveLog = exports.VirtualClusterState = exports.EndpointState = exports.JobRunState = exports.FailureReason = exports.ContainerProviderType = exports.ContainerInfo = exports.PersistentAppUI = exports.ResourceNotFoundException = exports.TemplateParameterDataType = exports.ValidationException = exports.InternalServerException = void 0;
3
+ exports.ListJobTemplatesResponseFilterSensitiveLog = exports.ListManagedEndpointsResponseFilterSensitiveLog = exports.ListJobRunsResponseFilterSensitiveLog = exports.DescribeJobTemplateResponseFilterSensitiveLog = exports.JobTemplateFilterSensitiveLog = exports.DescribeManagedEndpointResponseFilterSensitiveLog = exports.DescribeJobRunResponseFilterSensitiveLog = exports.CreateJobTemplateRequestFilterSensitiveLog = exports.StartJobRunRequestFilterSensitiveLog = exports.JobTemplateDataFilterSensitiveLog = exports.JobRunFilterSensitiveLog = exports.EndpointFilterSensitiveLog = exports.CreateManagedEndpointRequestFilterSensitiveLog = exports.ParametricConfigurationOverridesFilterSensitiveLog = exports.ConfigurationOverridesFilterSensitiveLog = exports.ConfigurationFilterSensitiveLog = exports.GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.JobDriverFilterSensitiveLog = exports.SparkSubmitJobDriverFilterSensitiveLog = exports.SparkSqlJobDriverFilterSensitiveLog = exports.RequestThrottledException = exports.Credentials = exports.VirtualClusterState = exports.EndpointState = exports.JobRunState = exports.FailureReason = exports.ContainerProviderType = exports.ContainerInfo = exports.PersistentAppUI = exports.ResourceNotFoundException = exports.TemplateParameterDataType = exports.ValidationException = exports.InternalServerException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const EMRContainersServiceException_1 = require("./EMRContainersServiceException");
6
6
  class InternalServerException extends EMRContainersServiceException_1.EMRContainersServiceException {
@@ -89,6 +89,27 @@ exports.VirtualClusterState = {
89
89
  TERMINATED: "TERMINATED",
90
90
  TERMINATING: "TERMINATING",
91
91
  };
92
+ var Credentials;
93
+ (function (Credentials) {
94
+ Credentials.visit = (value, visitor) => {
95
+ if (value.token !== undefined)
96
+ return visitor.token(value.token);
97
+ return visitor._(value.$unknown[0], value.$unknown[1]);
98
+ };
99
+ })(Credentials = exports.Credentials || (exports.Credentials = {}));
100
+ class RequestThrottledException extends EMRContainersServiceException_1.EMRContainersServiceException {
101
+ constructor(opts) {
102
+ super({
103
+ name: "RequestThrottledException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ this.name = "RequestThrottledException";
108
+ this.$fault = "client";
109
+ Object.setPrototypeOf(this, RequestThrottledException.prototype);
110
+ }
111
+ }
112
+ exports.RequestThrottledException = RequestThrottledException;
92
113
  const SparkSqlJobDriverFilterSensitiveLog = (obj) => ({
93
114
  ...obj,
94
115
  ...(obj.entryPoint && { entryPoint: smithy_client_1.SENSITIVE_STRING }),
@@ -110,6 +131,18 @@ const JobDriverFilterSensitiveLog = (obj) => ({
110
131
  ...(obj.sparkSqlJobDriver && { sparkSqlJobDriver: (0, exports.SparkSqlJobDriverFilterSensitiveLog)(obj.sparkSqlJobDriver) }),
111
132
  });
112
133
  exports.JobDriverFilterSensitiveLog = JobDriverFilterSensitiveLog;
134
+ const CredentialsFilterSensitiveLog = (obj) => {
135
+ if (obj.token !== undefined)
136
+ return { token: smithy_client_1.SENSITIVE_STRING };
137
+ if (obj.$unknown !== undefined)
138
+ return { [obj.$unknown[0]]: "UNKNOWN" };
139
+ };
140
+ exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog;
141
+ const GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog = (obj) => ({
142
+ ...obj,
143
+ ...(obj.credentials && { credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.credentials) }),
144
+ });
145
+ exports.GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog = GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog;
113
146
  const ConfigurationFilterSensitiveLog = (obj) => ({
114
147
  ...obj,
115
148
  ...(obj.properties && { properties: smithy_client_1.SENSITIVE_STRING }),
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartJobRunCommand = exports.de_ListVirtualClustersCommand = exports.de_ListTagsForResourceCommand = exports.de_ListManagedEndpointsCommand = exports.de_ListJobTemplatesCommand = exports.de_ListJobRunsCommand = exports.de_DescribeVirtualClusterCommand = exports.de_DescribeManagedEndpointCommand = exports.de_DescribeJobTemplateCommand = exports.de_DescribeJobRunCommand = exports.de_DeleteVirtualClusterCommand = exports.de_DeleteManagedEndpointCommand = exports.de_DeleteJobTemplateCommand = exports.de_CreateVirtualClusterCommand = exports.de_CreateManagedEndpointCommand = exports.de_CreateJobTemplateCommand = exports.de_CancelJobRunCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartJobRunCommand = exports.se_ListVirtualClustersCommand = exports.se_ListTagsForResourceCommand = exports.se_ListManagedEndpointsCommand = exports.se_ListJobTemplatesCommand = exports.se_ListJobRunsCommand = exports.se_DescribeVirtualClusterCommand = exports.se_DescribeManagedEndpointCommand = exports.se_DescribeJobTemplateCommand = exports.se_DescribeJobRunCommand = exports.se_DeleteVirtualClusterCommand = exports.se_DeleteManagedEndpointCommand = exports.se_DeleteJobTemplateCommand = exports.se_CreateVirtualClusterCommand = exports.se_CreateManagedEndpointCommand = exports.se_CreateJobTemplateCommand = exports.se_CancelJobRunCommand = void 0;
3
+ exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartJobRunCommand = exports.de_ListVirtualClustersCommand = exports.de_ListTagsForResourceCommand = exports.de_ListManagedEndpointsCommand = exports.de_ListJobTemplatesCommand = exports.de_ListJobRunsCommand = exports.de_GetManagedEndpointSessionCredentialsCommand = exports.de_DescribeVirtualClusterCommand = exports.de_DescribeManagedEndpointCommand = exports.de_DescribeJobTemplateCommand = exports.de_DescribeJobRunCommand = exports.de_DeleteVirtualClusterCommand = exports.de_DeleteManagedEndpointCommand = exports.de_DeleteJobTemplateCommand = exports.de_CreateVirtualClusterCommand = exports.de_CreateManagedEndpointCommand = exports.de_CreateJobTemplateCommand = exports.de_CancelJobRunCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartJobRunCommand = exports.se_ListVirtualClustersCommand = exports.se_ListTagsForResourceCommand = exports.se_ListManagedEndpointsCommand = exports.se_ListJobTemplatesCommand = exports.se_ListJobRunsCommand = exports.se_GetManagedEndpointSessionCredentialsCommand = exports.se_DescribeVirtualClusterCommand = exports.se_DescribeManagedEndpointCommand = exports.se_DescribeJobTemplateCommand = exports.se_DescribeJobRunCommand = exports.se_DeleteVirtualClusterCommand = exports.se_DeleteManagedEndpointCommand = exports.se_DeleteJobTemplateCommand = exports.se_CreateVirtualClusterCommand = exports.se_CreateManagedEndpointCommand = exports.se_CreateJobTemplateCommand = exports.se_CancelJobRunCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const uuid_1 = require("uuid");
@@ -229,6 +229,34 @@ const se_DescribeVirtualClusterCommand = async (input, context) => {
229
229
  });
230
230
  };
231
231
  exports.se_DescribeVirtualClusterCommand = se_DescribeVirtualClusterCommand;
232
+ const se_GetManagedEndpointSessionCredentialsCommand = async (input, context) => {
233
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const headers = {
235
+ "content-type": "application/json",
236
+ };
237
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
238
+ "/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials";
239
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "endpointIdentifier", () => input.endpointIdentifier, "{endpointIdentifier}", false);
240
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualClusterIdentifier", () => input.virtualClusterIdentifier, "{virtualClusterIdentifier}", false);
241
+ let body;
242
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
243
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
244
+ credentialType: [],
245
+ durationInSeconds: [],
246
+ executionRoleArn: [],
247
+ logContext: [],
248
+ }));
249
+ return new protocol_http_1.HttpRequest({
250
+ protocol,
251
+ hostname,
252
+ port,
253
+ method: "POST",
254
+ headers,
255
+ path: resolvedPath,
256
+ body,
257
+ });
258
+ };
259
+ exports.se_GetManagedEndpointSessionCredentialsCommand = se_GetManagedEndpointSessionCredentialsCommand;
232
260
  const se_ListJobRunsCommand = async (input, context) => {
233
261
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
262
  const headers = {};
@@ -889,6 +917,51 @@ const de_DescribeVirtualClusterCommandError = async (output, context) => {
889
917
  });
890
918
  }
891
919
  };
920
+ const de_GetManagedEndpointSessionCredentialsCommand = async (output, context) => {
921
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
922
+ return de_GetManagedEndpointSessionCredentialsCommandError(output, context);
923
+ }
924
+ const contents = (0, smithy_client_1.map)({
925
+ $metadata: deserializeMetadata(output),
926
+ });
927
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
928
+ const doc = (0, smithy_client_1.take)(data, {
929
+ credentials: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
930
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
931
+ id: smithy_client_1.expectString,
932
+ });
933
+ Object.assign(contents, doc);
934
+ return contents;
935
+ };
936
+ exports.de_GetManagedEndpointSessionCredentialsCommand = de_GetManagedEndpointSessionCredentialsCommand;
937
+ const de_GetManagedEndpointSessionCredentialsCommandError = async (output, context) => {
938
+ const parsedOutput = {
939
+ ...output,
940
+ body: await parseErrorBody(output.body, context),
941
+ };
942
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
943
+ switch (errorCode) {
944
+ case "InternalServerException":
945
+ case "com.amazonaws.emrcontainers#InternalServerException":
946
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
947
+ case "RequestThrottledException":
948
+ case "com.amazonaws.emrcontainers#RequestThrottledException":
949
+ throw await de_RequestThrottledExceptionRes(parsedOutput, context);
950
+ case "ResourceNotFoundException":
951
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
952
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
953
+ case "ValidationException":
954
+ case "com.amazonaws.emrcontainers#ValidationException":
955
+ throw await de_ValidationExceptionRes(parsedOutput, context);
956
+ default:
957
+ const parsedBody = parsedOutput.body;
958
+ return throwDefaultError({
959
+ output,
960
+ parsedBody,
961
+ errorCode,
962
+ });
963
+ }
964
+ };
892
965
  const de_ListJobRunsCommand = async (output, context) => {
893
966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
894
967
  return de_ListJobRunsCommandError(output, context);
@@ -1210,6 +1283,19 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1210
1283
  });
1211
1284
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1212
1285
  };
1286
+ const de_RequestThrottledExceptionRes = async (parsedOutput, context) => {
1287
+ const contents = (0, smithy_client_1.map)({});
1288
+ const data = parsedOutput.body;
1289
+ const doc = (0, smithy_client_1.take)(data, {
1290
+ message: smithy_client_1.expectString,
1291
+ });
1292
+ Object.assign(contents, doc);
1293
+ const exception = new models_0_1.RequestThrottledException({
1294
+ $metadata: deserializeMetadata(parsedOutput),
1295
+ ...contents,
1296
+ });
1297
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1298
+ };
1213
1299
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1214
1300
  const contents = (0, smithy_client_1.map)({});
1215
1301
  const data = parsedOutput.body;
@@ -10,6 +10,7 @@ import { DescribeJobRunCommand, } from "./commands/DescribeJobRunCommand";
10
10
  import { DescribeJobTemplateCommand, } from "./commands/DescribeJobTemplateCommand";
11
11
  import { DescribeManagedEndpointCommand, } from "./commands/DescribeManagedEndpointCommand";
12
12
  import { DescribeVirtualClusterCommand, } from "./commands/DescribeVirtualClusterCommand";
13
+ import { GetManagedEndpointSessionCredentialsCommand, } from "./commands/GetManagedEndpointSessionCredentialsCommand";
13
14
  import { ListJobRunsCommand } from "./commands/ListJobRunsCommand";
14
15
  import { ListJobTemplatesCommand, } from "./commands/ListJobTemplatesCommand";
15
16
  import { ListManagedEndpointsCommand, } from "./commands/ListManagedEndpointsCommand";
@@ -31,6 +32,7 @@ const commands = {
31
32
  DescribeJobTemplateCommand,
32
33
  DescribeManagedEndpointCommand,
33
34
  DescribeVirtualClusterCommand,
35
+ GetManagedEndpointSessionCredentialsCommand,
34
36
  ListJobRunsCommand,
35
37
  ListJobTemplatesCommand,
36
38
  ListManagedEndpointsCommand,
@@ -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 { GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_GetManagedEndpointSessionCredentialsCommand, se_GetManagedEndpointSessionCredentialsCommand, } from "../protocols/Aws_restJson1";
6
+ export class GetManagedEndpointSessionCredentialsCommand 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, GetManagedEndpointSessionCredentialsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "EMRContainersClient";
25
+ const commandName = "GetManagedEndpointSessionCredentialsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_GetManagedEndpointSessionCredentialsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_GetManagedEndpointSessionCredentialsCommand(output, context);
41
+ }
42
+ }
@@ -9,6 +9,7 @@ export * from "./DescribeJobRunCommand";
9
9
  export * from "./DescribeJobTemplateCommand";
10
10
  export * from "./DescribeManagedEndpointCommand";
11
11
  export * from "./DescribeVirtualClusterCommand";
12
+ export * from "./GetManagedEndpointSessionCredentialsCommand";
12
13
  export * from "./ListJobRunsCommand";
13
14
  export * from "./ListJobTemplatesCommand";
14
15
  export * from "./ListManagedEndpointsCommand";
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://emr-containers-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://emr-containers-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://emr-containers.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://emr-containers.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://emr-containers-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://emr-containers-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://emr-containers.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://emr-containers.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -83,6 +83,26 @@ export const VirtualClusterState = {
83
83
  TERMINATED: "TERMINATED",
84
84
  TERMINATING: "TERMINATING",
85
85
  };
86
+ export var Credentials;
87
+ (function (Credentials) {
88
+ Credentials.visit = (value, visitor) => {
89
+ if (value.token !== undefined)
90
+ return visitor.token(value.token);
91
+ return visitor._(value.$unknown[0], value.$unknown[1]);
92
+ };
93
+ })(Credentials || (Credentials = {}));
94
+ export class RequestThrottledException extends __BaseException {
95
+ constructor(opts) {
96
+ super({
97
+ name: "RequestThrottledException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ this.name = "RequestThrottledException";
102
+ this.$fault = "client";
103
+ Object.setPrototypeOf(this, RequestThrottledException.prototype);
104
+ }
105
+ }
86
106
  export const SparkSqlJobDriverFilterSensitiveLog = (obj) => ({
87
107
  ...obj,
88
108
  ...(obj.entryPoint && { entryPoint: SENSITIVE_STRING }),
@@ -101,6 +121,16 @@ export const JobDriverFilterSensitiveLog = (obj) => ({
101
121
  }),
102
122
  ...(obj.sparkSqlJobDriver && { sparkSqlJobDriver: SparkSqlJobDriverFilterSensitiveLog(obj.sparkSqlJobDriver) }),
103
123
  });
124
+ export const CredentialsFilterSensitiveLog = (obj) => {
125
+ if (obj.token !== undefined)
126
+ return { token: SENSITIVE_STRING };
127
+ if (obj.$unknown !== undefined)
128
+ return { [obj.$unknown[0]]: "UNKNOWN" };
129
+ };
130
+ export const GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog = (obj) => ({
131
+ ...obj,
132
+ ...(obj.credentials && { credentials: CredentialsFilterSensitiveLog(obj.credentials) }),
133
+ });
104
134
  export const ConfigurationFilterSensitiveLog = (obj) => ({
105
135
  ...obj,
106
136
  ...(obj.properties && { properties: SENSITIVE_STRING }),
@@ -1,8 +1,8 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { EMRContainersServiceException as __BaseException } from "../models/EMRContainersServiceException";
5
- import { InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
5
+ import { InternalServerException, RequestThrottledException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
6
6
  export const se_CancelJobRunCommand = async (input, context) => {
7
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
8
  const headers = {};
@@ -215,6 +215,33 @@ export const se_DescribeVirtualClusterCommand = async (input, context) => {
215
215
  body,
216
216
  });
217
217
  };
218
+ export const se_GetManagedEndpointSessionCredentialsCommand = async (input, context) => {
219
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
220
+ const headers = {
221
+ "content-type": "application/json",
222
+ };
223
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
224
+ "/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials";
225
+ resolvedPath = __resolvedPath(resolvedPath, input, "endpointIdentifier", () => input.endpointIdentifier, "{endpointIdentifier}", false);
226
+ resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterIdentifier", () => input.virtualClusterIdentifier, "{virtualClusterIdentifier}", false);
227
+ let body;
228
+ body = JSON.stringify(take(input, {
229
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
230
+ credentialType: [],
231
+ durationInSeconds: [],
232
+ executionRoleArn: [],
233
+ logContext: [],
234
+ }));
235
+ return new __HttpRequest({
236
+ protocol,
237
+ hostname,
238
+ port,
239
+ method: "POST",
240
+ headers,
241
+ path: resolvedPath,
242
+ body,
243
+ });
244
+ };
218
245
  export const se_ListJobRunsCommand = async (input, context) => {
219
246
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
220
247
  const headers = {};
@@ -856,6 +883,50 @@ const de_DescribeVirtualClusterCommandError = async (output, context) => {
856
883
  });
857
884
  }
858
885
  };
886
+ export const de_GetManagedEndpointSessionCredentialsCommand = async (output, context) => {
887
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
888
+ return de_GetManagedEndpointSessionCredentialsCommandError(output, context);
889
+ }
890
+ const contents = map({
891
+ $metadata: deserializeMetadata(output),
892
+ });
893
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
894
+ const doc = take(data, {
895
+ credentials: (_) => _json(__expectUnion(_)),
896
+ expiresAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
897
+ id: __expectString,
898
+ });
899
+ Object.assign(contents, doc);
900
+ return contents;
901
+ };
902
+ const de_GetManagedEndpointSessionCredentialsCommandError = async (output, context) => {
903
+ const parsedOutput = {
904
+ ...output,
905
+ body: await parseErrorBody(output.body, context),
906
+ };
907
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
908
+ switch (errorCode) {
909
+ case "InternalServerException":
910
+ case "com.amazonaws.emrcontainers#InternalServerException":
911
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
912
+ case "RequestThrottledException":
913
+ case "com.amazonaws.emrcontainers#RequestThrottledException":
914
+ throw await de_RequestThrottledExceptionRes(parsedOutput, context);
915
+ case "ResourceNotFoundException":
916
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
917
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
918
+ case "ValidationException":
919
+ case "com.amazonaws.emrcontainers#ValidationException":
920
+ throw await de_ValidationExceptionRes(parsedOutput, context);
921
+ default:
922
+ const parsedBody = parsedOutput.body;
923
+ return throwDefaultError({
924
+ output,
925
+ parsedBody,
926
+ errorCode,
927
+ });
928
+ }
929
+ };
859
930
  export const de_ListJobRunsCommand = async (output, context) => {
860
931
  if (output.statusCode !== 200 && output.statusCode >= 300) {
861
932
  return de_ListJobRunsCommandError(output, context);
@@ -1169,6 +1240,19 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1169
1240
  });
1170
1241
  return __decorateServiceException(exception, parsedOutput.body);
1171
1242
  };
1243
+ const de_RequestThrottledExceptionRes = async (parsedOutput, context) => {
1244
+ const contents = map({});
1245
+ const data = parsedOutput.body;
1246
+ const doc = take(data, {
1247
+ message: __expectString,
1248
+ });
1249
+ Object.assign(contents, doc);
1250
+ const exception = new RequestThrottledException({
1251
+ $metadata: deserializeMetadata(parsedOutput),
1252
+ ...contents,
1253
+ });
1254
+ return __decorateServiceException(exception, parsedOutput.body);
1255
+ };
1172
1256
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1173
1257
  const contents = map({});
1174
1258
  const data = parsedOutput.body;
@@ -10,6 +10,7 @@ import { DescribeJobRunCommandInput, DescribeJobRunCommandOutput } from "./comma
10
10
  import { DescribeJobTemplateCommandInput, DescribeJobTemplateCommandOutput } from "./commands/DescribeJobTemplateCommand";
11
11
  import { DescribeManagedEndpointCommandInput, DescribeManagedEndpointCommandOutput } from "./commands/DescribeManagedEndpointCommand";
12
12
  import { DescribeVirtualClusterCommandInput, DescribeVirtualClusterCommandOutput } from "./commands/DescribeVirtualClusterCommand";
13
+ import { GetManagedEndpointSessionCredentialsCommandInput, GetManagedEndpointSessionCredentialsCommandOutput } from "./commands/GetManagedEndpointSessionCredentialsCommand";
13
14
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
14
15
  import { ListJobTemplatesCommandInput, ListJobTemplatesCommandOutput } from "./commands/ListJobTemplatesCommand";
15
16
  import { ListManagedEndpointsCommandInput, ListManagedEndpointsCommandOutput } from "./commands/ListManagedEndpointsCommand";
@@ -86,6 +87,12 @@ export interface EMRContainers {
86
87
  describeVirtualCluster(args: DescribeVirtualClusterCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVirtualClusterCommandOutput>;
87
88
  describeVirtualCluster(args: DescribeVirtualClusterCommandInput, cb: (err: any, data?: DescribeVirtualClusterCommandOutput) => void): void;
88
89
  describeVirtualCluster(args: DescribeVirtualClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVirtualClusterCommandOutput) => void): void;
90
+ /**
91
+ * @see {@link GetManagedEndpointSessionCredentialsCommand}
92
+ */
93
+ getManagedEndpointSessionCredentials(args: GetManagedEndpointSessionCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetManagedEndpointSessionCredentialsCommandOutput>;
94
+ getManagedEndpointSessionCredentials(args: GetManagedEndpointSessionCredentialsCommandInput, cb: (err: any, data?: GetManagedEndpointSessionCredentialsCommandOutput) => void): void;
95
+ getManagedEndpointSessionCredentials(args: GetManagedEndpointSessionCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetManagedEndpointSessionCredentialsCommandOutput) => void): void;
89
96
  /**
90
97
  * @see {@link ListJobRunsCommand}
91
98
  */
@@ -18,6 +18,7 @@ import { DescribeJobRunCommandInput, DescribeJobRunCommandOutput } from "./comma
18
18
  import { DescribeJobTemplateCommandInput, DescribeJobTemplateCommandOutput } from "./commands/DescribeJobTemplateCommand";
19
19
  import { DescribeManagedEndpointCommandInput, DescribeManagedEndpointCommandOutput } from "./commands/DescribeManagedEndpointCommand";
20
20
  import { DescribeVirtualClusterCommandInput, DescribeVirtualClusterCommandOutput } from "./commands/DescribeVirtualClusterCommand";
21
+ import { GetManagedEndpointSessionCredentialsCommandInput, GetManagedEndpointSessionCredentialsCommandOutput } from "./commands/GetManagedEndpointSessionCredentialsCommand";
21
22
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
22
23
  import { ListJobTemplatesCommandInput, ListJobTemplatesCommandOutput } from "./commands/ListJobTemplatesCommand";
23
24
  import { ListManagedEndpointsCommandInput, ListManagedEndpointsCommandOutput } from "./commands/ListManagedEndpointsCommand";
@@ -30,11 +31,11 @@ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, Endpoi
30
31
  /**
31
32
  * @public
32
33
  */
33
- export type ServiceInputTypes = CancelJobRunCommandInput | CreateJobTemplateCommandInput | CreateManagedEndpointCommandInput | CreateVirtualClusterCommandInput | DeleteJobTemplateCommandInput | DeleteManagedEndpointCommandInput | DeleteVirtualClusterCommandInput | DescribeJobRunCommandInput | DescribeJobTemplateCommandInput | DescribeManagedEndpointCommandInput | DescribeVirtualClusterCommandInput | ListJobRunsCommandInput | ListJobTemplatesCommandInput | ListManagedEndpointsCommandInput | ListTagsForResourceCommandInput | ListVirtualClustersCommandInput | StartJobRunCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
34
+ export type ServiceInputTypes = CancelJobRunCommandInput | CreateJobTemplateCommandInput | CreateManagedEndpointCommandInput | CreateVirtualClusterCommandInput | DeleteJobTemplateCommandInput | DeleteManagedEndpointCommandInput | DeleteVirtualClusterCommandInput | DescribeJobRunCommandInput | DescribeJobTemplateCommandInput | DescribeManagedEndpointCommandInput | DescribeVirtualClusterCommandInput | GetManagedEndpointSessionCredentialsCommandInput | ListJobRunsCommandInput | ListJobTemplatesCommandInput | ListManagedEndpointsCommandInput | ListTagsForResourceCommandInput | ListVirtualClustersCommandInput | StartJobRunCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
34
35
  /**
35
36
  * @public
36
37
  */
37
- export type ServiceOutputTypes = CancelJobRunCommandOutput | CreateJobTemplateCommandOutput | CreateManagedEndpointCommandOutput | CreateVirtualClusterCommandOutput | DeleteJobTemplateCommandOutput | DeleteManagedEndpointCommandOutput | DeleteVirtualClusterCommandOutput | DescribeJobRunCommandOutput | DescribeJobTemplateCommandOutput | DescribeManagedEndpointCommandOutput | DescribeVirtualClusterCommandOutput | ListJobRunsCommandOutput | ListJobTemplatesCommandOutput | ListManagedEndpointsCommandOutput | ListTagsForResourceCommandOutput | ListVirtualClustersCommandOutput | StartJobRunCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
38
+ export type ServiceOutputTypes = CancelJobRunCommandOutput | CreateJobTemplateCommandOutput | CreateManagedEndpointCommandOutput | CreateVirtualClusterCommandOutput | DeleteJobTemplateCommandOutput | DeleteManagedEndpointCommandOutput | DeleteVirtualClusterCommandOutput | DescribeJobRunCommandOutput | DescribeJobTemplateCommandOutput | DescribeManagedEndpointCommandOutput | DescribeVirtualClusterCommandOutput | GetManagedEndpointSessionCredentialsCommandOutput | ListJobRunsCommandOutput | ListJobTemplatesCommandOutput | ListManagedEndpointsCommandOutput | ListTagsForResourceCommandOutput | ListVirtualClustersCommandOutput | StartJobRunCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
38
39
  /**
39
40
  * @public
40
41
  */
@@ -0,0 +1,81 @@
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 { EMRContainersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EMRContainersClient";
5
+ import { GetManagedEndpointSessionCredentialsRequest, GetManagedEndpointSessionCredentialsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link GetManagedEndpointSessionCredentialsCommand}.
10
+ */
11
+ export interface GetManagedEndpointSessionCredentialsCommandInput extends GetManagedEndpointSessionCredentialsRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link GetManagedEndpointSessionCredentialsCommand}.
17
+ */
18
+ export interface GetManagedEndpointSessionCredentialsCommandOutput extends GetManagedEndpointSessionCredentialsResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Generate a session token to connect to a managed endpoint. </p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { EMRContainersClient, GetManagedEndpointSessionCredentialsCommand } from "@aws-sdk/client-emr-containers"; // ES Modules import
27
+ * // const { EMRContainersClient, GetManagedEndpointSessionCredentialsCommand } = require("@aws-sdk/client-emr-containers"); // CommonJS import
28
+ * const client = new EMRContainersClient(config);
29
+ * const input = { // GetManagedEndpointSessionCredentialsRequest
30
+ * endpointIdentifier: "STRING_VALUE", // required
31
+ * virtualClusterIdentifier: "STRING_VALUE", // required
32
+ * executionRoleArn: "STRING_VALUE", // required
33
+ * credentialType: "STRING_VALUE", // required
34
+ * durationInSeconds: Number("int"),
35
+ * logContext: "STRING_VALUE",
36
+ * clientToken: "STRING_VALUE",
37
+ * };
38
+ * const command = new GetManagedEndpointSessionCredentialsCommand(input);
39
+ * const response = await client.send(command);
40
+ * ```
41
+ *
42
+ * @param GetManagedEndpointSessionCredentialsCommandInput - {@link GetManagedEndpointSessionCredentialsCommandInput}
43
+ * @returns {@link GetManagedEndpointSessionCredentialsCommandOutput}
44
+ * @see {@link GetManagedEndpointSessionCredentialsCommandInput} for command's `input` shape.
45
+ * @see {@link GetManagedEndpointSessionCredentialsCommandOutput} for command's `response` shape.
46
+ * @see {@link EMRContainersClientResolvedConfig | config} for EMRContainersClient's `config` shape.
47
+ *
48
+ * @throws {@link InternalServerException} (server fault)
49
+ * <p>This is an internal server exception.</p>
50
+ *
51
+ * @throws {@link RequestThrottledException} (client fault)
52
+ * <p>The request throttled.</p>
53
+ *
54
+ * @throws {@link ResourceNotFoundException} (client fault)
55
+ * <p>The specified resource was not found.</p>
56
+ *
57
+ * @throws {@link ValidationException} (client fault)
58
+ * <p>There are invalid parameters in the client request.</p>
59
+ *
60
+ *
61
+ */
62
+ export declare class GetManagedEndpointSessionCredentialsCommand extends $Command<GetManagedEndpointSessionCredentialsCommandInput, GetManagedEndpointSessionCredentialsCommandOutput, EMRContainersClientResolvedConfig> {
63
+ readonly input: GetManagedEndpointSessionCredentialsCommandInput;
64
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
65
+ /**
66
+ * @public
67
+ */
68
+ constructor(input: GetManagedEndpointSessionCredentialsCommandInput);
69
+ /**
70
+ * @internal
71
+ */
72
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EMRContainersClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetManagedEndpointSessionCredentialsCommandInput, GetManagedEndpointSessionCredentialsCommandOutput>;
73
+ /**
74
+ * @internal
75
+ */
76
+ private serialize;
77
+ /**
78
+ * @internal
79
+ */
80
+ private deserialize;
81
+ }
@@ -9,6 +9,7 @@ export * from "./DescribeJobRunCommand";
9
9
  export * from "./DescribeJobTemplateCommand";
10
10
  export * from "./DescribeManagedEndpointCommand";
11
11
  export * from "./DescribeVirtualClusterCommand";
12
+ export * from "./GetManagedEndpointSessionCredentialsCommand";
12
13
  export * from "./ListJobRunsCommand";
13
14
  export * from "./ListJobTemplatesCommand";
14
15
  export * from "./ListManagedEndpointsCommand";
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region: string;
15
+ Region?: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -631,6 +631,96 @@ export interface DescribeVirtualClusterResponse {
631
631
  */
632
632
  virtualCluster?: VirtualCluster;
633
633
  }
634
+ /**
635
+ * @public
636
+ */
637
+ export interface GetManagedEndpointSessionCredentialsRequest {
638
+ /**
639
+ * <p>The ARN of the managed endpoint for which the request is submitted. </p>
640
+ */
641
+ endpointIdentifier: string | undefined;
642
+ /**
643
+ * <p>The ARN of the Virtual Cluster which the Managed Endpoint belongs to. </p>
644
+ */
645
+ virtualClusterIdentifier: string | undefined;
646
+ /**
647
+ * <p>The IAM Execution Role ARN that will be used by the job run. </p>
648
+ */
649
+ executionRoleArn: string | undefined;
650
+ /**
651
+ * <p>Type of the token requested. Currently supported and default value of this field is
652
+ * “TOKEN.”</p>
653
+ */
654
+ credentialType: string | undefined;
655
+ /**
656
+ * <p>Duration in seconds for which the session token is valid. The default duration is 15
657
+ * minutes and the maximum is 12 hours.</p>
658
+ */
659
+ durationInSeconds?: number;
660
+ /**
661
+ * <p>String identifier used to separate sections of the execution logs uploaded to S3.</p>
662
+ */
663
+ logContext?: string;
664
+ /**
665
+ * <p>The client idempotency token of the job run request.</p>
666
+ */
667
+ clientToken?: string;
668
+ }
669
+ /**
670
+ * @public
671
+ * <p>The structure containing the session token being returned.</p>
672
+ */
673
+ export type Credentials = Credentials.TokenMember | Credentials.$UnknownMember;
674
+ /**
675
+ * @public
676
+ */
677
+ export declare namespace Credentials {
678
+ /**
679
+ * <p>The actual session token being returned.</p>
680
+ */
681
+ interface TokenMember {
682
+ token: string;
683
+ $unknown?: never;
684
+ }
685
+ interface $UnknownMember {
686
+ token?: never;
687
+ $unknown: [string, any];
688
+ }
689
+ interface Visitor<T> {
690
+ token: (value: string) => T;
691
+ _: (name: string, value: any) => T;
692
+ }
693
+ const visit: <T>(value: Credentials, visitor: Visitor<T>) => T;
694
+ }
695
+ /**
696
+ * @public
697
+ */
698
+ export interface GetManagedEndpointSessionCredentialsResponse {
699
+ /**
700
+ * <p>The identifier of the session token returned.</p>
701
+ */
702
+ id?: string;
703
+ /**
704
+ * <p>The structure containing the session credentials.</p>
705
+ */
706
+ credentials?: Credentials;
707
+ /**
708
+ * <p>The date and time when the session token will expire.</p>
709
+ */
710
+ expiresAt?: Date;
711
+ }
712
+ /**
713
+ * @public
714
+ * <p>The request throttled.</p>
715
+ */
716
+ export declare class RequestThrottledException extends __BaseException {
717
+ readonly name: "RequestThrottledException";
718
+ readonly $fault: "client";
719
+ /**
720
+ * @internal
721
+ */
722
+ constructor(opts: __ExceptionOptionType<RequestThrottledException, __BaseException>);
723
+ }
634
724
  /**
635
725
  * @public
636
726
  */
@@ -1326,6 +1416,14 @@ export declare const SparkSubmitJobDriverFilterSensitiveLog: (obj: SparkSubmitJo
1326
1416
  * @internal
1327
1417
  */
1328
1418
  export declare const JobDriverFilterSensitiveLog: (obj: JobDriver) => any;
1419
+ /**
1420
+ * @internal
1421
+ */
1422
+ export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
1423
+ /**
1424
+ * @internal
1425
+ */
1426
+ export declare const GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog: (obj: GetManagedEndpointSessionCredentialsResponse) => any;
1329
1427
  /**
1330
1428
  * @internal
1331
1429
  */
@@ -11,6 +11,7 @@ import { DescribeJobRunCommandInput, DescribeJobRunCommandOutput } from "../comm
11
11
  import { DescribeJobTemplateCommandInput, DescribeJobTemplateCommandOutput } from "../commands/DescribeJobTemplateCommand";
12
12
  import { DescribeManagedEndpointCommandInput, DescribeManagedEndpointCommandOutput } from "../commands/DescribeManagedEndpointCommand";
13
13
  import { DescribeVirtualClusterCommandInput, DescribeVirtualClusterCommandOutput } from "../commands/DescribeVirtualClusterCommand";
14
+ import { GetManagedEndpointSessionCredentialsCommandInput, GetManagedEndpointSessionCredentialsCommandOutput } from "../commands/GetManagedEndpointSessionCredentialsCommand";
14
15
  import { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "../commands/ListJobRunsCommand";
15
16
  import { ListJobTemplatesCommandInput, ListJobTemplatesCommandOutput } from "../commands/ListJobTemplatesCommand";
16
17
  import { ListManagedEndpointsCommandInput, ListManagedEndpointsCommandOutput } from "../commands/ListManagedEndpointsCommand";
@@ -63,6 +64,10 @@ export declare const se_DescribeManagedEndpointCommand: (input: DescribeManagedE
63
64
  * serializeAws_restJson1DescribeVirtualClusterCommand
64
65
  */
65
66
  export declare const se_DescribeVirtualClusterCommand: (input: DescribeVirtualClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
+ /**
68
+ * serializeAws_restJson1GetManagedEndpointSessionCredentialsCommand
69
+ */
70
+ export declare const se_GetManagedEndpointSessionCredentialsCommand: (input: GetManagedEndpointSessionCredentialsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
66
71
  /**
67
72
  * serializeAws_restJson1ListJobRunsCommand
68
73
  */
@@ -139,6 +144,10 @@ export declare const de_DescribeManagedEndpointCommand: (output: __HttpResponse,
139
144
  * deserializeAws_restJson1DescribeVirtualClusterCommand
140
145
  */
141
146
  export declare const de_DescribeVirtualClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeVirtualClusterCommandOutput>;
147
+ /**
148
+ * deserializeAws_restJson1GetManagedEndpointSessionCredentialsCommand
149
+ */
150
+ export declare const de_GetManagedEndpointSessionCredentialsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetManagedEndpointSessionCredentialsCommandOutput>;
142
151
  /**
143
152
  * deserializeAws_restJson1ListJobRunsCommand
144
153
  */
@@ -43,6 +43,10 @@ import {
43
43
  DescribeVirtualClusterCommandInput,
44
44
  DescribeVirtualClusterCommandOutput,
45
45
  } from "./commands/DescribeVirtualClusterCommand";
46
+ import {
47
+ GetManagedEndpointSessionCredentialsCommandInput,
48
+ GetManagedEndpointSessionCredentialsCommandOutput,
49
+ } from "./commands/GetManagedEndpointSessionCredentialsCommand";
46
50
  import {
47
51
  ListJobRunsCommandInput,
48
52
  ListJobRunsCommandOutput,
@@ -220,6 +224,25 @@ export interface EMRContainers {
220
224
  options: __HttpHandlerOptions,
221
225
  cb: (err: any, data?: DescribeVirtualClusterCommandOutput) => void
222
226
  ): void;
227
+ getManagedEndpointSessionCredentials(
228
+ args: GetManagedEndpointSessionCredentialsCommandInput,
229
+ options?: __HttpHandlerOptions
230
+ ): Promise<GetManagedEndpointSessionCredentialsCommandOutput>;
231
+ getManagedEndpointSessionCredentials(
232
+ args: GetManagedEndpointSessionCredentialsCommandInput,
233
+ cb: (
234
+ err: any,
235
+ data?: GetManagedEndpointSessionCredentialsCommandOutput
236
+ ) => void
237
+ ): void;
238
+ getManagedEndpointSessionCredentials(
239
+ args: GetManagedEndpointSessionCredentialsCommandInput,
240
+ options: __HttpHandlerOptions,
241
+ cb: (
242
+ err: any,
243
+ data?: GetManagedEndpointSessionCredentialsCommandOutput
244
+ ) => void
245
+ ): void;
223
246
  listJobRuns(
224
247
  args: ListJobRunsCommandInput,
225
248
  options?: __HttpHandlerOptions
@@ -88,6 +88,10 @@ import {
88
88
  DescribeVirtualClusterCommandInput,
89
89
  DescribeVirtualClusterCommandOutput,
90
90
  } from "./commands/DescribeVirtualClusterCommand";
91
+ import {
92
+ GetManagedEndpointSessionCredentialsCommandInput,
93
+ GetManagedEndpointSessionCredentialsCommandOutput,
94
+ } from "./commands/GetManagedEndpointSessionCredentialsCommand";
91
95
  import {
92
96
  ListJobRunsCommandInput,
93
97
  ListJobRunsCommandOutput,
@@ -137,6 +141,7 @@ export type ServiceInputTypes =
137
141
  | DescribeJobTemplateCommandInput
138
142
  | DescribeManagedEndpointCommandInput
139
143
  | DescribeVirtualClusterCommandInput
144
+ | GetManagedEndpointSessionCredentialsCommandInput
140
145
  | ListJobRunsCommandInput
141
146
  | ListJobTemplatesCommandInput
142
147
  | ListManagedEndpointsCommandInput
@@ -157,6 +162,7 @@ export type ServiceOutputTypes =
157
162
  | DescribeJobTemplateCommandOutput
158
163
  | DescribeManagedEndpointCommandOutput
159
164
  | DescribeVirtualClusterCommandOutput
165
+ | GetManagedEndpointSessionCredentialsCommandOutput
160
166
  | ListJobRunsCommandOutput
161
167
  | ListJobTemplatesCommandOutput
162
168
  | ListManagedEndpointsCommandOutput
@@ -0,0 +1,41 @@
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
+ EMRContainersClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../EMRContainersClient";
14
+ import {
15
+ GetManagedEndpointSessionCredentialsRequest,
16
+ GetManagedEndpointSessionCredentialsResponse,
17
+ } from "../models/models_0";
18
+ export interface GetManagedEndpointSessionCredentialsCommandInput
19
+ extends GetManagedEndpointSessionCredentialsRequest {}
20
+ export interface GetManagedEndpointSessionCredentialsCommandOutput
21
+ extends GetManagedEndpointSessionCredentialsResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetManagedEndpointSessionCredentialsCommand extends $Command<
24
+ GetManagedEndpointSessionCredentialsCommandInput,
25
+ GetManagedEndpointSessionCredentialsCommandOutput,
26
+ EMRContainersClientResolvedConfig
27
+ > {
28
+ readonly input: GetManagedEndpointSessionCredentialsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetManagedEndpointSessionCredentialsCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: EMRContainersClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ GetManagedEndpointSessionCredentialsCommandInput,
37
+ GetManagedEndpointSessionCredentialsCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -9,6 +9,7 @@ export * from "./DescribeJobRunCommand";
9
9
  export * from "./DescribeJobTemplateCommand";
10
10
  export * from "./DescribeManagedEndpointCommand";
11
11
  export * from "./DescribeVirtualClusterCommand";
12
+ export * from "./GetManagedEndpointSessionCredentialsCommand";
12
13
  export * from "./ListJobRunsCommand";
13
14
  export * from "./ListJobTemplatesCommand";
14
15
  export * from "./ListManagedEndpointsCommand";
@@ -26,7 +26,7 @@ export declare const resolveClientEndpointParameters: <T>(
26
26
  defaultSigningName: string;
27
27
  };
28
28
  export interface EndpointParameters extends __EndpointParameters {
29
- Region: string;
29
+ Region?: string;
30
30
  UseDualStack?: boolean;
31
31
  UseFIPS?: boolean;
32
32
  Endpoint?: string;
@@ -225,6 +225,43 @@ export interface VirtualCluster {
225
225
  export interface DescribeVirtualClusterResponse {
226
226
  virtualCluster?: VirtualCluster;
227
227
  }
228
+ export interface GetManagedEndpointSessionCredentialsRequest {
229
+ endpointIdentifier: string | undefined;
230
+ virtualClusterIdentifier: string | undefined;
231
+ executionRoleArn: string | undefined;
232
+ credentialType: string | undefined;
233
+ durationInSeconds?: number;
234
+ logContext?: string;
235
+ clientToken?: string;
236
+ }
237
+ export type Credentials = Credentials.TokenMember | Credentials.$UnknownMember;
238
+ export declare namespace Credentials {
239
+ interface TokenMember {
240
+ token: string;
241
+ $unknown?: never;
242
+ }
243
+ interface $UnknownMember {
244
+ token?: never;
245
+ $unknown: [string, any];
246
+ }
247
+ interface Visitor<T> {
248
+ token: (value: string) => T;
249
+ _: (name: string, value: any) => T;
250
+ }
251
+ const visit: <T>(value: Credentials, visitor: Visitor<T>) => T;
252
+ }
253
+ export interface GetManagedEndpointSessionCredentialsResponse {
254
+ id?: string;
255
+ credentials?: Credentials;
256
+ expiresAt?: Date;
257
+ }
258
+ export declare class RequestThrottledException extends __BaseException {
259
+ readonly name: "RequestThrottledException";
260
+ readonly $fault: "client";
261
+ constructor(
262
+ opts: __ExceptionOptionType<RequestThrottledException, __BaseException>
263
+ );
264
+ }
228
265
  export interface ListJobRunsRequest {
229
266
  virtualClusterId: string | undefined;
230
267
  createdBefore?: Date;
@@ -415,6 +452,10 @@ export declare const SparkSubmitJobDriverFilterSensitiveLog: (
415
452
  obj: SparkSubmitJobDriver
416
453
  ) => any;
417
454
  export declare const JobDriverFilterSensitiveLog: (obj: JobDriver) => any;
455
+ export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
456
+ export declare const GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog: (
457
+ obj: GetManagedEndpointSessionCredentialsResponse
458
+ ) => any;
418
459
  export declare const ConfigurationFilterSensitiveLog: (
419
460
  obj: Configuration
420
461
  ) => any;
@@ -47,6 +47,10 @@ import {
47
47
  DescribeVirtualClusterCommandInput,
48
48
  DescribeVirtualClusterCommandOutput,
49
49
  } from "../commands/DescribeVirtualClusterCommand";
50
+ import {
51
+ GetManagedEndpointSessionCredentialsCommandInput,
52
+ GetManagedEndpointSessionCredentialsCommandOutput,
53
+ } from "../commands/GetManagedEndpointSessionCredentialsCommand";
50
54
  import {
51
55
  ListJobRunsCommandInput,
52
56
  ListJobRunsCommandOutput,
@@ -123,6 +127,10 @@ export declare const se_DescribeVirtualClusterCommand: (
123
127
  input: DescribeVirtualClusterCommandInput,
124
128
  context: __SerdeContext
125
129
  ) => Promise<__HttpRequest>;
130
+ export declare const se_GetManagedEndpointSessionCredentialsCommand: (
131
+ input: GetManagedEndpointSessionCredentialsCommandInput,
132
+ context: __SerdeContext
133
+ ) => Promise<__HttpRequest>;
126
134
  export declare const se_ListJobRunsCommand: (
127
135
  input: ListJobRunsCommandInput,
128
136
  context: __SerdeContext
@@ -199,6 +207,10 @@ export declare const de_DescribeVirtualClusterCommand: (
199
207
  output: __HttpResponse,
200
208
  context: __SerdeContext
201
209
  ) => Promise<DescribeVirtualClusterCommandOutput>;
210
+ export declare const de_GetManagedEndpointSessionCredentialsCommand: (
211
+ output: __HttpResponse,
212
+ context: __SerdeContext
213
+ ) => Promise<GetManagedEndpointSessionCredentialsCommandOutput>;
202
214
  export declare const de_ListJobRunsCommand: (
203
215
  output: __HttpResponse,
204
216
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr-containers",
3
3
  "description": "AWS SDK for JavaScript Emr Containers Client for Node.js, Browser and React Native",
4
- "version": "3.319.0",
4
+ "version": "3.322.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,9 +21,9 @@
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.319.0",
24
+ "@aws-sdk/client-sts": "3.321.1",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.319.0",
26
+ "@aws-sdk/credential-provider-node": "3.321.1",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -38,7 +38,7 @@
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
- "@aws-sdk/node-http-handler": "3.310.0",
41
+ "@aws-sdk/node-http-handler": "3.321.1",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
43
  "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",