Skip to content

Commit f3a430d

Browse files
Update generated code (#1618)
update generated code
1 parent 7875423 commit f3a430d

18 files changed

+393
-7
lines changed

CHANGELOG.md

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

77
- Added `il-central-1` region
88
- AWS api-change: Adding SerivicePreProcessing time metric
9+
- AWS api-change: Adding IdentityCenter enabled request for interactive query
910

1011
### Changed
1112

src/AthenaClient.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public function getCalculationExecutionStatus($input): GetCalculationExecutionSt
126126
*
127127
* @param array{
128128
* Name: string,
129+
* WorkGroup?: null|string,
129130
* '@region'?: string|null,
130131
* }|GetDataCatalogInput $input
131132
*
@@ -152,6 +153,7 @@ public function getDataCatalog($input): GetDataCatalogOutput
152153
* @param array{
153154
* CatalogName: string,
154155
* DatabaseName: string,
156+
* WorkGroup?: null|string,
155157
* '@region'?: string|null,
156158
* }|GetDatabaseInput $input
157159
*
@@ -328,6 +330,7 @@ public function getSessionStatus($input): GetSessionStatusResponse
328330
* CatalogName: string,
329331
* DatabaseName: string,
330332
* TableName: string,
333+
* WorkGroup?: null|string,
331334
* '@region'?: string|null,
332335
* }|GetTableMetadataInput $input
333336
*
@@ -382,6 +385,7 @@ public function getWorkGroup($input): GetWorkGroupOutput
382385
* CatalogName: string,
383386
* NextToken?: null|string,
384387
* MaxResults?: null|int,
388+
* WorkGroup?: null|string,
385389
* '@region'?: string|null,
386390
* }|ListDatabasesInput $input
387391
*
@@ -471,6 +475,7 @@ public function listQueryExecutions($input = []): ListQueryExecutionsOutput
471475
* Expression?: null|string,
472476
* NextToken?: null|string,
473477
* MaxResults?: null|int,
478+
* WorkGroup?: null|string,
474479
* '@region'?: string|null,
475480
* }|ListTableMetadataInput $input
476481
*

src/Enum/AuthenticationType.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace AsyncAws\Athena\Enum;
4+
5+
final class AuthenticationType
6+
{
7+
public const DIRECTORY_IDENTITY = 'DIRECTORY_IDENTITY';
8+
9+
public static function exists(string $value): bool
10+
{
11+
return isset([
12+
self::DIRECTORY_IDENTITY => true,
13+
][$value]);
14+
}
15+
}

src/Input/GetDataCatalogInput.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,31 @@ final class GetDataCatalogInput extends Input
1818
*/
1919
private $name;
2020

21+
/**
22+
* The name of the workgroup. Required if making an IAM Identity Center request.
23+
*
24+
* @var string|null
25+
*/
26+
private $workGroup;
27+
2128
/**
2229
* @param array{
2330
* Name?: string,
31+
* WorkGroup?: null|string,
2432
* '@region'?: string|null,
2533
* } $input
2634
*/
2735
public function __construct(array $input = [])
2836
{
2937
$this->name = $input['Name'] ?? null;
38+
$this->workGroup = $input['WorkGroup'] ?? null;
3039
parent::__construct($input);
3140
}
3241

3342
/**
3443
* @param array{
3544
* Name?: string,
45+
* WorkGroup?: null|string,
3646
* '@region'?: string|null,
3747
* }|GetDataCatalogInput $input
3848
*/
@@ -46,6 +56,11 @@ public function getName(): ?string
4656
return $this->name;
4757
}
4858

59+
public function getWorkGroup(): ?string
60+
{
61+
return $this->workGroup;
62+
}
63+
4964
/**
5065
* @internal
5166
*/
@@ -78,13 +93,23 @@ public function setName(?string $value): self
7893
return $this;
7994
}
8095

96+
public function setWorkGroup(?string $value): self
97+
{
98+
$this->workGroup = $value;
99+
100+
return $this;
101+
}
102+
81103
private function requestBody(): array
82104
{
83105
$payload = [];
84106
if (null === $v = $this->name) {
85107
throw new InvalidArgument(sprintf('Missing parameter "Name" for "%s". The value cannot be null.', __CLASS__));
86108
}
87109
$payload['Name'] = $v;
110+
if (null !== $v = $this->workGroup) {
111+
$payload['WorkGroup'] = $v;
112+
}
88113

89114
return $payload;
90115
}

src/Input/GetDatabaseInput.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,35 @@ final class GetDatabaseInput extends Input
2727
*/
2828
private $databaseName;
2929

30+
/**
31+
* The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center
32+
* enabled Glue Data Catalog.
33+
*
34+
* @var string|null
35+
*/
36+
private $workGroup;
37+
3038
/**
3139
* @param array{
3240
* CatalogName?: string,
3341
* DatabaseName?: string,
42+
* WorkGroup?: null|string,
3443
* '@region'?: string|null,
3544
* } $input
3645
*/
3746
public function __construct(array $input = [])
3847
{
3948
$this->catalogName = $input['CatalogName'] ?? null;
4049
$this->databaseName = $input['DatabaseName'] ?? null;
50+
$this->workGroup = $input['WorkGroup'] ?? null;
4151
parent::__construct($input);
4252
}
4353

4454
/**
4555
* @param array{
4656
* CatalogName?: string,
4757
* DatabaseName?: string,
58+
* WorkGroup?: null|string,
4859
* '@region'?: string|null,
4960
* }|GetDatabaseInput $input
5061
*/
@@ -63,6 +74,11 @@ public function getDatabaseName(): ?string
6374
return $this->databaseName;
6475
}
6576

77+
public function getWorkGroup(): ?string
78+
{
79+
return $this->workGroup;
80+
}
81+
6682
/**
6783
* @internal
6884
*/
@@ -102,6 +118,13 @@ public function setDatabaseName(?string $value): self
102118
return $this;
103119
}
104120

121+
public function setWorkGroup(?string $value): self
122+
{
123+
$this->workGroup = $value;
124+
125+
return $this;
126+
}
127+
105128
private function requestBody(): array
106129
{
107130
$payload = [];
@@ -113,6 +136,9 @@ private function requestBody(): array
113136
throw new InvalidArgument(sprintf('Missing parameter "DatabaseName" for "%s". The value cannot be null.', __CLASS__));
114137
}
115138
$payload['DatabaseName'] = $v;
139+
if (null !== $v = $this->workGroup) {
140+
$payload['WorkGroup'] = $v;
141+
}
116142

117143
return $payload;
118144
}

src/Input/GetTableMetadataInput.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,20 @@ final class GetTableMetadataInput extends Input
3636
*/
3737
private $tableName;
3838

39+
/**
40+
* The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center
41+
* enabled Glue Data Catalog.
42+
*
43+
* @var string|null
44+
*/
45+
private $workGroup;
46+
3947
/**
4048
* @param array{
4149
* CatalogName?: string,
4250
* DatabaseName?: string,
4351
* TableName?: string,
52+
* WorkGroup?: null|string,
4453
* '@region'?: string|null,
4554
* } $input
4655
*/
@@ -49,6 +58,7 @@ public function __construct(array $input = [])
4958
$this->catalogName = $input['CatalogName'] ?? null;
5059
$this->databaseName = $input['DatabaseName'] ?? null;
5160
$this->tableName = $input['TableName'] ?? null;
61+
$this->workGroup = $input['WorkGroup'] ?? null;
5262
parent::__construct($input);
5363
}
5464

@@ -57,6 +67,7 @@ public function __construct(array $input = [])
5767
* CatalogName?: string,
5868
* DatabaseName?: string,
5969
* TableName?: string,
70+
* WorkGroup?: null|string,
6071
* '@region'?: string|null,
6172
* }|GetTableMetadataInput $input
6273
*/
@@ -80,6 +91,11 @@ public function getTableName(): ?string
8091
return $this->tableName;
8192
}
8293

94+
public function getWorkGroup(): ?string
95+
{
96+
return $this->workGroup;
97+
}
98+
8399
/**
84100
* @internal
85101
*/
@@ -126,6 +142,13 @@ public function setTableName(?string $value): self
126142
return $this;
127143
}
128144

145+
public function setWorkGroup(?string $value): self
146+
{
147+
$this->workGroup = $value;
148+
149+
return $this;
150+
}
151+
129152
private function requestBody(): array
130153
{
131154
$payload = [];
@@ -141,6 +164,9 @@ private function requestBody(): array
141164
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
142165
}
143166
$payload['TableName'] = $v;
167+
if (null !== $v = $this->workGroup) {
168+
$payload['WorkGroup'] = $v;
169+
}
144170

145171
return $payload;
146172
}

src/Input/ListDatabasesInput.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,20 @@ final class ListDatabasesInput extends Input
3434
*/
3535
private $maxResults;
3636

37+
/**
38+
* The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center
39+
* enabled Glue Data Catalog.
40+
*
41+
* @var string|null
42+
*/
43+
private $workGroup;
44+
3745
/**
3846
* @param array{
3947
* CatalogName?: string,
4048
* NextToken?: null|string,
4149
* MaxResults?: null|int,
50+
* WorkGroup?: null|string,
4251
* '@region'?: string|null,
4352
* } $input
4453
*/
@@ -47,6 +56,7 @@ public function __construct(array $input = [])
4756
$this->catalogName = $input['CatalogName'] ?? null;
4857
$this->nextToken = $input['NextToken'] ?? null;
4958
$this->maxResults = $input['MaxResults'] ?? null;
59+
$this->workGroup = $input['WorkGroup'] ?? null;
5060
parent::__construct($input);
5161
}
5262

@@ -55,6 +65,7 @@ public function __construct(array $input = [])
5565
* CatalogName?: string,
5666
* NextToken?: null|string,
5767
* MaxResults?: null|int,
68+
* WorkGroup?: null|string,
5869
* '@region'?: string|null,
5970
* }|ListDatabasesInput $input
6071
*/
@@ -78,6 +89,11 @@ public function getNextToken(): ?string
7889
return $this->nextToken;
7990
}
8091

92+
public function getWorkGroup(): ?string
93+
{
94+
return $this->workGroup;
95+
}
96+
8197
/**
8298
* @internal
8399
*/
@@ -124,6 +140,13 @@ public function setNextToken(?string $value): self
124140
return $this;
125141
}
126142

143+
public function setWorkGroup(?string $value): self
144+
{
145+
$this->workGroup = $value;
146+
147+
return $this;
148+
}
149+
127150
private function requestBody(): array
128151
{
129152
$payload = [];
@@ -137,6 +160,9 @@ private function requestBody(): array
137160
if (null !== $v = $this->maxResults) {
138161
$payload['MaxResults'] = $v;
139162
}
163+
if (null !== $v = $this->workGroup) {
164+
$payload['WorkGroup'] = $v;
165+
}
140166

141167
return $payload;
142168
}

0 commit comments

Comments
 (0)