Skip to content

Update generated code #1601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"${LATEST}": "3.284.1"
"${LATEST}": "3.288.1"
},
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
"services": {
Expand Down
22 changes: 22 additions & 0 deletions psalm.baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@
<LessSpecificReturnStatement>
<code>$items</code>
<code>$items</code>
<code>$items</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[list<AudioChannelTag::*>]]></code>
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
<code><![CDATA[list<TeletextPageType::*>]]></code>
</MoreSpecificReturnType>
Expand All @@ -214,8 +216,10 @@
<LessSpecificReturnStatement>
<code>$items</code>
<code>$items</code>
<code>$items</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[list<AudioChannelTag::*>]]></code>
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
<code><![CDATA[list<TeletextPageType::*>]]></code>
</MoreSpecificReturnType>
Expand All @@ -224,8 +228,10 @@
<LessSpecificReturnStatement>
<code>$items</code>
<code>$items</code>
<code>$items</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[list<AudioChannelTag::*>]]></code>
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
<code><![CDATA[list<TeletextPageType::*>]]></code>
</MoreSpecificReturnType>
Expand Down Expand Up @@ -272,6 +278,22 @@
<code><![CDATA[$d = \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $data['stopDate']))]]></code>
</PossiblyFalsePropertyAssignmentValue>
</file>
<file src="src/Service/Sqs/src/Result/GetQueueAttributesResult.php">
<LessSpecificReturnStatement>
<code>$items</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[array<QueueAttributeName::*, string>]]></code>
</MoreSpecificReturnType>
</file>
<file src="src/Service/Sqs/src/Result/ReceiveMessageResult.php">
<LessSpecificReturnStatement>
<code>$items</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[array<MessageSystemAttributeName::*, string>]]></code>
</MoreSpecificReturnType>
</file>
<file src="src/Service/Lambda/src/Result/FunctionConfiguration.php">
<LessSpecificReturnStatement>
<code><![CDATA[$items]]></code>
Expand Down
1 change: 1 addition & 0 deletions src/Core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Changed

- Allow passing explicit null values for optional fields of input objects
- AWS enhancement: Documentation updates.

### Fixed

Expand Down
8 changes: 7 additions & 1 deletion src/Core/src/Sts/Input/AssumeRoleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,13 @@ final class AssumeRoleRequest extends Input
private $sourceIdentity;

/**
* Reserved for future use.
* A list of previously acquired trusted context assertions in the format of a JSON array. The trusted context assertion
* is signed and encrypted by Amazon Web Services STS.
*
* The following is an example of a `ProvidedContext` value that includes a single trusted context assertion and the ARN
* of the context provider from which the trusted context assertion was generated.
*
* `[{"ProviderArn":"arn:aws:iam::aws:contextProvider/identitycenter","ContextAssertion":"trusted-context-assertion"}]`
*
* @var ProvidedContext[]|null
*/
Expand Down
8 changes: 5 additions & 3 deletions src/Core/src/Sts/ValueObject/ProvidedContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
namespace AsyncAws\Core\Sts\ValueObject;

/**
* Reserved for future use.
* Contains information about the provided context. This includes the signed and encrypted trusted context assertion and
* the context provider ARN from which the trusted context assertion was generated.
*/
final class ProvidedContext
{
/**
* Reserved for future use.
* The context provider ARN from which the trusted context assertion was generated.
*
* @var string|null
*/
private $providerArn;

/**
* Reserved for future use.
* The signed and encrypted trusted context assertion generated by the context provider. The trusted context assertion
* is signed and encrypted by Amazon Web Services STS.
*
* @var string|null
*/
Expand Down
1 change: 1 addition & 0 deletions src/Service/Athena/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- Added `il-central-1` region
- AWS api-change: Adding SerivicePreProcessing time metric

### Changed

Expand Down
25 changes: 7 additions & 18 deletions src/Service/Athena/src/AthenaClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,6 @@ public function listDatabases($input): ListDatabasesOutput
* access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary
* workgroup.
*
* For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples [^1] in the *Amazon Athena
* User Guide*.
*
* [^1]: http://docs.aws.amazon.com/athena/latest/ug/code-samples.html
*
* @see https://docs.aws.amazon.com/athena/latest/APIReference/API_ListNamedQueries.html
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-athena-2017-05-18.html#listnamedqueries
*
Expand All @@ -436,14 +431,9 @@ public function listNamedQueries($input = []): ListNamedQueriesOutput
}

/**
* Provides a list of available query execution IDs for the queries in the specified 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.
*
* For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples [^1] in the *Amazon Athena
* User Guide*.
*
* [^1]: http://docs.aws.amazon.com/athena/latest/ug/code-samples.html
* Provides a list of available query execution IDs for the queries in the specified workgroup. Athena keeps a query
* history for 45 days. 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.
*
* @see https://docs.aws.amazon.com/athena/latest/APIReference/API_ListQueryExecutions.html
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-athena-2017-05-18.html#listqueryexecutions
Expand Down Expand Up @@ -504,6 +494,10 @@ public function listTableMetadata($input): ListTableMetadataOutput
* Submits calculations for execution within a session. You can supply the code to run as an inline code block within
* the request.
*
* > The request syntax requires the StartCalculationExecutionRequest$CodeBlock parameter or the
* > CalculationConfiguration$CodeBlock parameter, but not both. Because CalculationConfiguration$CodeBlock is
* > deprecated, use the StartCalculationExecutionRequest$CodeBlock parameter instead.
*
* @see https://docs.aws.amazon.com/athena/latest/APIReference/API_StartCalculationExecution.html
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-athena-2017-05-18.html#startcalculationexecution
*
Expand Down Expand Up @@ -641,11 +635,6 @@ public function stopCalculationExecution($input): StopCalculationExecutionRespon
/**
* Stops a query execution. Requires you to have access to the workgroup in which the query ran.
*
* For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples [^1] in the *Amazon Athena
* User Guide*.
*
* [^1]: http://docs.aws.amazon.com/athena/latest/ug/code-samples.html
*
* @see https://docs.aws.amazon.com/athena/latest/APIReference/API_StopQueryExecution.html
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-athena-2017-05-18.html#stopqueryexecution
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ final class StartCalculationExecutionRequest extends Input
private $calculationConfiguration;

/**
* A string that contains the code of the calculation.
* A string that contains the code of the calculation. Use this parameter instead of CalculationConfiguration$CodeBlock,
* which is deprecated.
*
* @var string|null
*/
Expand Down
1 change: 1 addition & 0 deletions src/Service/Athena/src/Result/GetQueryExecutionOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ private function populateResultQueryExecutionStatistics(array $json): QueryExecu
'DataManifestLocation' => isset($json['DataManifestLocation']) ? (string) $json['DataManifestLocation'] : null,
'TotalExecutionTimeInMillis' => isset($json['TotalExecutionTimeInMillis']) ? (int) $json['TotalExecutionTimeInMillis'] : null,
'QueryQueueTimeInMillis' => isset($json['QueryQueueTimeInMillis']) ? (int) $json['QueryQueueTimeInMillis'] : null,
'ServicePreProcessingTimeInMillis' => isset($json['ServicePreProcessingTimeInMillis']) ? (int) $json['ServicePreProcessingTimeInMillis'] : null,
'QueryPlanningTimeInMillis' => isset($json['QueryPlanningTimeInMillis']) ? (int) $json['QueryPlanningTimeInMillis'] : null,
'ServiceProcessingTimeInMillis' => isset($json['ServiceProcessingTimeInMillis']) ? (int) $json['ServiceProcessingTimeInMillis'] : null,
'ResultReuseInformation' => empty($json['ResultReuseInformation']) ? null : $this->populateResultResultReuseInformation($json['ResultReuseInformation']),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
use AsyncAws\Core\Exception\InvalidArgument;

/**
* 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.
* Specifies the customer managed KMS key that is used to encrypt the user's data stores in Athena. When an Amazon Web
* Services managed key is used, this value is null. This setting does not apply to Athena SQL workgroups.
*/
final class CustomerContentEncryptionConfiguration
{
/**
* The KMS key that is used to encrypt the user's data stores in Athena.
* The customer managed KMS key that is used to encrypt the user's data stores in Athena.
*
* @var string
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Service/Athena/src/ValueObject/DataCatalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ final class DataCatalog
*
* - The `GLUE` data catalog type also applies to the default `AwsDataCatalog` that already exists in your account, of
* which you can have only one and cannot modify.
* - Queries that specify a Glue Data Catalog other than the default `AwsDataCatalog` must be run on Athena engine
* version 2.
*
* @var array<string, string>|null
*/
Expand Down
15 changes: 15 additions & 0 deletions src/Service/Athena/src/ValueObject/QueryExecutionStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ final class QueryExecutionStatistics
*/
private $queryQueueTimeInMillis;

/**
* The number of milliseconds that Athena took to preprocess the query before submitting the query to the query engine.
*
* @var int|null
*/
private $servicePreProcessingTimeInMillis;

/**
* The number of milliseconds that Athena took to plan the query processing flow. This includes the time spent
* retrieving table partitions from the data source. Note that because the query engine performs the query planning,
Expand Down Expand Up @@ -81,6 +88,7 @@ final class QueryExecutionStatistics
* DataManifestLocation?: null|string,
* TotalExecutionTimeInMillis?: null|int,
* QueryQueueTimeInMillis?: null|int,
* ServicePreProcessingTimeInMillis?: null|int,
* QueryPlanningTimeInMillis?: null|int,
* ServiceProcessingTimeInMillis?: null|int,
* ResultReuseInformation?: null|ResultReuseInformation|array,
Expand All @@ -93,6 +101,7 @@ public function __construct(array $input)
$this->dataManifestLocation = $input['DataManifestLocation'] ?? null;
$this->totalExecutionTimeInMillis = $input['TotalExecutionTimeInMillis'] ?? null;
$this->queryQueueTimeInMillis = $input['QueryQueueTimeInMillis'] ?? null;
$this->servicePreProcessingTimeInMillis = $input['ServicePreProcessingTimeInMillis'] ?? null;
$this->queryPlanningTimeInMillis = $input['QueryPlanningTimeInMillis'] ?? null;
$this->serviceProcessingTimeInMillis = $input['ServiceProcessingTimeInMillis'] ?? null;
$this->resultReuseInformation = isset($input['ResultReuseInformation']) ? ResultReuseInformation::create($input['ResultReuseInformation']) : null;
Expand All @@ -105,6 +114,7 @@ public function __construct(array $input)
* DataManifestLocation?: null|string,
* TotalExecutionTimeInMillis?: null|int,
* QueryQueueTimeInMillis?: null|int,
* ServicePreProcessingTimeInMillis?: null|int,
* QueryPlanningTimeInMillis?: null|int,
* ServiceProcessingTimeInMillis?: null|int,
* ResultReuseInformation?: null|ResultReuseInformation|array,
Expand Down Expand Up @@ -145,6 +155,11 @@ public function getResultReuseInformation(): ?ResultReuseInformation
return $this->resultReuseInformation;
}

public function getServicePreProcessingTimeInMillis(): ?int
{
return $this->servicePreProcessingTimeInMillis;
}

public function getServiceProcessingTimeInMillis(): ?int
{
return $this->serviceProcessingTimeInMillis;
Expand Down
3 changes: 2 additions & 1 deletion src/Service/Athena/src/ValueObject/SessionConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
final class SessionConfiguration
{
/**
* The ARN of the execution role used for the session.
* The ARN of the execution role used in a Spark session to access user resources. This property applies only to
* Spark-enabled workgroups.
*
* @var string|null
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ final class WorkGroupConfiguration
private $additionalConfiguration;

/**
* Role used in a session for accessing the user's resources.
* Role used in a Spark session for accessing the user's resources. This property applies only to Spark-enabled
* workgroups.
*
* @var string|null
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Service/CloudFormation/src/CloudFormationClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function describeStackDriftDetectionStatus($input): DescribeStackDriftDet

/**
* Returns all stack related events for a specified stack in reverse chronological order. For more information about a
* stack's event history, go to Stacks [^1] in the CloudFormation User Guide.
* stack's event history, go to Stacks [^1] in the *CloudFormation User Guide*.
*
* > You can list events for stacks that have failed to create or have been deleted by specifying the unique stack
* > identifier (stack ID).
Expand Down Expand Up @@ -77,7 +77,7 @@ public function describeStackEvents($input = []): DescribeStackEventsOutput
* Returns the description for the specified stack; if no stack name was specified, then it returns the description for
* all the stacks created.
*
* > If the stack doesn't exist, an `ValidationError` is returned.
* > If the stack doesn't exist, a `ValidationError` is returned.
*
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeStacks.html
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cloudformation-2010-05-15.html#describestacks
Expand Down
4 changes: 4 additions & 0 deletions src/Service/EventBridge/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: Introduces a new rule state ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS for matching with Get, List and Describe AWS API call events from CloudTrail.

### Changed

- Allow passing explicit null values for optional fields of input objects
Expand Down
9 changes: 9 additions & 0 deletions src/Service/EventBridge/src/EventBridgeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@ class EventBridgeClient extends AbstractApi
/**
* Sends custom events to Amazon EventBridge so that they can be matched to rules.
*
* The maximum size for a PutEvents event entry is 256 KB. Entry size is calculated including the event and any
* necessary characters and keys of the JSON representation of the event. To learn more, see Calculating PutEvents event
* entry size [^1] in the *Amazon EventBridge User Guide*
*
* PutEvents accepts the data in JSON format. For the JSON number (integer) data type, the constraints are: a minimum
* value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807.
*
* > PutEvents will only process nested JSON up to 1100 levels deep.
*
* [^1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-putevent-size.html
*
* @see https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-events-2015-10-07.html#putevents
*
Expand Down
24 changes: 20 additions & 4 deletions src/Service/EventBridge/src/ValueObject/PutEventsRequestEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ final class PutEventsRequestEntry
/**
* The source of the event.
*
* > `Detail`, `DetailType`, and `Source` are required for EventBridge to successfully send an event to an event bus. If
* > you include event entries in a request that do not include each of those properties, EventBridge fails that entry.
* > If you submit a request in which *none* of the entries have each of these properties, EventBridge fails the entire
* > request.
*
* @var string|null
*/
private $source;
Expand All @@ -36,12 +41,22 @@ final class PutEventsRequestEntry
/**
* Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
*
* > `Detail`, `DetailType`, and `Source` are required for EventBridge to successfully send an event to an event bus. If
* > you include event entries in a request that do not include each of those properties, EventBridge fails that entry.
* > If you submit a request in which *none* of the entries have each of these properties, EventBridge fails the entire
* > request.
*
* @var string|null
*/
private $detailType;

/**
* A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested subobjects.
* A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested sub-objects.
*
* > `Detail`, `DetailType`, and `Source` are required for EventBridge to successfully send an event to an event bus. If
* > you include event entries in a request that do not include each of those properties, EventBridge fails that entry.
* > If you submit a request in which *none* of the entries have each of these properties, EventBridge fails the entire
* > request.
*
* @var string|null
*/
Expand All @@ -51,9 +66,10 @@ final class PutEventsRequestEntry
* The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are
* used to match the event. If you omit this, the default event bus is used.
*
* > If you're using a global endpoint with a custom bus, you must enter the name, not the ARN, of the event bus in
* > either the primary or secondary Region here and the corresponding event bus in the other Region will be determined
* > based on the endpoint referenced by the `EndpointId`.
* > If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource Name (ARN) of
* > the event bus in either the primary or secondary Region here. EventBridge then determines the corresponding event
* > bus in the other Region based on the endpoint referenced by the `EndpointId`. Specifying the event bus ARN is
* > preferred.
*
* @var string|null
*/
Expand Down
Loading