You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client-athena): Introducing new NotebookS3LocationUri parameter to Athena ImportNotebook API. Payload is no longer required and either Payload or NotebookS3LocationUri needs to be provided (not both) for a successful ImportNotebook API call. If both are provided, an InvalidRequestException will be thrown.
* <p>Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum
32
-
* file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with the
33
-
* same name already exists in the workgroup, throws an error.</p>
31
+
* <p>Imports a single <code>ipynb</code> file to a Spark enabled workgroup. To import the
32
+
* 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
33
+
* <code>InvalidRequestException</code> occurs. The maximum file size that can be imported is 10
34
+
* megabytes. If an <code>ipynb</code> file with the same name already exists in the
35
+
* workgroup, throws an error.</p>
34
36
* @example
35
37
* Use a bare-bones client and the command you need to make an API call.
Copy file name to clipboardExpand all lines: codegen/sdk-codegen/aws-models/athena.json
+14-9
Original file line number
Diff line number
Diff line change
@@ -4568,7 +4568,7 @@
4568
4568
}
4569
4569
],
4570
4570
"traits": {
4571
-
"smithy.api#documentation": "<p>Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum\n file size that can be imported is 10megabytes. If an <code>ipynb</code> file with the\nsame name already exists in the workgroup, throws an error.</p>"
4571
+
"smithy.api#documentation": "<p>Imports a single <code>ipynb</code> file to a Spark enabled workgroup. To import the\nnotebook, the request must specify a value for either <code>Payload</code> or <code>NoteBookS3LocationUri</code>. If neither is specified or both are specified, an\n <code>InvalidRequestException</code> occurs. The maximum file size that can be imported is 10\nmegabytes. If an <code>ipynb</code> file with the same name already exists in the\n workgroup, throws an error.</p>"
4572
4572
}
4573
4573
},
4574
4574
"com.amazonaws.athena#ImportNotebookInput": {
@@ -4591,8 +4591,7 @@
4591
4591
"Payload": {
4592
4592
"target": "com.amazonaws.athena#Payload",
4593
4593
"traits": {
4594
-
"smithy.api#documentation": "<p>The notebook content to be imported.</p>",
4595
-
"smithy.api#required": {}
4594
+
"smithy.api#documentation": "<p>The notebook content to be imported. The payload must be in <code>ipynb</code> format.</p>"
4596
4595
}
4597
4596
},
4598
4597
"Type": {
@@ -4602,6 +4601,12 @@
4602
4601
"smithy.api#required": {}
4603
4602
}
4604
4603
},
4604
+
"NotebookS3LocationUri": {
4605
+
"target": "com.amazonaws.athena#S3Uri",
4606
+
"traits": {
4607
+
"smithy.api#documentation": "<p>A URI that specifies the Amazon S3 location of a notebook file in <code>ipynb</code> format.</p>"
"smithy.api#documentation": "<p>The name of the workgroup. Required if\n making an IAM Identity Center request.</p>"
4947
+
"smithy.api#documentation": "<p>The name of the workgroup. Required if making an IAM Identity Center request.</p>"
4943
4948
}
4944
4949
}
4945
4950
},
@@ -6618,7 +6623,7 @@
6618
6623
"ServicePreProcessingTimeInMillis": {
6619
6624
"target": "com.amazonaws.athena#Long",
6620
6625
"traits": {
6621
-
"smithy.api#documentation": "<p>The number of milliseconds that Athena took to preprocess the query before submitting the query to the query engine.</p>"
6626
+
"smithy.api#documentation": "<p>The number of milliseconds that Athena took to preprocess the query before\n submitting the query to the query engine.</p>"
6622
6627
}
6623
6628
},
6624
6629
"QueryPlanningTimeInMillis": {
@@ -6774,7 +6779,7 @@
6774
6779
"ServicePreProcessingTimeInMillis": {
6775
6780
"target": "com.amazonaws.athena#Long",
6776
6781
"traits": {
6777
-
"smithy.api#documentation": "<p>\nThe number of milliseconds that Athena spends on preprocessing before it submits the query to the engine.\n </p>"
6782
+
"smithy.api#documentation": "<p>The number of milliseconds that Athena spends on preprocessing before it\nsubmits the query to the engine. </p>"
6778
6783
}
6779
6784
},
6780
6785
"QueryPlanningTimeInMillis": {
@@ -7185,7 +7190,7 @@
7185
7190
"ExecutionRole": {
7186
7191
"target": "com.amazonaws.athena#RoleArn",
7187
7192
"traits": {
7188
-
"smithy.api#documentation": "<p>The ARN of the execution role used to access user resources for Spark sessions and Identity Center\n enabled workgroups. This property applies only to Spark enabled workgroups and Identity\n Center enabled workgroups.</p>"
7193
+
"smithy.api#documentation": "<p>The ARN of the execution role used to access user resources for Spark sessions and\nIdentity Center enabled workgroups. This property applies only to Spark enabled\nworkgroups and Identity Center enabled workgroups.</p>"
7189
7194
}
7190
7195
},
7191
7196
"WorkingDirectory": {
@@ -8757,7 +8762,7 @@
8757
8762
"ExecutionRole": {
8758
8763
"target": "com.amazonaws.athena#RoleArn",
8759
8764
"traits": {
8760
-
"smithy.api#documentation": "<p>The ARN of the execution role used to access user resources for Spark sessions and Identity Center\n enabled workgroups. This property applies only to Spark enabledworkgroups and Identity\n Center enabled workgroups.</p>"
8765
+
"smithy.api#documentation": "<p>The ARN of the execution role used to access user resources for Spark sessions and\n IAM Identity Center enabled workgroups. This property applies only to Spark enabled\nworkgroups and IAM Identity Center enabled workgroups. The property is required for\n IAM Identity Center enabled workgroups.</p>"
8761
8766
}
8762
8767
},
8763
8768
"CustomerContentEncryptionConfiguration": {
@@ -8849,7 +8854,7 @@
8849
8854
"ExecutionRole": {
8850
8855
"target": "com.amazonaws.athena#RoleArn",
8851
8856
"traits": {
8852
-
"smithy.api#documentation": "<p>The ARN of the execution role used to access user resources for Spark sessions and Identity Center\n enabled workgroups. This property applies only to Spark enabled workgroups and Identity\n Center enabled workgroups.</p>"
8857
+
"smithy.api#documentation": "<p>The ARN of the execution role used to access user resources for Spark sessions and\nIdentity Center enabled workgroups. This property applies only to Spark enabled\nworkgroups and Identity Center enabled workgroups.</p>"
0 commit comments