Skip to content

Commit

Permalink
feat(client-athena): This release updates data types that contain eit…
Browse files Browse the repository at this point in the history
…her QueryExecutionId, NamedQueryId or ExpectedBucketOwner. Ids must be between 1 and 128 characters and contain only non-whitespace characters. ExpectedBucketOwner must be 12-digit string.
  • Loading branch information
awstools committed Jul 14, 2022
1 parent b6f9a9f commit a22c328
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 6 deletions.
6 changes: 6 additions & 0 deletions clients/client-athena/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export namespace AclConfiguration {
});
}

/**
* <p>Contains an array of named query IDs.</p>
*/
export interface BatchGetNamedQueryInput {
/**
* <p>An array of query IDs.</p>
Expand Down Expand Up @@ -327,6 +330,9 @@ export namespace BatchGetPreparedStatementOutput {
});
}

/**
* <p>Contains an array of query execution IDs.</p>
*/
export interface BatchGetQueryExecutionInput {
/**
* <p>An array of query execution IDs.</p>
Expand Down
45 changes: 39 additions & 6 deletions codegen/sdk-codegen/aws-models/athena.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,16 @@
"smithy.api#documentation": "<p>Provides information about an Athena query error. The\n <code>AthenaError</code> feature provides standardized error information to help you\n understand failed queries and take steps after a query failure occurs.\n <code>AthenaError</code> includes an <code>ErrorCategory</code> field that specifies\n whether the cause of the failed query is due to system error, user error, or other\n error.</p>"
}
},
"com.amazonaws.athena#AwsAccountId": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 12,
"max": 12
},
"smithy.api#pattern": "^[0-9]+$"
}
},
"com.amazonaws.athena#BatchGetNamedQuery": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -244,6 +254,9 @@
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains an array of named query IDs.</p>"
}
},
"com.amazonaws.athena#BatchGetNamedQueryOutput": {
Expand Down Expand Up @@ -349,6 +362,9 @@
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains an array of query execution IDs.</p>"
}
},
"com.amazonaws.athena#BatchGetQueryExecutionOutput": {
Expand Down Expand Up @@ -2460,7 +2476,14 @@
}
},
"com.amazonaws.athena#NamedQueryId": {
"type": "string"
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 128
},
"smithy.api#pattern": "^\\S+$"
}
},
"com.amazonaws.athena#NamedQueryIdList": {
"type": "list",
Expand Down Expand Up @@ -2669,7 +2692,14 @@
}
},
"com.amazonaws.athena#QueryExecutionId": {
"type": "string"
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 128
},
"smithy.api#pattern": "^\\S+$"
}
},
"com.amazonaws.athena#QueryExecutionIdList": {
"type": "list",
Expand Down Expand Up @@ -2835,7 +2865,7 @@
"type": "structure",
"members": {
"OutputLocation": {
"target": "com.amazonaws.athena#String",
"target": "com.amazonaws.athena#ResultOutputLocation",
"traits": {
"smithy.api#documentation": "<p>The location in Amazon S3 where your query results are stored, such as\n <code>s3://path/to/query/bucket/</code>. To run the query, you must specify the\n query results location using one of the ways: either for individual queries using either\n this setting (client-side), or in the workgroup, using <a>WorkGroupConfiguration</a>. If none of them is set, Athena\n issues an error that no output location is provided. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/querying.html\">Query Results</a>. If\n workgroup settings override client-side settings, then the query uses the settings\n specified for the workgroup. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>"
}
Expand All @@ -2847,7 +2877,7 @@
}
},
"ExpectedBucketOwner": {
"target": "com.amazonaws.athena#String",
"target": "com.amazonaws.athena#AwsAccountId",
"traits": {
"smithy.api#documentation": "<p>The Amazon Web Services account ID that you expect to be the owner of the Amazon S3 bucket specified by <a>ResultConfiguration$OutputLocation</a>.\n If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it\n makes Amazon S3 calls to your specified output location. If the\n <code>ExpectedBucketOwner</code>\n Amazon Web Services account ID does not match the actual owner of the Amazon S3\n bucket, the call fails with a permissions error.</p>\n <p>This is a client-side setting. If workgroup settings override client-side settings,\n then the query uses the <code>ExpectedBucketOwner</code> setting that is specified for\n the workgroup, and also uses the location for storing query results specified in the\n workgroup. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>\n and <a href=\"https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html\">Workgroup Settings Override Client-Side Settings</a>.</p>"
}
Expand All @@ -2867,7 +2897,7 @@
"type": "structure",
"members": {
"OutputLocation": {
"target": "com.amazonaws.athena#String",
"target": "com.amazonaws.athena#ResultOutputLocation",
"traits": {
"smithy.api#documentation": "<p>The location in Amazon S3 where your query results are stored, such as\n <code>s3://path/to/query/bucket/</code>. For more information, see <a href=\"https://docs.aws.amazon.com/athena/latest/ug/querying.html\">Query Results</a> If\n workgroup settings override client-side settings, then the query uses the location for\n the query results and the encryption configuration that are specified for the workgroup.\n The \"workgroup settings override\" is specified in\n <code>EnforceWorkGroupConfiguration</code> (true/false) in the\n <code>WorkGroupConfiguration</code>. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>.</p>"
}
Expand All @@ -2891,7 +2921,7 @@
}
},
"ExpectedBucketOwner": {
"target": "com.amazonaws.athena#String",
"target": "com.amazonaws.athena#AwsAccountId",
"traits": {
"smithy.api#documentation": "<p>The Amazon Web Services account ID that you expect to be the owner of the Amazon S3 bucket specified by <a>ResultConfiguration$OutputLocation</a>.\n If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it\n makes Amazon S3 calls to your specified output location. If the\n <code>ExpectedBucketOwner</code>\n Amazon Web Services account ID does not match the actual owner of the Amazon S3\n bucket, the call fails with a permissions error.</p>\n\n <p>If workgroup settings override client-side settings, then the query uses the\n <code>ExpectedBucketOwner</code> setting that is specified for the workgroup, and\n also uses the location for storing query results specified in the workgroup. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a> and <a href=\"https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html\">Workgroup Settings Override Client-Side Settings</a>.</p>"
}
Expand Down Expand Up @@ -2919,6 +2949,9 @@
"smithy.api#documentation": "<p>The information about the updates in the query results, such as output location and\n encryption configuration for the query results.</p>"
}
},
"com.amazonaws.athena#ResultOutputLocation": {
"type": "string"
},
"com.amazonaws.athena#ResultSet": {
"type": "structure",
"members": {
Expand Down

0 comments on commit a22c328

Please sign in to comment.