Skip to content

Commit

Permalink
feat(client-athena): You can now define custom spark properties at st…
Browse files Browse the repository at this point in the history
…art of the session for use cases like cluster encryption, table formats, and general Spark tuning.
  • Loading branch information
awstools committed Jun 8, 2023
1 parent f930913 commit 655c2dd
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
3 changes: 3 additions & 0 deletions clients/client-athena/src/commands/GetSessionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export interface GetSessionCommandOutput extends GetSessionResponse, __MetadataB
* // AdditionalConfigs: { // ParametersMap
* // "<keys>": "STRING_VALUE",
* // },
* // SparkProperties: {
* // "<keys>": "STRING_VALUE",
* // },
* // },
* // NotebookVersion: "STRING_VALUE",
* // SessionConfiguration: { // SessionConfiguration
Expand Down
3 changes: 3 additions & 0 deletions clients/client-athena/src/commands/StartSessionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export interface StartSessionCommandOutput extends StartSessionResponse, __Metad
* AdditionalConfigs: { // ParametersMap
* "<keys>": "STRING_VALUE",
* },
* SparkProperties: {
* "<keys>": "STRING_VALUE",
* },
* },
* NotebookVersion: "STRING_VALUE",
* SessionIdleTimeoutInMinutes: Number("int"),
Expand Down
13 changes: 9 additions & 4 deletions clients/client-athena/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ export class ResourceNotFoundException extends __BaseException {

/**
* @public
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>
* <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>
*/
export interface CustomerContentEncryptionConfiguration {
/**
Expand Down Expand Up @@ -1243,7 +1243,7 @@ export interface WorkGroupConfiguration {
ExecutionRole?: string;

/**
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>
* <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>
*/
CustomerContentEncryptionConfiguration?: CustomerContentEncryptionConfiguration;

Expand Down Expand Up @@ -2404,6 +2404,11 @@ export interface EngineConfiguration {
* Athena notebook ID.</p>
*/
AdditionalConfigs?: Record<string, string>;

/**
* <p>Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning.</p>
*/
SparkProperties?: Record<string, string>;
}

/**
Expand Down Expand Up @@ -4527,7 +4532,7 @@ export interface WorkGroupConfigurationUpdates {
EngineVersion?: EngineVersion;

/**
* <p>Removes content encryption configuration for a workgroup.</p>
* <p>Removes content encryption configuration from an Apache Spark-enabled Athena workgroup.</p>
*/
RemoveCustomerContentEncryptionConfiguration?: boolean;

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

/**
* <p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>
* <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>
*/
CustomerContentEncryptionConfiguration?: CustomerContentEncryptionConfiguration;

Expand Down
12 changes: 9 additions & 3 deletions codegen/sdk-codegen/aws-models/athena.json
Original file line number Diff line number Diff line change
Expand Up @@ -2678,7 +2678,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>"
"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>"
}
},
"com.amazonaws.athena#DataCatalog": {
Expand Down Expand Up @@ -3188,6 +3188,12 @@
"traits": {
"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>"
}
},
"SparkProperties": {
"target": "com.amazonaws.athena#ParametersMap",
"traits": {
"smithy.api#documentation": "<p>Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -8656,7 +8662,7 @@
"CustomerContentEncryptionConfiguration": {
"target": "com.amazonaws.athena#CustomerContentEncryptionConfiguration",
"traits": {
"smithy.api#documentation": "<p>Specifies the KMS key that is used to encrypt the user's data stores in Athena.</p>"
"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>"
}
},
"EnableMinimumEncryptionConfiguration": {
Expand Down Expand Up @@ -8718,7 +8724,7 @@
"RemoveCustomerContentEncryptionConfiguration": {
"target": "com.amazonaws.athena#BoxedBoolean",
"traits": {
"smithy.api#documentation": "<p>Removes content encryption configuration for a workgroup.</p>"
"smithy.api#documentation": "<p>Removes content encryption configuration from an Apache Spark-enabled Athena workgroup.</p>"
}
},
"AdditionalConfiguration": {
Expand Down

0 comments on commit 655c2dd

Please sign in to comment.