Skip to content

Commit 9fdebe9

Browse files
author
AWS
committed
Amazon Athena Update: 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.
1 parent 4aeda8e commit 9fdebe9

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Athena",
4+
"contributor": "",
5+
"description": "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."
6+
}

services/athena/src/main/resources/codegen-resources/service-2.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@
536536
{"shape":"InvalidRequestException"},
537537
{"shape":"TooManyRequestsException"}
538538
],
539-
"documentation":"<p>Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with the same name already exists in the workgroup, throws an error.</p>"
539+
"documentation":"<p>Imports a single <code>ipynb</code> file to a Spark enabled workgroup. To import the 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 <code>InvalidRequestException</code> occurs. The maximum file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with the same name already exists in the workgroup, throws an error.</p>"
540540
},
541541
"ListApplicationDPUSizes":{
542542
"name":"ListApplicationDPUSizes",
@@ -2656,7 +2656,6 @@
26562656
"required":[
26572657
"WorkGroup",
26582658
"Name",
2659-
"Payload",
26602659
"Type"
26612660
],
26622661
"members":{
@@ -2670,12 +2669,16 @@
26702669
},
26712670
"Payload":{
26722671
"shape":"Payload",
2673-
"documentation":"<p>The notebook content to be imported.</p>"
2672+
"documentation":"<p>The notebook content to be imported. The payload must be in <code>ipynb</code> format.</p>"
26742673
},
26752674
"Type":{
26762675
"shape":"NotebookType",
26772676
"documentation":"<p>The notebook content type. Currently, the only valid type is <code>IPYNB</code>.</p>"
26782677
},
2678+
"NotebookS3LocationUri":{
2679+
"shape":"S3Uri",
2680+
"documentation":"<p>A URI that specifies the Amazon S3 location of a notebook file in <code>ipynb</code> format.</p>"
2681+
},
26792682
"ClientRequestToken":{
26802683
"shape":"ClientRequestToken",
26812684
"documentation":"<p>A unique case-sensitive string used to ensure the request to import the notebook is idempotent (executes only once).</p> <important> <p>This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.</p> </important>"
@@ -4875,7 +4878,7 @@
48754878
},
48764879
"ExecutionRole":{
48774880
"shape":"RoleArn",
4878-
"documentation":"<p>The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups.</p>"
4881+
"documentation":"<p>The ARN of the execution role used to access user resources for Spark sessions and IAM Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and IAM Identity Center enabled workgroups. The property is required for IAM Identity Center enabled workgroups.</p>"
48794882
},
48804883
"CustomerContentEncryptionConfiguration":{
48814884
"shape":"CustomerContentEncryptionConfiguration",

0 commit comments

Comments
 (0)