Skip to content

Commit 7875423

Browse files
Update generated code (#1601)
* update generated code * Disable tests using fakesqs * Update SQS test to be compatible with JSON API --------- Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
1 parent 588a985 commit 7875423

9 files changed

+33
-26
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- Added `il-central-1` region
8+
- AWS api-change: Adding SerivicePreProcessing time metric
89

910
### Changed
1011

src/AthenaClient.php

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,6 @@ public function listDatabases($input): ListDatabasesOutput
406406
* access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary
407407
* workgroup.
408408
*
409-
* For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples [^1] in the *Amazon Athena
410-
* User Guide*.
411-
*
412-
* [^1]: http://docs.aws.amazon.com/athena/latest/ug/code-samples.html
413-
*
414409
* @see https://docs.aws.amazon.com/athena/latest/APIReference/API_ListNamedQueries.html
415410
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-athena-2017-05-18.html#listnamedqueries
416411
*
@@ -436,14 +431,9 @@ public function listNamedQueries($input = []): ListNamedQueriesOutput
436431
}
437432

438433
/**
439-
* Provides a list of available query execution IDs for the queries in the specified workgroup. If a workgroup is not
440-
* specified, returns a list of query execution IDs for the primary workgroup. Requires you to have access to the
441-
* workgroup in which the queries ran.
442-
*
443-
* For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples [^1] in the *Amazon Athena
444-
* User Guide*.
445-
*
446-
* [^1]: http://docs.aws.amazon.com/athena/latest/ug/code-samples.html
434+
* Provides a list of available query execution IDs for the queries in the specified workgroup. Athena keeps a query
435+
* history for 45 days. If a workgroup is not specified, returns a list of query execution IDs for the primary
436+
* workgroup. Requires you to have access to the workgroup in which the queries ran.
447437
*
448438
* @see https://docs.aws.amazon.com/athena/latest/APIReference/API_ListQueryExecutions.html
449439
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-athena-2017-05-18.html#listqueryexecutions
@@ -504,6 +494,10 @@ public function listTableMetadata($input): ListTableMetadataOutput
504494
* Submits calculations for execution within a session. You can supply the code to run as an inline code block within
505495
* the request.
506496
*
497+
* > The request syntax requires the StartCalculationExecutionRequest$CodeBlock parameter or the
498+
* > CalculationConfiguration$CodeBlock parameter, but not both. Because CalculationConfiguration$CodeBlock is
499+
* > deprecated, use the StartCalculationExecutionRequest$CodeBlock parameter instead.
500+
*
507501
* @see https://docs.aws.amazon.com/athena/latest/APIReference/API_StartCalculationExecution.html
508502
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-athena-2017-05-18.html#startcalculationexecution
509503
*
@@ -641,11 +635,6 @@ public function stopCalculationExecution($input): StopCalculationExecutionRespon
641635
/**
642636
* Stops a query execution. Requires you to have access to the workgroup in which the query ran.
643637
*
644-
* For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples [^1] in the *Amazon Athena
645-
* User Guide*.
646-
*
647-
* [^1]: http://docs.aws.amazon.com/athena/latest/ug/code-samples.html
648-
*
649638
* @see https://docs.aws.amazon.com/athena/latest/APIReference/API_StopQueryExecution.html
650639
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-athena-2017-05-18.html#stopqueryexecution
651640
*

src/Input/StartCalculationExecutionRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ final class StartCalculationExecutionRequest extends Input
3434
private $calculationConfiguration;
3535

3636
/**
37-
* A string that contains the code of the calculation.
37+
* A string that contains the code of the calculation. Use this parameter instead of CalculationConfiguration$CodeBlock,
38+
* which is deprecated.
3839
*
3940
* @var string|null
4041
*/

src/Result/GetQueryExecutionOutput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ private function populateResultQueryExecutionStatistics(array $json): QueryExecu
123123
'DataManifestLocation' => isset($json['DataManifestLocation']) ? (string) $json['DataManifestLocation'] : null,
124124
'TotalExecutionTimeInMillis' => isset($json['TotalExecutionTimeInMillis']) ? (int) $json['TotalExecutionTimeInMillis'] : null,
125125
'QueryQueueTimeInMillis' => isset($json['QueryQueueTimeInMillis']) ? (int) $json['QueryQueueTimeInMillis'] : null,
126+
'ServicePreProcessingTimeInMillis' => isset($json['ServicePreProcessingTimeInMillis']) ? (int) $json['ServicePreProcessingTimeInMillis'] : null,
126127
'QueryPlanningTimeInMillis' => isset($json['QueryPlanningTimeInMillis']) ? (int) $json['QueryPlanningTimeInMillis'] : null,
127128
'ServiceProcessingTimeInMillis' => isset($json['ServiceProcessingTimeInMillis']) ? (int) $json['ServiceProcessingTimeInMillis'] : null,
128129
'ResultReuseInformation' => empty($json['ResultReuseInformation']) ? null : $this->populateResultResultReuseInformation($json['ResultReuseInformation']),

src/ValueObject/CustomerContentEncryptionConfiguration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
use AsyncAws\Core\Exception\InvalidArgument;
66

77
/**
8-
* Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena
9-
* SQL workgroups.
8+
* Specifies the customer managed KMS key that is used to encrypt the user's data stores in Athena. When an Amazon Web
9+
* Services managed key is used, this value is null. This setting does not apply to Athena SQL workgroups.
1010
*/
1111
final class CustomerContentEncryptionConfiguration
1212
{
1313
/**
14-
* The KMS key that is used to encrypt the user's data stores in Athena.
14+
* The customer managed KMS key that is used to encrypt the user's data stores in Athena.
1515
*
1616
* @var string
1717
*/

src/ValueObject/DataCatalog.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ final class DataCatalog
6363
*
6464
* - The `GLUE` data catalog type also applies to the default `AwsDataCatalog` that already exists in your account, of
6565
* which you can have only one and cannot modify.
66-
* - Queries that specify a Glue Data Catalog other than the default `AwsDataCatalog` must be run on Athena engine
67-
* version 2.
6866
*
6967
* @var array<string, string>|null
7068
*/

src/ValueObject/QueryExecutionStatistics.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ final class QueryExecutionStatistics
5050
*/
5151
private $queryQueueTimeInMillis;
5252

53+
/**
54+
* The number of milliseconds that Athena took to preprocess the query before submitting the query to the query engine.
55+
*
56+
* @var int|null
57+
*/
58+
private $servicePreProcessingTimeInMillis;
59+
5360
/**
5461
* The number of milliseconds that Athena took to plan the query processing flow. This includes the time spent
5562
* retrieving table partitions from the data source. Note that because the query engine performs the query planning,
@@ -81,6 +88,7 @@ final class QueryExecutionStatistics
8188
* DataManifestLocation?: null|string,
8289
* TotalExecutionTimeInMillis?: null|int,
8390
* QueryQueueTimeInMillis?: null|int,
91+
* ServicePreProcessingTimeInMillis?: null|int,
8492
* QueryPlanningTimeInMillis?: null|int,
8593
* ServiceProcessingTimeInMillis?: null|int,
8694
* ResultReuseInformation?: null|ResultReuseInformation|array,
@@ -93,6 +101,7 @@ public function __construct(array $input)
93101
$this->dataManifestLocation = $input['DataManifestLocation'] ?? null;
94102
$this->totalExecutionTimeInMillis = $input['TotalExecutionTimeInMillis'] ?? null;
95103
$this->queryQueueTimeInMillis = $input['QueryQueueTimeInMillis'] ?? null;
104+
$this->servicePreProcessingTimeInMillis = $input['ServicePreProcessingTimeInMillis'] ?? null;
96105
$this->queryPlanningTimeInMillis = $input['QueryPlanningTimeInMillis'] ?? null;
97106
$this->serviceProcessingTimeInMillis = $input['ServiceProcessingTimeInMillis'] ?? null;
98107
$this->resultReuseInformation = isset($input['ResultReuseInformation']) ? ResultReuseInformation::create($input['ResultReuseInformation']) : null;
@@ -105,6 +114,7 @@ public function __construct(array $input)
105114
* DataManifestLocation?: null|string,
106115
* TotalExecutionTimeInMillis?: null|int,
107116
* QueryQueueTimeInMillis?: null|int,
117+
* ServicePreProcessingTimeInMillis?: null|int,
108118
* QueryPlanningTimeInMillis?: null|int,
109119
* ServiceProcessingTimeInMillis?: null|int,
110120
* ResultReuseInformation?: null|ResultReuseInformation|array,
@@ -145,6 +155,11 @@ public function getResultReuseInformation(): ?ResultReuseInformation
145155
return $this->resultReuseInformation;
146156
}
147157

158+
public function getServicePreProcessingTimeInMillis(): ?int
159+
{
160+
return $this->servicePreProcessingTimeInMillis;
161+
}
162+
148163
public function getServiceProcessingTimeInMillis(): ?int
149164
{
150165
return $this->serviceProcessingTimeInMillis;

src/ValueObject/SessionConfiguration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
final class SessionConfiguration
99
{
1010
/**
11-
* The ARN of the execution role used for the session.
11+
* The ARN of the execution role used in a Spark session to access user resources. This property applies only to
12+
* Spark-enabled workgroups.
1213
*
1314
* @var string|null
1415
*/

src/ValueObject/WorkGroupConfiguration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ final class WorkGroupConfiguration
7878
private $additionalConfiguration;
7979

8080
/**
81-
* Role used in a session for accessing the user's resources.
81+
* Role used in a Spark session for accessing the user's resources. This property applies only to Spark-enabled
82+
* workgroups.
8283
*
8384
* @var string|null
8485
*/

0 commit comments

Comments
 (0)