22
33namespace AsyncAws \CloudFormation \Input ;
44
5+ use AsyncAws \Core \Exception \InvalidArgument ;
56use AsyncAws \Core \Input ;
67use AsyncAws \Core \Request ;
78use 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 }
0 commit comments