@aws-sdk/client-athena 3.495.0 → 3.499.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/dist-cjs/index.js CHANGED
@@ -5177,19 +5177,17 @@ var paginateListWorkGroups = (0, import_core.createPaginator)(AthenaClient, List
5177
5177
  // src/index.ts
5178
5178
  var import_util_endpoints = require("@aws-sdk/util-endpoints");
5179
5179
  // Annotate the CommonJS export names for ESM import in node:
5180
+
5180
5181
  0 && (module.exports = {
5181
- Athena,
5182
- AthenaClient,
5183
5182
  AthenaServiceException,
5184
- AuthenticationType,
5183
+ __Client,
5184
+ AthenaClient,
5185
+ Athena,
5186
+ $Command,
5185
5187
  BatchGetNamedQueryCommand,
5186
5188
  BatchGetPreparedStatementCommand,
5187
5189
  BatchGetQueryExecutionCommand,
5188
- CalculationExecutionState,
5189
5190
  CancelCapacityReservationCommand,
5190
- CapacityAllocationStatus,
5191
- CapacityReservationStatus,
5192
- ColumnNullable,
5193
5191
  CreateCapacityReservationCommand,
5194
5192
  CreateDataCatalogCommand,
5195
5193
  CreateNamedQueryCommand,
@@ -5197,16 +5195,12 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5197
5195
  CreatePreparedStatementCommand,
5198
5196
  CreatePresignedNotebookUrlCommand,
5199
5197
  CreateWorkGroupCommand,
5200
- DataCatalogType,
5201
5198
  DeleteCapacityReservationCommand,
5202
5199
  DeleteDataCatalogCommand,
5203
5200
  DeleteNamedQueryCommand,
5204
5201
  DeleteNotebookCommand,
5205
5202
  DeletePreparedStatementCommand,
5206
5203
  DeleteWorkGroupCommand,
5207
- EncryptionOption,
5208
- ExecutorState,
5209
- ExecutorType,
5210
5204
  ExportNotebookCommand,
5211
5205
  GetCalculationExecutionCodeCommand,
5212
5206
  GetCalculationExecutionCommand,
@@ -5226,8 +5220,6 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5226
5220
  GetTableMetadataCommand,
5227
5221
  GetWorkGroupCommand,
5228
5222
  ImportNotebookCommand,
5229
- InternalServerException,
5230
- InvalidRequestException,
5231
5223
  ListApplicationDPUSizesCommand,
5232
5224
  ListCalculationExecutionsCommand,
5233
5225
  ListCapacityReservationsCommand,
@@ -5244,24 +5236,14 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5244
5236
  ListTableMetadataCommand,
5245
5237
  ListTagsForResourceCommand,
5246
5238
  ListWorkGroupsCommand,
5247
- MetadataException,
5248
- NotebookType,
5249
5239
  PutCapacityAssignmentConfigurationCommand,
5250
- QueryExecutionState,
5251
- ResourceNotFoundException,
5252
- S3AclOption,
5253
- SessionAlreadyExistsException,
5254
- SessionState,
5255
5240
  StartCalculationExecutionCommand,
5256
5241
  StartQueryExecutionCommand,
5257
5242
  StartSessionCommand,
5258
- StatementType,
5259
5243
  StopCalculationExecutionCommand,
5260
5244
  StopQueryExecutionCommand,
5261
5245
  TagResourceCommand,
5262
5246
  TerminateSessionCommand,
5263
- ThrottleReason,
5264
- TooManyRequestsException,
5265
5247
  UntagResourceCommand,
5266
5248
  UpdateCapacityReservationCommand,
5267
5249
  UpdateDataCatalogCommand,
@@ -5270,8 +5252,6 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5270
5252
  UpdateNotebookMetadataCommand,
5271
5253
  UpdatePreparedStatementCommand,
5272
5254
  UpdateWorkGroupCommand,
5273
- WorkGroupState,
5274
- __Client,
5275
5255
  paginateGetQueryResults,
5276
5256
  paginateListApplicationDPUSizes,
5277
5257
  paginateListCalculationExecutions,
@@ -5286,5 +5266,28 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5286
5266
  paginateListSessions,
5287
5267
  paginateListTableMetadata,
5288
5268
  paginateListTagsForResource,
5289
- paginateListWorkGroups
5269
+ paginateListWorkGroups,
5270
+ S3AclOption,
5271
+ InternalServerException,
5272
+ InvalidRequestException,
5273
+ AuthenticationType,
5274
+ EncryptionOption,
5275
+ StatementType,
5276
+ QueryExecutionState,
5277
+ DataCatalogType,
5278
+ ThrottleReason,
5279
+ TooManyRequestsException,
5280
+ ResourceNotFoundException,
5281
+ NotebookType,
5282
+ CalculationExecutionState,
5283
+ CapacityAllocationStatus,
5284
+ CapacityReservationStatus,
5285
+ MetadataException,
5286
+ ColumnNullable,
5287
+ SessionState,
5288
+ WorkGroupState,
5289
+ ExecutorState,
5290
+ ExecutorType,
5291
+ SessionAlreadyExistsException
5290
5292
  });
5293
+
@@ -26,9 +26,11 @@ declare const ImportNotebookCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum
30
- * file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with the
31
- * same name already exists in the workgroup, throws an error.</p>
29
+ * <p>Imports a single <code>ipynb</code> file to a Spark enabled workgroup. To import the
30
+ * notebook, the request must specify a value for either <code>Payload</code> or <code>NoteBookS3LocationUri</code>. If neither is specified or both are specified, an
31
+ * <code>InvalidRequestException</code> occurs. The maximum file size that can be imported is 10
32
+ * megabytes. If an <code>ipynb</code> file with the same name already exists in the
33
+ * workgroup, throws an error.</p>
32
34
  * @example
33
35
  * Use a bare-bones client and the command you need to make an API call.
34
36
  * ```javascript
@@ -38,8 +40,9 @@ declare const ImportNotebookCommand_base: {
38
40
  * const input = { // ImportNotebookInput
39
41
  * WorkGroup: "STRING_VALUE", // required
40
42
  * Name: "STRING_VALUE", // required
41
- * Payload: "STRING_VALUE", // required
43
+ * Payload: "STRING_VALUE",
42
44
  * Type: "IPYNB", // required
45
+ * NotebookS3LocationUri: "STRING_VALUE",
43
46
  * ClientRequestToken: "STRING_VALUE",
44
47
  * };
45
48
  * const command = new ImportNotebookCommand(input);
@@ -529,7 +529,8 @@ export interface QueryExecutionStatistics {
529
529
  QueryQueueTimeInMillis?: number;
530
530
  /**
531
531
  * @public
532
- * <p>The number of milliseconds that Athena took to preprocess the query before submitting the query to the query engine.</p>
532
+ * <p>The number of milliseconds that Athena took to preprocess the query before
533
+ * submitting the query to the query engine.</p>
533
534
  */
534
535
  ServicePreProcessingTimeInMillis?: number;
535
536
  /**
@@ -1246,9 +1247,10 @@ export interface WorkGroupConfiguration {
1246
1247
  AdditionalConfiguration?: string;
1247
1248
  /**
1248
1249
  * @public
1249
- * <p>The ARN of the execution role used to access user resources for Spark sessions and Identity Center
1250
- * enabled workgroups. This property applies only to Spark enabled workgroups and Identity
1251
- * Center enabled workgroups.</p>
1250
+ * <p>The ARN of the execution role used to access user resources for Spark sessions and
1251
+ * IAM Identity Center enabled workgroups. This property applies only to Spark enabled
1252
+ * workgroups and IAM Identity Center enabled workgroups. The property is required for
1253
+ * IAM Identity Center enabled workgroups.</p>
1252
1254
  */
1253
1255
  ExecutionRole?: string;
1254
1256
  /**
@@ -2361,9 +2363,8 @@ export interface QueryRuntimeStatisticsTimeline {
2361
2363
  QueryQueueTimeInMillis?: number;
2362
2364
  /**
2363
2365
  * @public
2364
- * <p>
2365
- * The number of milliseconds that Athena spends on preprocessing before it submits the query to the engine.
2366
- * </p>
2366
+ * <p> The number of milliseconds that Athena spends on preprocessing before it
2367
+ * submits the query to the engine. </p>
2367
2368
  */
2368
2369
  ServicePreProcessingTimeInMillis?: number;
2369
2370
  /**
@@ -2449,9 +2450,9 @@ export interface EngineConfiguration {
2449
2450
  export interface SessionConfiguration {
2450
2451
  /**
2451
2452
  * @public
2452
- * <p>The ARN of the execution role used to access user resources for Spark sessions and Identity Center
2453
- * enabled workgroups. This property applies only to Spark enabled workgroups and Identity
2454
- * Center enabled workgroups.</p>
2453
+ * <p>The ARN of the execution role used to access user resources for Spark sessions and
2454
+ * Identity Center enabled workgroups. This property applies only to Spark enabled
2455
+ * workgroups and Identity Center enabled workgroups.</p>
2455
2456
  */
2456
2457
  ExecutionRole?: string;
2457
2458
  /**
@@ -2832,15 +2833,20 @@ export interface ImportNotebookInput {
2832
2833
  Name: string | undefined;
2833
2834
  /**
2834
2835
  * @public
2835
- * <p>The notebook content to be imported.</p>
2836
+ * <p>The notebook content to be imported. The payload must be in <code>ipynb</code> format.</p>
2836
2837
  */
2837
- Payload: string | undefined;
2838
+ Payload?: string;
2838
2839
  /**
2839
2840
  * @public
2840
2841
  * <p>The notebook content type. Currently, the only valid type is
2841
2842
  * <code>IPYNB</code>.</p>
2842
2843
  */
2843
2844
  Type: NotebookType | undefined;
2845
+ /**
2846
+ * @public
2847
+ * <p>A URI that specifies the Amazon S3 location of a notebook file in <code>ipynb</code> format.</p>
2848
+ */
2849
+ NotebookS3LocationUri?: string;
2844
2850
  /**
2845
2851
  * @public
2846
2852
  * <p>A unique case-sensitive string used to ensure the request to import the notebook is
@@ -3094,8 +3100,7 @@ export interface ListDataCatalogsInput {
3094
3100
  MaxResults?: number;
3095
3101
  /**
3096
3102
  * @public
3097
- * <p>The name of the workgroup. Required if
3098
- * making an IAM Identity Center request.</p>
3103
+ * <p>The name of the workgroup. Required if making an IAM Identity Center request.</p>
3099
3104
  */
3100
3105
  WorkGroup?: string;
3101
3106
  }
@@ -4605,9 +4610,9 @@ export interface WorkGroupConfigurationUpdates {
4605
4610
  AdditionalConfiguration?: string;
4606
4611
  /**
4607
4612
  * @public
4608
- * <p>The ARN of the execution role used to access user resources for Spark sessions and Identity Center
4609
- * enabled workgroups. This property applies only to Spark enabled workgroups and Identity
4610
- * Center enabled workgroups.</p>
4613
+ * <p>The ARN of the execution role used to access user resources for Spark sessions and
4614
+ * Identity Center enabled workgroups. This property applies only to Spark enabled
4615
+ * workgroups and Identity Center enabled workgroups.</p>
4611
4616
  */
4612
4617
  ExecutionRole?: string;
4613
4618
  /**
@@ -656,8 +656,9 @@ export interface GetWorkGroupOutput {
656
656
  export interface ImportNotebookInput {
657
657
  WorkGroup: string | undefined;
658
658
  Name: string | undefined;
659
- Payload: string | undefined;
659
+ Payload?: string;
660
660
  Type: NotebookType | undefined;
661
+ NotebookS3LocationUri?: string;
661
662
  ClientRequestToken?: string;
662
663
  }
663
664
  export interface ImportNotebookOutput {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-athena",
3
3
  "description": "AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",
4
- "version": "3.495.0",
4
+ "version": "3.499.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-athena",
@@ -20,48 +20,48 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.495.0",
24
- "@aws-sdk/core": "3.495.0",
25
- "@aws-sdk/credential-provider-node": "3.495.0",
26
- "@aws-sdk/middleware-host-header": "3.495.0",
27
- "@aws-sdk/middleware-logger": "3.495.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.495.0",
29
- "@aws-sdk/middleware-signing": "3.495.0",
30
- "@aws-sdk/middleware-user-agent": "3.495.0",
31
- "@aws-sdk/region-config-resolver": "3.495.0",
32
- "@aws-sdk/types": "3.495.0",
33
- "@aws-sdk/util-endpoints": "3.495.0",
34
- "@aws-sdk/util-user-agent-browser": "3.495.0",
35
- "@aws-sdk/util-user-agent-node": "3.495.0",
36
- "@smithy/config-resolver": "^2.1.0",
37
- "@smithy/core": "^1.3.0",
38
- "@smithy/fetch-http-handler": "^2.4.0",
39
- "@smithy/hash-node": "^2.1.0",
40
- "@smithy/invalid-dependency": "^2.1.0",
41
- "@smithy/middleware-content-length": "^2.1.0",
42
- "@smithy/middleware-endpoint": "^2.4.0",
43
- "@smithy/middleware-retry": "^2.1.0",
44
- "@smithy/middleware-serde": "^2.1.0",
45
- "@smithy/middleware-stack": "^2.1.0",
46
- "@smithy/node-config-provider": "^2.2.0",
47
- "@smithy/node-http-handler": "^2.3.0",
48
- "@smithy/protocol-http": "^3.1.0",
49
- "@smithy/smithy-client": "^2.3.0",
50
- "@smithy/types": "^2.9.0",
51
- "@smithy/url-parser": "^2.1.0",
52
- "@smithy/util-base64": "^2.1.0",
53
- "@smithy/util-body-length-browser": "^2.1.0",
54
- "@smithy/util-body-length-node": "^2.2.0",
55
- "@smithy/util-defaults-mode-browser": "^2.1.0",
56
- "@smithy/util-defaults-mode-node": "^2.1.0",
57
- "@smithy/util-endpoints": "^1.1.0",
58
- "@smithy/util-retry": "^2.1.0",
59
- "@smithy/util-utf8": "^2.1.0",
23
+ "@aws-sdk/client-sts": "3.499.0",
24
+ "@aws-sdk/core": "3.496.0",
25
+ "@aws-sdk/credential-provider-node": "3.499.0",
26
+ "@aws-sdk/middleware-host-header": "3.496.0",
27
+ "@aws-sdk/middleware-logger": "3.496.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.496.0",
29
+ "@aws-sdk/middleware-signing": "3.496.0",
30
+ "@aws-sdk/middleware-user-agent": "3.496.0",
31
+ "@aws-sdk/region-config-resolver": "3.496.0",
32
+ "@aws-sdk/types": "3.496.0",
33
+ "@aws-sdk/util-endpoints": "3.496.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.496.0",
35
+ "@aws-sdk/util-user-agent-node": "3.496.0",
36
+ "@smithy/config-resolver": "^2.1.1",
37
+ "@smithy/core": "^1.3.1",
38
+ "@smithy/fetch-http-handler": "^2.4.1",
39
+ "@smithy/hash-node": "^2.1.1",
40
+ "@smithy/invalid-dependency": "^2.1.1",
41
+ "@smithy/middleware-content-length": "^2.1.1",
42
+ "@smithy/middleware-endpoint": "^2.4.1",
43
+ "@smithy/middleware-retry": "^2.1.1",
44
+ "@smithy/middleware-serde": "^2.1.1",
45
+ "@smithy/middleware-stack": "^2.1.1",
46
+ "@smithy/node-config-provider": "^2.2.1",
47
+ "@smithy/node-http-handler": "^2.3.1",
48
+ "@smithy/protocol-http": "^3.1.1",
49
+ "@smithy/smithy-client": "^2.3.1",
50
+ "@smithy/types": "^2.9.1",
51
+ "@smithy/url-parser": "^2.1.1",
52
+ "@smithy/util-base64": "^2.1.1",
53
+ "@smithy/util-body-length-browser": "^2.1.1",
54
+ "@smithy/util-body-length-node": "^2.2.1",
55
+ "@smithy/util-defaults-mode-browser": "^2.1.1",
56
+ "@smithy/util-defaults-mode-node": "^2.1.1",
57
+ "@smithy/util-endpoints": "^1.1.1",
58
+ "@smithy/util-retry": "^2.1.1",
59
+ "@smithy/util-utf8": "^2.1.1",
60
60
  "tslib": "^2.5.0",
61
61
  "uuid": "^8.3.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@smithy/service-client-documentation-generator": "^2.1.0",
64
+ "@smithy/service-client-documentation-generator": "^2.1.1",
65
65
  "@tsconfig/node14": "1.0.3",
66
66
  "@types/node": "^14.14.31",
67
67
  "@types/uuid": "^8.3.0",