Skip to content

Commit 655c2dd

Browse files
author
awstools
committed
feat(client-athena): You can now define custom spark properties at start of the session for use cases like cluster encryption, table formats, and general Spark tuning.
1 parent f930913 commit 655c2dd

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

clients/client-athena/src/commands/GetSessionCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
6161
* // AdditionalConfigs: { // ParametersMap
6262
* // "<keys>": "STRING_VALUE",
6363
* // },
64+
* // SparkProperties: {
65+
* // "<keys>": "STRING_VALUE",
66+
* // },
6467
* // },
6568
* // NotebookVersion: "STRING_VALUE",
6669
* // SessionConfiguration: { // SessionConfiguration

clients/client-athena/src/commands/StartSessionCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export interface StartSessionCommandOutput extends StartSessionResponse, __Metad
5454
* AdditionalConfigs: { // ParametersMap
5555
* "<keys>": "STRING_VALUE",
5656
* },
57+
* SparkProperties: {
58+
* "<keys>": "STRING_VALUE",
59+
* },
5760
* },
5861
* NotebookVersion: "STRING_VALUE",
5962
* SessionIdleTimeoutInMinutes: Number("int"),

clients/client-athena/src/models/models_0.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ export class ResourceNotFoundException extends __BaseException {
11671167

11681168
/**
11691169
* @public
1170-
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>
1170+
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena SQL workgroups.</p>
11711171
*/
11721172
export interface CustomerContentEncryptionConfiguration {
11731173
/**
@@ -1243,7 +1243,7 @@ export interface WorkGroupConfiguration {
12431243
ExecutionRole?: string;
12441244

12451245
/**
1246-
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>
1246+
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena SQL workgroups.</p>
12471247
*/
12481248
CustomerContentEncryptionConfiguration?: CustomerContentEncryptionConfiguration;
12491249

@@ -2404,6 +2404,11 @@ export interface EngineConfiguration {
24042404
* Athena notebook ID.</p>
24052405
*/
24062406
AdditionalConfigs?: Record<string, string>;
2407+
2408+
/**
2409+
* <p>Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning.</p>
2410+
*/
2411+
SparkProperties?: Record<string, string>;
24072412
}
24082413

24092414
/**
@@ -4527,7 +4532,7 @@ export interface WorkGroupConfigurationUpdates {
45274532
EngineVersion?: EngineVersion;
45284533

45294534
/**
4530-
* <p>Removes content encryption configuration for a workgroup.</p>
4535+
* <p>Removes content encryption configuration from an Apache Spark-enabled Athena workgroup.</p>
45314536
*/
45324537
RemoveCustomerContentEncryptionConfiguration?: boolean;
45334538

@@ -4542,7 +4547,7 @@ export interface WorkGroupConfigurationUpdates {
45424547
ExecutionRole?: string;
45434548

45444549
/**
4545-
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>
4550+
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena SQL workgroups.</p>
45464551
*/
45474552
CustomerContentEncryptionConfiguration?: CustomerContentEncryptionConfiguration;
45484553

codegen/sdk-codegen/aws-models/athena.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,7 +2678,7 @@
26782678
}
26792679
},
26802680
"traits": {
2681-
"smithy.api#documentation": "<p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>"
2681+
"smithy.api#documentation": "<p>Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena SQL workgroups.</p>"
26822682
}
26832683
},
26842684
"com.amazonaws.athena#DataCatalog": {
@@ -3188,6 +3188,12 @@
31883188
"traits": {
31893189
"smithy.api#documentation": "<p>Contains additional notebook engine <code>MAP<string, string></code> parameter\n mappings in the form of key-value pairs. To specify an Athena notebook that\n the Jupyter server will download and serve, specify a value for the <a>StartSessionRequest$NotebookVersion</a> field, and then add a key named\n <code>NotebookId</code> to <code>AdditionalConfigs</code> that has the value of the\n Athena notebook ID.</p>"
31903190
}
3191+
},
3192+
"SparkProperties": {
3193+
"target": "com.amazonaws.athena#ParametersMap",
3194+
"traits": {
3195+
"smithy.api#documentation": "<p>Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning.</p>"
3196+
}
31913197
}
31923198
},
31933199
"traits": {
@@ -8656,7 +8662,7 @@
86568662
"CustomerContentEncryptionConfiguration": {
86578663
"target": "com.amazonaws.athena#CustomerContentEncryptionConfiguration",
86588664
"traits": {
8659-
"smithy.api#documentation": "<p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>"
8665+
"smithy.api#documentation": "<p>Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena SQL workgroups.</p>"
86608666
}
86618667
},
86628668
"EnableMinimumEncryptionConfiguration": {
@@ -8718,7 +8724,7 @@
87188724
"RemoveCustomerContentEncryptionConfiguration": {
87198725
"target": "com.amazonaws.athena#BoxedBoolean",
87208726
"traits": {
8721-
"smithy.api#documentation": "<p>Removes content encryption configuration for a workgroup.</p>"
8727+
"smithy.api#documentation": "<p>Removes content encryption configuration from an Apache Spark-enabled Athena workgroup.</p>"
87228728
}
87238729
},
87248730
"AdditionalConfiguration": {

0 commit comments

Comments
 (0)