Skip to content

Commit

Permalink
Update generated code (#1618)
Browse files Browse the repository at this point in the history
update generated code
  • Loading branch information
async-aws-bot authored Dec 6, 2023
1 parent 7875423 commit f3a430d
Show file tree
Hide file tree
Showing 18 changed files with 393 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

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

### Changed

Expand Down
5 changes: 5 additions & 0 deletions src/AthenaClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public function getCalculationExecutionStatus($input): GetCalculationExecutionSt
*
* @param array{
* Name: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|GetDataCatalogInput $input
*
Expand All @@ -152,6 +153,7 @@ public function getDataCatalog($input): GetDataCatalogOutput
* @param array{
* CatalogName: string,
* DatabaseName: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|GetDatabaseInput $input
*
Expand Down Expand Up @@ -328,6 +330,7 @@ public function getSessionStatus($input): GetSessionStatusResponse
* CatalogName: string,
* DatabaseName: string,
* TableName: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|GetTableMetadataInput $input
*
Expand Down Expand Up @@ -382,6 +385,7 @@ public function getWorkGroup($input): GetWorkGroupOutput
* CatalogName: string,
* NextToken?: null|string,
* MaxResults?: null|int,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|ListDatabasesInput $input
*
Expand Down Expand Up @@ -471,6 +475,7 @@ public function listQueryExecutions($input = []): ListQueryExecutionsOutput
* Expression?: null|string,
* NextToken?: null|string,
* MaxResults?: null|int,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|ListTableMetadataInput $input
*
Expand Down
15 changes: 15 additions & 0 deletions src/Enum/AuthenticationType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace AsyncAws\Athena\Enum;

final class AuthenticationType
{
public const DIRECTORY_IDENTITY = 'DIRECTORY_IDENTITY';

public static function exists(string $value): bool
{
return isset([
self::DIRECTORY_IDENTITY => true,
][$value]);
}
}
25 changes: 25 additions & 0 deletions src/Input/GetDataCatalogInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,31 @@ final class GetDataCatalogInput extends Input
*/
private $name;

/**
* The name of the workgroup. Required if making an IAM Identity Center request.
*
* @var string|null
*/
private $workGroup;

/**
* @param array{
* Name?: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* } $input
*/
public function __construct(array $input = [])
{
$this->name = $input['Name'] ?? null;
$this->workGroup = $input['WorkGroup'] ?? null;
parent::__construct($input);
}

/**
* @param array{
* Name?: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|GetDataCatalogInput $input
*/
Expand All @@ -46,6 +56,11 @@ public function getName(): ?string
return $this->name;
}

public function getWorkGroup(): ?string
{
return $this->workGroup;
}

/**
* @internal
*/
Expand Down Expand Up @@ -78,13 +93,23 @@ public function setName(?string $value): self
return $this;
}

public function setWorkGroup(?string $value): self
{
$this->workGroup = $value;

return $this;
}

private function requestBody(): array
{
$payload = [];
if (null === $v = $this->name) {
throw new InvalidArgument(sprintf('Missing parameter "Name" for "%s". The value cannot be null.', __CLASS__));
}
$payload['Name'] = $v;
if (null !== $v = $this->workGroup) {
$payload['WorkGroup'] = $v;
}

return $payload;
}
Expand Down
26 changes: 26 additions & 0 deletions src/Input/GetDatabaseInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,35 @@ final class GetDatabaseInput extends Input
*/
private $databaseName;

/**
* The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center
* enabled Glue Data Catalog.
*
* @var string|null
*/
private $workGroup;

/**
* @param array{
* CatalogName?: string,
* DatabaseName?: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* } $input
*/
public function __construct(array $input = [])
{
$this->catalogName = $input['CatalogName'] ?? null;
$this->databaseName = $input['DatabaseName'] ?? null;
$this->workGroup = $input['WorkGroup'] ?? null;
parent::__construct($input);
}

/**
* @param array{
* CatalogName?: string,
* DatabaseName?: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|GetDatabaseInput $input
*/
Expand All @@ -63,6 +74,11 @@ public function getDatabaseName(): ?string
return $this->databaseName;
}

public function getWorkGroup(): ?string
{
return $this->workGroup;
}

/**
* @internal
*/
Expand Down Expand Up @@ -102,6 +118,13 @@ public function setDatabaseName(?string $value): self
return $this;
}

public function setWorkGroup(?string $value): self
{
$this->workGroup = $value;

return $this;
}

private function requestBody(): array
{
$payload = [];
Expand All @@ -113,6 +136,9 @@ private function requestBody(): array
throw new InvalidArgument(sprintf('Missing parameter "DatabaseName" for "%s". The value cannot be null.', __CLASS__));
}
$payload['DatabaseName'] = $v;
if (null !== $v = $this->workGroup) {
$payload['WorkGroup'] = $v;
}

return $payload;
}
Expand Down
26 changes: 26 additions & 0 deletions src/Input/GetTableMetadataInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,20 @@ final class GetTableMetadataInput extends Input
*/
private $tableName;

/**
* The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center
* enabled Glue Data Catalog.
*
* @var string|null
*/
private $workGroup;

/**
* @param array{
* CatalogName?: string,
* DatabaseName?: string,
* TableName?: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* } $input
*/
Expand All @@ -49,6 +58,7 @@ public function __construct(array $input = [])
$this->catalogName = $input['CatalogName'] ?? null;
$this->databaseName = $input['DatabaseName'] ?? null;
$this->tableName = $input['TableName'] ?? null;
$this->workGroup = $input['WorkGroup'] ?? null;
parent::__construct($input);
}

Expand All @@ -57,6 +67,7 @@ public function __construct(array $input = [])
* CatalogName?: string,
* DatabaseName?: string,
* TableName?: string,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|GetTableMetadataInput $input
*/
Expand All @@ -80,6 +91,11 @@ public function getTableName(): ?string
return $this->tableName;
}

public function getWorkGroup(): ?string
{
return $this->workGroup;
}

/**
* @internal
*/
Expand Down Expand Up @@ -126,6 +142,13 @@ public function setTableName(?string $value): self
return $this;
}

public function setWorkGroup(?string $value): self
{
$this->workGroup = $value;

return $this;
}

private function requestBody(): array
{
$payload = [];
Expand All @@ -141,6 +164,9 @@ private function requestBody(): array
throw new InvalidArgument(sprintf('Missing parameter "TableName" for "%s". The value cannot be null.', __CLASS__));
}
$payload['TableName'] = $v;
if (null !== $v = $this->workGroup) {
$payload['WorkGroup'] = $v;
}

return $payload;
}
Expand Down
26 changes: 26 additions & 0 deletions src/Input/ListDatabasesInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,20 @@ final class ListDatabasesInput extends Input
*/
private $maxResults;

/**
* The name of the workgroup for which the metadata is being fetched. Required if requesting an IAM Identity Center
* enabled Glue Data Catalog.
*
* @var string|null
*/
private $workGroup;

/**
* @param array{
* CatalogName?: string,
* NextToken?: null|string,
* MaxResults?: null|int,
* WorkGroup?: null|string,
* '@region'?: string|null,
* } $input
*/
Expand All @@ -47,6 +56,7 @@ public function __construct(array $input = [])
$this->catalogName = $input['CatalogName'] ?? null;
$this->nextToken = $input['NextToken'] ?? null;
$this->maxResults = $input['MaxResults'] ?? null;
$this->workGroup = $input['WorkGroup'] ?? null;
parent::__construct($input);
}

Expand All @@ -55,6 +65,7 @@ public function __construct(array $input = [])
* CatalogName?: string,
* NextToken?: null|string,
* MaxResults?: null|int,
* WorkGroup?: null|string,
* '@region'?: string|null,
* }|ListDatabasesInput $input
*/
Expand All @@ -78,6 +89,11 @@ public function getNextToken(): ?string
return $this->nextToken;
}

public function getWorkGroup(): ?string
{
return $this->workGroup;
}

/**
* @internal
*/
Expand Down Expand Up @@ -124,6 +140,13 @@ public function setNextToken(?string $value): self
return $this;
}

public function setWorkGroup(?string $value): self
{
$this->workGroup = $value;

return $this;
}

private function requestBody(): array
{
$payload = [];
Expand All @@ -137,6 +160,9 @@ private function requestBody(): array
if (null !== $v = $this->maxResults) {
$payload['MaxResults'] = $v;
}
if (null !== $v = $this->workGroup) {
$payload['WorkGroup'] = $v;
}

return $payload;
}
Expand Down
Loading

0 comments on commit f3a430d

Please sign in to comment.