Skip to content

Commit d47a765

Browse files
Update generated code (#2101)
update generated code
1 parent 1f2cc6f commit d47a765

23 files changed

Lines changed: 459 additions & 193 deletions

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+
### Added
6+
7+
- AWS api-change: Converging and fixing existing documentation gaps in Lambda SDK
8+
59
## 2.15.0
610

711
### Added

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"extra": {
3434
"branch-alias": {
35-
"dev-master": "2.15-dev"
35+
"dev-master": "2.16-dev"
3636
}
3737
}
3838
}

src/Enum/LastUpdateStatusReasonCode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ final class LastUpdateStatusReasonCode
3636
public const INVALID_ZIP_FILE_EXCEPTION = 'InvalidZipFileException';
3737
public const KMSKEY_ACCESS_DENIED = 'KMSKeyAccessDenied';
3838
public const KMSKEY_NOT_FOUND = 'KMSKeyNotFound';
39+
public const SERVICE_QUOTA_EXCEEDED_EXCEPTION = 'ServiceQuotaExceededException';
3940
public const SUBNET_OUT_OF_IPADDRESSES = 'SubnetOutOfIPAddresses';
4041
public const VCPU_LIMIT_EXCEEDED = 'VcpuLimitExceeded';
4142
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
@@ -78,6 +79,7 @@ public static function exists(string $value): bool
7879
self::INVALID_ZIP_FILE_EXCEPTION => true,
7980
self::KMSKEY_ACCESS_DENIED => true,
8081
self::KMSKEY_NOT_FOUND => true,
82+
self::SERVICE_QUOTA_EXCEEDED_EXCEPTION => true,
8183
self::SUBNET_OUT_OF_IPADDRESSES => true,
8284
self::VCPU_LIMIT_EXCEEDED => true,
8385
][$value]);

src/Enum/StateReasonCode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ final class StateReasonCode
4040
public const KMSKEY_ACCESS_DENIED = 'KMSKeyAccessDenied';
4141
public const KMSKEY_NOT_FOUND = 'KMSKeyNotFound';
4242
public const RESTORING = 'Restoring';
43+
public const SERVICE_QUOTA_EXCEEDED_EXCEPTION = 'ServiceQuotaExceededException';
4344
public const SUBNET_OUT_OF_IPADDRESSES = 'SubnetOutOfIPAddresses';
4445
public const VCPU_LIMIT_EXCEEDED = 'VcpuLimitExceeded';
4546
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
@@ -86,6 +87,7 @@ public static function exists(string $value): bool
8687
self::KMSKEY_ACCESS_DENIED => true,
8788
self::KMSKEY_NOT_FOUND => true,
8889
self::RESTORING => true,
90+
self::SERVICE_QUOTA_EXCEEDED_EXCEPTION => true,
8991
self::SUBNET_OUT_OF_IPADDRESSES => true,
9092
self::VCPU_LIMIT_EXCEEDED => true,
9193
][$value]);
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* The Lambda function couldn't be invoked because its code artifact user has been deleted. Wait for Lambda to provision
10+
* a new code artifact user, or update the function's code package to recreate it.
11+
*/
12+
final class CodeArtifactUserDeletedException extends ClientException
13+
{
14+
/**
15+
* The exception type.
16+
*
17+
* @var string|null
18+
*/
19+
private $type;
20+
21+
public function getType(): ?string
22+
{
23+
return $this->type;
24+
}
25+
26+
protected function populateResult(ResponseInterface $response): void
27+
{
28+
$data = $response->toArray(false);
29+
30+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* The Lambda function couldn't be invoked because provisioning of its code artifact user failed. Update the function's
10+
* code package or check the Lambda function's `State` and `StateReasonCode` for additional context.
11+
*/
12+
final class CodeArtifactUserFailedException extends ClientException
13+
{
14+
/**
15+
* The exception type.
16+
*
17+
* @var string|null
18+
*/
19+
private $type;
20+
21+
public function getType(): ?string
22+
{
23+
return $this->type;
24+
}
25+
26+
protected function populateResult(ResponseInterface $response): void
27+
{
28+
$data = $response->toArray(false);
29+
30+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* The Lambda function couldn't be invoked because its code artifact user is still being provisioned. Wait for the
10+
* function's `State` to become `Active` and try the request again.
11+
*/
12+
final class CodeArtifactUserPendingException extends ClientException
13+
{
14+
/**
15+
* The exception type.
16+
*
17+
* @var string|null
18+
*/
19+
private $type;
20+
21+
public function getType(): ?string
22+
{
23+
return $this->type;
24+
}
25+
26+
protected function populateResult(ResponseInterface $response): void
27+
{
28+
$data = $response->toArray(false);
29+
30+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
31+
}
32+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ServerException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* Lambda couldn't invoke the Lambda function because the elastic network interface (ENI) configured for its VPC
10+
* connection isn't ready yet. Wait a few moments and try the request again. For more information about VPC
11+
* configuration, see Configuring a Lambda function to access resources in a VPC [^1].
12+
*
13+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
14+
*/
15+
final class ENINotReadyException extends ServerException
16+
{
17+
/**
18+
* The exception type.
19+
*
20+
* @var string|null
21+
*/
22+
private $type;
23+
24+
public function getType(): ?string
25+
{
26+
return $this->type;
27+
}
28+
29+
protected function populateResult(ResponseInterface $response): void
30+
{
31+
$data = $response->toArray(false);
32+
33+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* The Lambda function doesn't support the invocation mode requested. For example, calling `Invoke` with
10+
* `InvocationType=RequestResponse` on a function configured for asynchronous-only invocation, or vice versa. For more
11+
* information about invocation types, see Invoking Lambda functions [^1].
12+
*
13+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-options.html
14+
*/
15+
final class ModeNotSupportedException extends ClientException
16+
{
17+
/**
18+
* The exception type.
19+
*
20+
* @var string|null
21+
*/
22+
private $type;
23+
24+
public function getType(): ?string
25+
{
26+
return $this->type;
27+
}
28+
29+
protected function populateResult(ResponseInterface $response): void
30+
{
31+
$data = $response->toArray(false);
32+
33+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace AsyncAws\Lambda\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
use Symfony\Contracts\HttpClient\ResponseInterface;
7+
8+
/**
9+
* The request would exceed a service quota. For more information about Lambda service quotas, see Lambda quotas [^1].
10+
* To request a quota increase, see Requesting a quota increase [^2] in the *Service Quotas User Guide*.
11+
*
12+
* [^1]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
13+
* [^2]: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
14+
*/
15+
final class ServiceQuotaExceededException extends ClientException
16+
{
17+
/**
18+
* The exception type.
19+
*
20+
* @var string|null
21+
*/
22+
private $type;
23+
24+
public function getType(): ?string
25+
{
26+
return $this->type;
27+
}
28+
29+
protected function populateResult(ResponseInterface $response): void
30+
{
31+
$data = $response->toArray(false);
32+
33+
$this->type = isset($data['Type']) ? (string) $data['Type'] : null;
34+
}
35+
}

0 commit comments

Comments
 (0)