Skip to content

Commit f1b44a9

Browse files
Update generated code (#1988)
* update generated code * fix tests --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent f26e48d commit f1b44a9

22 files changed

+279
-15
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.359.9"
3+
"${LATEST}": "3.359.12"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/CloudFormation/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### BC-BREAK
6+
7+
- AWS api-change: The `stackName` parameter is now required in `DescribeStackEvents` operation.
8+
59
### Added
610

711
- AWS api-change: Update endpoint ruleset parameters casing

src/Service/CloudFormation/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"extra": {
3535
"branch-alias": {
36-
"dev-master": "1.11-dev"
36+
"dev-master": "2.0-dev"
3737
}
3838
}
3939
}

src/Service/CloudFormation/src/CloudFormationClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ public function describeStackDriftDetectionStatus($input): DescribeStackDriftDet
6060
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cloudformation-2010-05-15.html#describestackevents
6161
*
6262
* @param array{
63-
* StackName?: string|null,
63+
* StackName: string,
6464
* NextToken?: string|null,
6565
* '@region'?: string|null,
6666
* }|DescribeStackEventsInput $input
6767
*/
68-
public function describeStackEvents($input = []): DescribeStackEventsOutput
68+
public function describeStackEvents($input): DescribeStackEventsOutput
6969
{
7070
$input = DescribeStackEventsInput::create($input);
7171
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeStackEvents', 'region' => $input->getRegion()]));

src/Service/CloudFormation/src/Input/DescribeStackEventsInput.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace AsyncAws\CloudFormation\Input;
44

5+
use AsyncAws\Core\Exception\InvalidArgument;
56
use AsyncAws\Core\Input;
67
use AsyncAws\Core\Request;
78
use AsyncAws\Core\Stream\StreamFactory;
@@ -17,20 +18,22 @@ final class DescribeStackEventsInput extends Input
1718
* - Running stacks: You can specify either the stack's name or its unique stack ID.
1819
* - Deleted stacks: You must specify the unique stack ID.
1920
*
21+
* @required
22+
*
2023
* @var string|null
2124
*/
2225
private $stackName;
2326

2427
/**
25-
* A string that identifies the next page of events that you want to retrieve.
28+
* The token for the next set of items to return. (You received this token from a previous call.).
2629
*
2730
* @var string|null
2831
*/
2932
private $nextToken;
3033

3134
/**
3235
* @param array{
33-
* StackName?: string|null,
36+
* StackName?: string,
3437
* NextToken?: string|null,
3538
* '@region'?: string|null,
3639
* } $input
@@ -44,7 +47,7 @@ public function __construct(array $input = [])
4447

4548
/**
4649
* @param array{
47-
* StackName?: string|null,
50+
* StackName?: string,
4851
* NextToken?: string|null,
4952
* '@region'?: string|null,
5053
* }|DescribeStackEventsInput $input
@@ -102,9 +105,10 @@ public function setStackName(?string $value): self
102105
private function requestBody(): array
103106
{
104107
$payload = [];
105-
if (null !== $v = $this->stackName) {
106-
$payload['StackName'] = $v;
108+
if (null === $v = $this->stackName) {
109+
throw new InvalidArgument(\sprintf('Missing parameter "StackName" for "%s". The value cannot be null.', __CLASS__));
107110
}
111+
$payload['StackName'] = $v;
108112
if (null !== $v = $this->nextToken) {
109113
$payload['NextToken'] = $v;
110114
}

src/Service/CloudFormation/src/Input/DescribeStacksInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class DescribeStacksInput extends Input
3333
private $stackName;
3434

3535
/**
36-
* A string that identifies the next page of stacks that you want to retrieve.
36+
* The token for the next set of items to return. (You received this token from a previous call.).
3737
*
3838
* @var string|null
3939
*/

src/Service/CloudFormation/src/ValueObject/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace AsyncAws\CloudFormation\ValueObject;
44

55
/**
6-
* The Output data type.
6+
* The `Output` data type.
77
*/
88
final class Output
99
{

src/Service/CloudFormation/src/ValueObject/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace AsyncAws\CloudFormation\ValueObject;
44

55
/**
6-
* The Parameter data type.
6+
* The `Parameter` data type.
77
*/
88
final class Parameter
99
{

src/Service/CloudFormation/src/ValueObject/Stack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use AsyncAws\Core\Exception\InvalidArgument;
1010

1111
/**
12-
* The Stack data type.
12+
* The `Stack` data type.
1313
*/
1414
final class Stack
1515
{

src/Service/CloudFormation/src/ValueObject/StackEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use AsyncAws\Core\Exception\InvalidArgument;
1111

1212
/**
13-
* The StackEvent data type.
13+
* The `StackEvent` data type.
1414
*/
1515
final class StackEvent
1616
{

0 commit comments

Comments
 (0)