Skip to content

Commit

Permalink
Update generated code (#1627)
Browse files Browse the repository at this point in the history
* update generated code

* Update src/Service/Firehose/CHANGELOG.md

---------

Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
  • Loading branch information
async-aws-bot and jderusse authored Dec 15, 2023
1 parent aeb2d62 commit 4fdaf7c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: Added InvalidSourceException in put operations

## 1.1.1

### Changed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
"dev-master": "1.2-dev"
}
}
}
12 changes: 12 additions & 0 deletions src/Exception/InvalidSourceException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace AsyncAws\Firehose\Exception;

use AsyncAws\Core\Exception\Http\ClientException;

/**
* Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.
*/
final class InvalidSourceException extends ClientException
{
}
5 changes: 5 additions & 0 deletions src/FirehoseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use AsyncAws\Core\RequestContext;
use AsyncAws\Firehose\Exception\InvalidArgumentException;
use AsyncAws\Firehose\Exception\InvalidKMSResourceException;
use AsyncAws\Firehose\Exception\InvalidSourceException;
use AsyncAws\Firehose\Exception\ResourceNotFoundException;
use AsyncAws\Firehose\Exception\ServiceUnavailableException;
use AsyncAws\Firehose\Input\PutRecordBatchInput;
Expand Down Expand Up @@ -73,6 +74,7 @@ class FirehoseClient extends AbstractApi
* @throws ResourceNotFoundException
* @throws InvalidArgumentException
* @throws InvalidKMSResourceException
* @throws InvalidSourceException
* @throws ServiceUnavailableException
*/
public function putRecord($input): PutRecordOutput
Expand All @@ -82,6 +84,7 @@ public function putRecord($input): PutRecordOutput
'ResourceNotFoundException' => ResourceNotFoundException::class,
'InvalidArgumentException' => InvalidArgumentException::class,
'InvalidKMSResourceException' => InvalidKMSResourceException::class,
'InvalidSourceException' => InvalidSourceException::class,
'ServiceUnavailableException' => ServiceUnavailableException::class,
]]));

Expand Down Expand Up @@ -158,6 +161,7 @@ public function putRecord($input): PutRecordOutput
* @throws ResourceNotFoundException
* @throws InvalidArgumentException
* @throws InvalidKMSResourceException
* @throws InvalidSourceException
* @throws ServiceUnavailableException
*/
public function putRecordBatch($input): PutRecordBatchOutput
Expand All @@ -167,6 +171,7 @@ public function putRecordBatch($input): PutRecordBatchOutput
'ResourceNotFoundException' => ResourceNotFoundException::class,
'InvalidArgumentException' => InvalidArgumentException::class,
'InvalidKMSResourceException' => InvalidKMSResourceException::class,
'InvalidSourceException' => InvalidSourceException::class,
'ServiceUnavailableException' => ServiceUnavailableException::class,
]]));

Expand Down

0 comments on commit 4fdaf7c

Please sign in to comment.