@aws-sdk/client-emr 3.1060.0 → 3.1062.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.
Files changed (45) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +85 -0
  3. package/dist-cjs/schemas/schemas_0.js +178 -32
  4. package/dist-es/EMR.js +12 -0
  5. package/dist-es/commands/GetSessionCommand.js +16 -0
  6. package/dist-es/commands/GetSessionEndpointCommand.js +16 -0
  7. package/dist-es/commands/ListSessionsCommand.js +16 -0
  8. package/dist-es/commands/StartSessionCommand.js +16 -0
  9. package/dist-es/commands/TerminateSessionCommand.js +16 -0
  10. package/dist-es/commands/index.js +5 -0
  11. package/dist-es/models/enums.js +10 -0
  12. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +1 -0
  14. package/dist-es/schemas/schemas_0.js +171 -26
  15. package/dist-types/EMR.d.ts +42 -0
  16. package/dist-types/EMRClient.d.ts +7 -2
  17. package/dist-types/commands/AddTagsCommand.d.ts +1 -0
  18. package/dist-types/commands/DescribeClusterCommand.d.ts +1 -0
  19. package/dist-types/commands/GetSessionCommand.d.ts +155 -0
  20. package/dist-types/commands/GetSessionEndpointCommand.d.ts +92 -0
  21. package/dist-types/commands/ListSessionsCommand.d.ts +162 -0
  22. package/dist-types/commands/RemoveTagsCommand.d.ts +1 -0
  23. package/dist-types/commands/RunJobFlowCommand.d.ts +1 -0
  24. package/dist-types/commands/StartSessionCommand.d.ts +141 -0
  25. package/dist-types/commands/TerminateSessionCommand.d.ts +86 -0
  26. package/dist-types/commands/index.d.ts +5 -0
  27. package/dist-types/models/enums.d.ts +18 -0
  28. package/dist-types/models/models_0.d.ts +473 -7
  29. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  30. package/dist-types/pagination/index.d.ts +1 -0
  31. package/dist-types/schemas/schemas_0.d.ts +21 -0
  32. package/dist-types/ts3.4/EMR.d.ts +92 -0
  33. package/dist-types/ts3.4/EMRClient.d.ts +30 -0
  34. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +49 -0
  35. package/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +53 -0
  36. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +49 -0
  37. package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +49 -0
  38. package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +52 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  40. package/dist-types/ts3.4/models/enums.d.ts +11 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +108 -0
  42. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  43. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  44. package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  45. package/package.json +2 -2
@@ -39,6 +39,7 @@ import {
39
39
  RepoUpgradeOnBoot,
40
40
  ScaleDownBehavior,
41
41
  ScalingStrategy,
42
+ SessionState,
42
43
  SpotProvisioningAllocationStrategy,
43
44
  SpotProvisioningTimeoutAction,
44
45
  Statistic,
@@ -187,6 +188,7 @@ export interface Tag {
187
188
  export interface AddTagsInput {
188
189
  ResourceId: string | undefined;
189
190
  Tags: Tag[] | undefined;
191
+ ClusterId?: string | undefined;
190
192
  }
191
193
  export interface AddTagsOutput {}
192
194
  export interface Application {
@@ -243,6 +245,10 @@ export interface CancelStepsInfo {
243
245
  export interface CancelStepsOutput {
244
246
  CancelStepsInfoList?: CancelStepsInfo[] | undefined;
245
247
  }
248
+ export interface CertificateAuthority {
249
+ CertificateArn?: string | undefined;
250
+ CertificateData?: string | undefined;
251
+ }
246
252
  export interface CloudWatchLogConfiguration {
247
253
  Enabled: boolean | undefined;
248
254
  LogGroupName?: string | undefined;
@@ -703,6 +709,44 @@ export interface GetPersistentAppUIPresignedURLOutput {
703
709
  PresignedURLReady?: boolean | undefined;
704
710
  PresignedURL?: string | undefined;
705
711
  }
712
+ export interface GetSessionInput {
713
+ ClusterId: string | undefined;
714
+ SessionId: string | undefined;
715
+ }
716
+ export interface SessionCloudWatchLoggingConfiguration {
717
+ Enabled?: boolean | undefined;
718
+ LogGroup?: string | undefined;
719
+ LogStreamNamePrefix?: string | undefined;
720
+ EncryptionKeyArn?: string | undefined;
721
+ LogTypes?: Record<string, string[]> | undefined;
722
+ }
723
+ export interface SessionManagedLoggingConfiguration {
724
+ Enabled?: boolean | undefined;
725
+ EncryptionKeyArn?: string | undefined;
726
+ }
727
+ export interface SessionS3LoggingConfiguration {
728
+ Enabled?: boolean | undefined;
729
+ LogUri?: string | undefined;
730
+ EncryptionKeyArn?: string | undefined;
731
+ LogTypes?: Record<string, string[]> | undefined;
732
+ }
733
+ export interface SessionMonitoringConfiguration {
734
+ CloudWatchLoggingConfiguration?:
735
+ | SessionCloudWatchLoggingConfiguration
736
+ | undefined;
737
+ ManagedLoggingConfiguration?: SessionManagedLoggingConfiguration | undefined;
738
+ S3LoggingConfiguration?: SessionS3LoggingConfiguration | undefined;
739
+ }
740
+ export interface GetSessionEndpointInput {
741
+ ClusterId: string | undefined;
742
+ SessionId: string | undefined;
743
+ }
744
+ export interface GetSessionEndpointOutput {
745
+ Endpoint: string | undefined;
746
+ AuthToken?: string | undefined;
747
+ AuthTokenExpirationTime?: Date | undefined;
748
+ Credentials?: Credentials | undefined;
749
+ }
706
750
  export interface GetStudioSessionMappingInput {
707
751
  StudioId: string | undefined;
708
752
  IdentityId?: string | undefined;
@@ -871,6 +915,12 @@ export interface ListSecurityConfigurationsOutput {
871
915
  SecurityConfigurations?: SecurityConfigurationSummary[] | undefined;
872
916
  Marker?: string | undefined;
873
917
  }
918
+ export interface ListSessionsInput {
919
+ ClusterId: string | undefined;
920
+ SessionStates?: SessionState[] | undefined;
921
+ NextToken?: string | undefined;
922
+ MaxResults?: number | undefined;
923
+ }
874
924
  export interface ListStepsInput {
875
925
  ClusterId: string | undefined;
876
926
  StepStates?: StepState[] | undefined;
@@ -991,6 +1041,7 @@ export interface RemoveManagedScalingPolicyOutput {}
991
1041
  export interface RemoveTagsInput {
992
1042
  ResourceId: string | undefined;
993
1043
  TagKeys: string[] | undefined;
1044
+ ClusterId?: string | undefined;
994
1045
  }
995
1046
  export interface RemoveTagsOutput {}
996
1047
  export interface SupportedProductConfig {
@@ -1042,12 +1093,28 @@ export interface StartNotebookExecutionInput {
1042
1093
  export interface StartNotebookExecutionOutput {
1043
1094
  NotebookExecutionId?: string | undefined;
1044
1095
  }
1096
+ export interface StartSessionOutput {
1097
+ Id: string | undefined;
1098
+ ClusterId?: string | undefined;
1099
+ Arn?: string | undefined;
1100
+ AccountId?: string | undefined;
1101
+ State?: SessionState | undefined;
1102
+ }
1045
1103
  export interface StopNotebookExecutionInput {
1046
1104
  NotebookExecutionId: string | undefined;
1047
1105
  }
1048
1106
  export interface TerminateJobFlowsInput {
1049
1107
  JobFlowIds: string[] | undefined;
1050
1108
  }
1109
+ export interface TerminateSessionInput {
1110
+ ClusterId: string | undefined;
1111
+ SessionId: string | undefined;
1112
+ }
1113
+ export interface TerminateSessionOutput {
1114
+ ClusterId: string | undefined;
1115
+ SessionId: string | undefined;
1116
+ State: SessionState | undefined;
1117
+ }
1051
1118
  export interface UpdateStudioInput {
1052
1119
  StudioId: string | undefined;
1053
1120
  Name?: string | undefined;
@@ -1112,6 +1179,7 @@ export interface Cluster {
1112
1179
  EbsRootVolumeThroughput?: number | undefined;
1113
1180
  ExtendedSupport?: boolean | undefined;
1114
1181
  MonitoringConfiguration?: MonitoringConfiguration | undefined;
1182
+ SessionEnabled?: boolean | undefined;
1115
1183
  }
1116
1184
  export interface InstanceGroupConfig {
1117
1185
  Name?: string | undefined;
@@ -1154,6 +1222,38 @@ export interface InstanceTypeSpecification {
1154
1222
  CustomAmiId?: string | undefined;
1155
1223
  Priority?: number | undefined;
1156
1224
  }
1225
+ export interface Session {
1226
+ Id: string | undefined;
1227
+ ClusterId: string | undefined;
1228
+ Name?: string | undefined;
1229
+ Arn: string | undefined;
1230
+ State: SessionState | undefined;
1231
+ StateChangeReason?: string | undefined;
1232
+ ReleaseLabel?: string | undefined;
1233
+ ExecutionRoleArn?: string | undefined;
1234
+ AccountId?: string | undefined;
1235
+ CreatedAt?: Date | undefined;
1236
+ UpdatedAt?: Date | undefined;
1237
+ StartedAt?: Date | undefined;
1238
+ EndedAt?: Date | undefined;
1239
+ IdleSince?: Date | undefined;
1240
+ EngineConfigurations?: Configuration[] | undefined;
1241
+ MonitoringConfiguration?: SessionMonitoringConfiguration | undefined;
1242
+ SessionIdleTimeoutInMinutes?: number | undefined;
1243
+ CertificateAuthority?: CertificateAuthority | undefined;
1244
+ ServerUrl?: string | undefined;
1245
+ Tags?: Tag[] | undefined;
1246
+ }
1247
+ export interface StartSessionInput {
1248
+ Name?: string | undefined;
1249
+ ClusterId: string | undefined;
1250
+ ExecutionRoleArn?: string | undefined;
1251
+ EngineConfigurations?: Configuration[] | undefined;
1252
+ MonitoringConfiguration?: SessionMonitoringConfiguration | undefined;
1253
+ SessionIdleTimeoutInMinutes?: number | undefined;
1254
+ ClientRequestToken?: string | undefined;
1255
+ Tags?: Tag[] | undefined;
1256
+ }
1157
1257
  export interface DescribeClusterOutput {
1158
1258
  Cluster?: Cluster | undefined;
1159
1259
  }
@@ -1163,6 +1263,9 @@ export interface GetBlockPublicAccessConfigurationOutput {
1163
1263
  | BlockPublicAccessConfigurationMetadata
1164
1264
  | undefined;
1165
1265
  }
1266
+ export interface GetSessionOutput {
1267
+ Session: Session | undefined;
1268
+ }
1166
1269
  export interface PutBlockPublicAccessConfigurationInput {
1167
1270
  BlockPublicAccessConfiguration: BlockPublicAccessConfiguration | undefined;
1168
1271
  }
@@ -1202,6 +1305,10 @@ export interface InstanceFleetModifyConfig {
1202
1305
  InstanceTypeConfigs?: InstanceTypeConfig[] | undefined;
1203
1306
  Context?: string | undefined;
1204
1307
  }
1308
+ export interface ListSessionsOutput {
1309
+ Sessions?: Session[] | undefined;
1310
+ NextToken?: string | undefined;
1311
+ }
1205
1312
  export interface ModifyInstanceGroupsInput {
1206
1313
  ClusterId?: string | undefined;
1207
1314
  InstanceGroups?: InstanceGroupModifyConfig[] | undefined;
@@ -1297,4 +1404,5 @@ export interface RunJobFlowInput {
1297
1404
  EbsRootVolumeThroughput?: number | undefined;
1298
1405
  ExtendedSupport?: boolean | undefined;
1299
1406
  MonitoringConfiguration?: MonitoringConfiguration | undefined;
1407
+ SessionEnabled?: boolean | undefined;
1300
1408
  }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListSessionsCommandInput,
4
+ ListSessionsCommandOutput,
5
+ } from "../commands/ListSessionsCommand";
6
+ import { EMRPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListSessions: (
8
+ config: EMRPaginationConfiguration,
9
+ input: ListSessionsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListSessionsCommandOutput>;
@@ -7,6 +7,7 @@ export * from "./ListInstancesPaginator";
7
7
  export * from "./ListNotebookExecutionsPaginator";
8
8
  export * from "./ListReleaseLabelsPaginator";
9
9
  export * from "./ListSecurityConfigurationsPaginator";
10
+ export * from "./ListSessionsPaginator";
10
11
  export * from "./ListStepsPaginator";
11
12
  export * from "./ListStudiosPaginator";
12
13
  export * from "./ListStudioSessionMappingsPaginator";
@@ -31,6 +31,7 @@ export declare var BootstrapActionDetail$: StaticStructureSchema;
31
31
  export declare var CancelStepsInfo$: StaticStructureSchema;
32
32
  export declare var CancelStepsInput$: StaticStructureSchema;
33
33
  export declare var CancelStepsOutput$: StaticStructureSchema;
34
+ export declare var CertificateAuthority$: StaticStructureSchema;
34
35
  export declare var CloudWatchAlarmDefinition$: StaticStructureSchema;
35
36
  export declare var CloudWatchLogConfiguration$: StaticStructureSchema;
36
37
  export declare var Cluster$: StaticStructureSchema;
@@ -89,6 +90,10 @@ export declare var GetOnClusterAppUIPresignedURLInput$: StaticStructureSchema;
89
90
  export declare var GetOnClusterAppUIPresignedURLOutput$: StaticStructureSchema;
90
91
  export declare var GetPersistentAppUIPresignedURLInput$: StaticStructureSchema;
91
92
  export declare var GetPersistentAppUIPresignedURLOutput$: StaticStructureSchema;
93
+ export declare var GetSessionEndpointInput$: StaticStructureSchema;
94
+ export declare var GetSessionEndpointOutput$: StaticStructureSchema;
95
+ export declare var GetSessionInput$: StaticStructureSchema;
96
+ export declare var GetSessionOutput$: StaticStructureSchema;
92
97
  export declare var GetStudioSessionMappingInput$: StaticStructureSchema;
93
98
  export declare var GetStudioSessionMappingOutput$: StaticStructureSchema;
94
99
  export declare var HadoopJarStepConfig$: StaticStructureSchema;
@@ -137,6 +142,8 @@ export declare var ListReleaseLabelsInput$: StaticStructureSchema;
137
142
  export declare var ListReleaseLabelsOutput$: StaticStructureSchema;
138
143
  export declare var ListSecurityConfigurationsInput$: StaticStructureSchema;
139
144
  export declare var ListSecurityConfigurationsOutput$: StaticStructureSchema;
145
+ export declare var ListSessionsInput$: StaticStructureSchema;
146
+ export declare var ListSessionsOutput$: StaticStructureSchema;
140
147
  export declare var ListStepsInput$: StaticStructureSchema;
141
148
  export declare var ListStepsOutput$: StaticStructureSchema;
142
149
  export declare var ListStudioSessionMappingsInput$: StaticStructureSchema;
@@ -193,8 +200,13 @@ export declare var ScalingRule$: StaticStructureSchema;
193
200
  export declare var ScalingTrigger$: StaticStructureSchema;
194
201
  export declare var ScriptBootstrapActionConfig$: StaticStructureSchema;
195
202
  export declare var SecurityConfigurationSummary$: StaticStructureSchema;
203
+ export declare var Session$: StaticStructureSchema;
204
+ export declare var SessionCloudWatchLoggingConfiguration$: StaticStructureSchema;
205
+ export declare var SessionManagedLoggingConfiguration$: StaticStructureSchema;
196
206
  export declare var SessionMappingDetail$: StaticStructureSchema;
197
207
  export declare var SessionMappingSummary$: StaticStructureSchema;
208
+ export declare var SessionMonitoringConfiguration$: StaticStructureSchema;
209
+ export declare var SessionS3LoggingConfiguration$: StaticStructureSchema;
198
210
  export declare var SetKeepJobFlowAliveWhenNoStepsInput$: StaticStructureSchema;
199
211
  export declare var SetTerminationProtectionInput$: StaticStructureSchema;
200
212
  export declare var SetUnhealthyNodeReplacementInput$: StaticStructureSchema;
@@ -206,6 +218,8 @@ export declare var SpotProvisioningSpecification$: StaticStructureSchema;
206
218
  export declare var SpotResizingSpecification$: StaticStructureSchema;
207
219
  export declare var StartNotebookExecutionInput$: StaticStructureSchema;
208
220
  export declare var StartNotebookExecutionOutput$: StaticStructureSchema;
221
+ export declare var StartSessionInput$: StaticStructureSchema;
222
+ export declare var StartSessionOutput$: StaticStructureSchema;
209
223
  export declare var Step$: StaticStructureSchema;
210
224
  export declare var StepConfig$: StaticStructureSchema;
211
225
  export declare var StepDetail$: StaticStructureSchema;
@@ -222,6 +236,8 @@ export declare var SupportedInstanceType$: StaticStructureSchema;
222
236
  export declare var SupportedProductConfig$: StaticStructureSchema;
223
237
  export declare var Tag$: StaticStructureSchema;
224
238
  export declare var TerminateJobFlowsInput$: StaticStructureSchema;
239
+ export declare var TerminateSessionInput$: StaticStructureSchema;
240
+ export declare var TerminateSessionOutput$: StaticStructureSchema;
225
241
  export declare var UpdateStudioInput$: StaticStructureSchema;
226
242
  export declare var UpdateStudioSessionMappingInput$: StaticStructureSchema;
227
243
  export declare var UsernamePassword$: StaticStructureSchema;
@@ -253,6 +269,8 @@ export declare var GetClusterSessionCredentials$: StaticOperationSchema;
253
269
  export declare var GetManagedScalingPolicy$: StaticOperationSchema;
254
270
  export declare var GetOnClusterAppUIPresignedURL$: StaticOperationSchema;
255
271
  export declare var GetPersistentAppUIPresignedURL$: StaticOperationSchema;
272
+ export declare var GetSession$: StaticOperationSchema;
273
+ export declare var GetSessionEndpoint$: StaticOperationSchema;
256
274
  export declare var GetStudioSessionMapping$: StaticOperationSchema;
257
275
  export declare var ListBootstrapActions$: StaticOperationSchema;
258
276
  export declare var ListClusters$: StaticOperationSchema;
@@ -262,6 +280,7 @@ export declare var ListInstances$: StaticOperationSchema;
262
280
  export declare var ListNotebookExecutions$: StaticOperationSchema;
263
281
  export declare var ListReleaseLabels$: StaticOperationSchema;
264
282
  export declare var ListSecurityConfigurations$: StaticOperationSchema;
283
+ export declare var ListSessions$: StaticOperationSchema;
265
284
  export declare var ListSteps$: StaticOperationSchema;
266
285
  export declare var ListStudios$: StaticOperationSchema;
267
286
  export declare var ListStudioSessionMappings$: StaticOperationSchema;
@@ -283,7 +302,9 @@ export declare var SetTerminationProtection$: StaticOperationSchema;
283
302
  export declare var SetUnhealthyNodeReplacement$: StaticOperationSchema;
284
303
  export declare var SetVisibleToAllUsers$: StaticOperationSchema;
285
304
  export declare var StartNotebookExecution$: StaticOperationSchema;
305
+ export declare var StartSession$: StaticOperationSchema;
286
306
  export declare var StopNotebookExecution$: StaticOperationSchema;
287
307
  export declare var TerminateJobFlows$: StaticOperationSchema;
308
+ export declare var TerminateSession$: StaticOperationSchema;
288
309
  export declare var UpdateStudio$: StaticOperationSchema;
289
310
  export declare var UpdateStudioSessionMapping$: StaticOperationSchema;
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.1060.0",
4
+ "version": "3.1062.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-emr",
@@ -24,7 +24,7 @@
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
26
  "@aws-sdk/core": "^3.974.17",
27
- "@aws-sdk/credential-provider-node": "^3.972.50",
27
+ "@aws-sdk/credential-provider-node": "^3.972.51",
28
28
  "@aws-sdk/types": "^3.973.10",
29
29
  "@smithy/core": "^3.24.6",
30
30
  "@smithy/fetch-http-handler": "^5.4.6",