Skip to content

Commit 4fdaf7c

Browse files
Update generated code (#1627)
* update generated code * Update src/Service/Firehose/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent aeb2d62 commit 4fdaf7c

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Added InvalidSourceException in put operations
8+
59
## 1.1.1
610

711
### Changed

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.1-dev"
31+
"dev-master": "1.2-dev"
3232
}
3333
}
3434
}

Diff for: src/Exception/InvalidSourceException.php

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Firehose\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.
9+
*/
10+
final class InvalidSourceException extends ClientException
11+
{
12+
}

Diff for: src/FirehoseClient.php

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use AsyncAws\Core\RequestContext;
1010
use AsyncAws\Firehose\Exception\InvalidArgumentException;
1111
use AsyncAws\Firehose\Exception\InvalidKMSResourceException;
12+
use AsyncAws\Firehose\Exception\InvalidSourceException;
1213
use AsyncAws\Firehose\Exception\ResourceNotFoundException;
1314
use AsyncAws\Firehose\Exception\ServiceUnavailableException;
1415
use AsyncAws\Firehose\Input\PutRecordBatchInput;
@@ -73,6 +74,7 @@ class FirehoseClient extends AbstractApi
7374
* @throws ResourceNotFoundException
7475
* @throws InvalidArgumentException
7576
* @throws InvalidKMSResourceException
77+
* @throws InvalidSourceException
7678
* @throws ServiceUnavailableException
7779
*/
7880
public function putRecord($input): PutRecordOutput
@@ -82,6 +84,7 @@ public function putRecord($input): PutRecordOutput
8284
'ResourceNotFoundException' => ResourceNotFoundException::class,
8385
'InvalidArgumentException' => InvalidArgumentException::class,
8486
'InvalidKMSResourceException' => InvalidKMSResourceException::class,
87+
'InvalidSourceException' => InvalidSourceException::class,
8588
'ServiceUnavailableException' => ServiceUnavailableException::class,
8689
]]));
8790

@@ -158,6 +161,7 @@ public function putRecord($input): PutRecordOutput
158161
* @throws ResourceNotFoundException
159162
* @throws InvalidArgumentException
160163
* @throws InvalidKMSResourceException
164+
* @throws InvalidSourceException
161165
* @throws ServiceUnavailableException
162166
*/
163167
public function putRecordBatch($input): PutRecordBatchOutput
@@ -167,6 +171,7 @@ public function putRecordBatch($input): PutRecordBatchOutput
167171
'ResourceNotFoundException' => ResourceNotFoundException::class,
168172
'InvalidArgumentException' => InvalidArgumentException::class,
169173
'InvalidKMSResourceException' => InvalidKMSResourceException::class,
174+
'InvalidSourceException' => InvalidSourceException::class,
170175
'ServiceUnavailableException' => ServiceUnavailableException::class,
171176
]]));
172177

0 commit comments

Comments
 (0)