Skip to content

Commit

Permalink
feat(client-athena): Add missed InvalidRequestException in GetCalcula…
Browse files Browse the repository at this point in the history
…tionExecutionCode,StopCalculationExecution APIs. Correct required parameters (Payload and Type) in UpdateNotebook API. Change Notebook size from 15 Mb to 10 Mb.
  • Loading branch information
awstools committed Dec 19, 2022
1 parent 4390e08 commit 59c84e0
Show file tree
Hide file tree
Showing 15 changed files with 243 additions and 243 deletions.
32 changes: 17 additions & 15 deletions clients/client-athena/src/Athena.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,11 @@ import {
* in parallel—so results are fast, even with large datasets and complex queries. For more
* information, see <a href="http://docs.aws.amazon.com/athena/latest/ug/what-is.html">What is Amazon Athena</a> in the <i>Amazon Athena User
* Guide</i>.</p>
* <p>If you connect to Athena using the JDBC driver, use version 1.1.0 of the
* <p>If you connect to Athena using the JDBC driver, use version 1.1.0 of the
* driver or later with the Amazon Athena API. Earlier version drivers do not
* support the API. For more information and to download the driver, see <a href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html">Accessing
* Amazon Athena with JDBC</a>.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
*/
Expand Down Expand Up @@ -457,7 +457,7 @@ export class Athena extends AthenaClient {
/**
* <p>Creates a named query in the specified workgroup. Requires that you have access to the
* workgroup.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
*/
Expand Down Expand Up @@ -660,7 +660,7 @@ export class Athena extends AthenaClient {
/**
* <p>Deletes the named query if you have access to the workgroup in which the query was
* saved.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
*/
Expand Down Expand Up @@ -1115,17 +1115,17 @@ export class Athena extends AthenaClient {
* <code>QueryExecutionId</code> from the Athena query results location in
* Amazon S3. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Query Results</a> in the <i>Amazon Athena User Guide</i>. This request does not execute the query
* but returns results. Use <a>StartQueryExecution</a> to run a query.</p>
* <p>To stream query results successfully, the IAM principal with permission to call
* <p>To stream query results successfully, the IAM principal with permission to call
* <code>GetQueryResults</code> also must have permissions to the Amazon S3
* <code>GetObject</code> action for the Athena query results location.</p>
* <important>
* <important>
* <p>IAM principals with permission to the Amazon S3
* <code>GetObject</code> action for the query results location are able to retrieve
* query results from Amazon S3 even if permission to the
* <code>GetQueryResults</code> action is denied. To restrict user or role access,
* ensure that Amazon S3 permissions to the Athena query location
* are denied.</p>
* </important>
* </important>
*/
public getQueryResults(
args: GetQueryResultsCommandInput,
Expand Down Expand Up @@ -1158,9 +1158,11 @@ export class Athena extends AthenaClient {

/**
* <p>Returns query execution runtime statistics related to a single execution of a query if
* you have access to the workgroup in which the query ran. The query execution runtime
* statistics is returned only when <a>QueryExecutionStatus$State</a> is in a
* SUCCEEDED or FAILED state.</p>
* you have access to the workgroup in which the query ran. Query execution runtime
* statistics are returned only when <a>QueryExecutionStatus$State</a> is in a
* SUCCEEDED or FAILED state. Stage-level input and output row count and data size
* statistics are not shown when a query has row-level filters defined in Lake
* Formation.</p>
*/
public getQueryRuntimeStatistics(
args: GetQueryRuntimeStatisticsCommandInput,
Expand Down Expand Up @@ -1546,7 +1548,7 @@ export class Athena extends AthenaClient {
* <p>Provides a list of available query IDs only for queries saved in the specified
* workgroup. Requires that you have access to the specified workgroup. If a workgroup is
* not specified, lists the saved queries for the primary workgroup.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
*/
Expand Down Expand Up @@ -1683,7 +1685,7 @@ export class Athena extends AthenaClient {
* workgroup. If a workgroup is not specified, returns a list of query execution IDs for
* the primary workgroup. Requires you to have access to the workgroup in which the queries
* ran.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
*/
Expand Down Expand Up @@ -1950,12 +1952,12 @@ export class Athena extends AthenaClient {
* call on a calculation that is already in a terminal state (for example,
* <code>STOPPED</code>, <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but
* has no effect.</p>
* <note>
* <note>
* <p>Cancelling a calculation is done on a best effort basis. If a calculation cannot
* be cancelled, you can be charged for its completion. If you are concerned about
* being charged for a calculation that cannot be cancelled, consider terminating the
* session in which the calculation is running.</p>
* </note>
* </note>
*/
public stopCalculationExecution(
args: StopCalculationExecutionCommandInput,
Expand Down Expand Up @@ -1989,7 +1991,7 @@ export class Athena extends AthenaClient {
/**
* <p>Stops a query execution. Requires you to have access to the workgroup in which the
* query ran.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/client-athena/src/AthenaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,11 @@ export interface AthenaClientResolvedConfig extends AthenaClientResolvedConfigTy
* in parallel—so results are fast, even with large datasets and complex queries. For more
* information, see <a href="http://docs.aws.amazon.com/athena/latest/ug/what-is.html">What is Amazon Athena</a> in the <i>Amazon Athena User
* Guide</i>.</p>
* <p>If you connect to Athena using the JDBC driver, use version 1.1.0 of the
* <p>If you connect to Athena using the JDBC driver, use version 1.1.0 of the
* driver or later with the Amazon Athena API. Earlier version drivers do not
* support the API. For more information and to download the driver, see <a href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html">Accessing
* Amazon Athena with JDBC</a>.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="https://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface CreateNamedQueryCommandOutput extends CreateNamedQueryOutput, _
/**
* <p>Creates a named query in the specified workgroup. Requires that you have access to the
* workgroup.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface DeleteNamedQueryCommandOutput extends DeleteNamedQueryOutput, _
/**
* <p>Deletes the named query if you have access to the workgroup in which the query was
* saved.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
* @example
Expand Down
6 changes: 3 additions & 3 deletions clients/client-athena/src/commands/GetQueryResultsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ export interface GetQueryResultsCommandOutput extends GetQueryResultsOutput, __M
* <code>QueryExecutionId</code> from the Athena query results location in
* Amazon S3. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Query Results</a> in the <i>Amazon Athena User Guide</i>. This request does not execute the query
* but returns results. Use <a>StartQueryExecution</a> to run a query.</p>
* <p>To stream query results successfully, the IAM principal with permission to call
* <p>To stream query results successfully, the IAM principal with permission to call
* <code>GetQueryResults</code> also must have permissions to the Amazon S3
* <code>GetObject</code> action for the Athena query results location.</p>
* <important>
* <important>
* <p>IAM principals with permission to the Amazon S3
* <code>GetObject</code> action for the query results location are able to retrieve
* query results from Amazon S3 even if permission to the
* <code>GetQueryResults</code> action is denied. To restrict user or role access,
* ensure that Amazon S3 permissions to the Athena query location
* are denied.</p>
* </important>
* </important>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ export interface GetQueryRuntimeStatisticsCommandOutput extends GetQueryRuntimeS

/**
* <p>Returns query execution runtime statistics related to a single execution of a query if
* you have access to the workgroup in which the query ran. The query execution runtime
* statistics is returned only when <a>QueryExecutionStatus$State</a> is in a
* SUCCEEDED or FAILED state.</p>
* you have access to the workgroup in which the query ran. Query execution runtime
* statistics are returned only when <a>QueryExecutionStatus$State</a> is in a
* SUCCEEDED or FAILED state. Stage-level input and output row count and data size
* statistics are not shown when a query has row-level filters defined in Lake
* Formation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface ListNamedQueriesCommandOutput extends ListNamedQueriesOutput, _
* <p>Provides a list of available query IDs only for queries saved in the specified
* workgroup. Requires that you have access to the specified workgroup. If a workgroup is
* not specified, lists the saved queries for the primary workgroup.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface ListQueryExecutionsCommandOutput extends ListQueryExecutionsOut
* workgroup. If a workgroup is not specified, returns a list of query execution IDs for
* the primary workgroup. Requires you to have access to the workgroup in which the queries
* ran.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
* @example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ export interface StopCalculationExecutionCommandOutput extends StopCalculationEx
* call on a calculation that is already in a terminal state (for example,
* <code>STOPPED</code>, <code>FAILED</code>, or <code>COMPLETED</code>) succeeds but
* has no effect.</p>
* <note>
* <note>
* <p>Cancelling a calculation is done on a best effort basis. If a calculation cannot
* be cancelled, you can be charged for its completion. If you are concerned about
* being charged for a calculation that cannot be cancelled, consider terminating the
* session in which the calculation is running.</p>
* </note>
* </note>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface StopQueryExecutionCommandOutput extends StopQueryExecutionOutpu
/**
* <p>Stops a query execution. Requires you to have access to the workgroup in which the
* query ran.</p>
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* <p>For code samples using the Amazon Web Services SDK for Java, see <a href="http://docs.aws.amazon.com/athena/latest/ug/code-samples.html">Examples and
* Code Samples</a> in the <i>Amazon Athena User
* Guide</i>.</p>
* @example
Expand Down
2 changes: 1 addition & 1 deletion clients/client-athena/src/endpoint/EndpointParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
};

export interface EndpointParameters extends __EndpointParameters {
Region?: string;
Region: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
Expand Down
11 changes: 1 addition & 10 deletions clients/client-athena/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const ruleSet: RuleSetObject = {
parameters: {
Region: {
builtIn: "AWS::Region",
required: false,
required: true,
documentation: "The AWS region used to dispatch the request.",
type: "String",
},
Expand Down Expand Up @@ -58,15 +58,6 @@ export const ruleSet: RuleSetObject = {
},
],
},
{
fn: "parseURL",
argv: [
{
ref: "Endpoint",
},
],
assign: "url",
},
],
type: "tree",
rules: [
Expand Down

0 comments on commit 59c84e0

Please sign in to comment.