1515use AsyncAws \Kinesis \Exception \AccessDeniedException ;
1616use AsyncAws \Kinesis \Exception \ExpiredIteratorException ;
1717use AsyncAws \Kinesis \Exception \ExpiredNextTokenException ;
18+ use AsyncAws \Kinesis \Exception \InternalFailureException ;
1819use AsyncAws \Kinesis \Exception \InvalidArgumentException ;
1920use AsyncAws \Kinesis \Exception \KMSAccessDeniedException ;
2021use AsyncAws \Kinesis \Exception \KMSDisabledException ;
@@ -151,10 +152,11 @@ public function addTagsToStream($input): Result
151152 *
152153 * CreateStream has a limit of five transactions per second per account.
153154 *
154- * You can add tags to the stream when making a `CreateStream` request by setting the `Tags` parameter. If you pass
155- * `Tags` parameter, in addition to having `kinesis:createStream` permission, you must also have
156- * `kinesis:addTagsToStream` permission for the stream that will be created. Tags will take effect from the `CREATING`
157- * status of the stream.
155+ * You can add tags to the stream when making a `CreateStream` request by setting the `Tags` parameter. If you pass the
156+ * `Tags` parameter, in addition to having the `kinesis:CreateStream` permission, you must also have the
157+ * `kinesis:AddTagsToStream` permission for the stream that will be created. The `kinesis:TagResource` permission
158+ * won’t work to tag streams on creation. Tags will take effect from the `CREATING` status of the stream, but you
159+ * can't make any updates to the tags until the stream is in `ACTIVE` state.
158160 *
159161 * [^1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
160162 * [^2]: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
@@ -603,6 +605,7 @@ public function enableEnhancedMonitoring($input): EnhancedMonitoringOutput
603605 *
604606 * @throws AccessDeniedException
605607 * @throws ExpiredIteratorException
608+ * @throws InternalFailureException
606609 * @throws InvalidArgumentException
607610 * @throws KMSAccessDeniedException
608611 * @throws KMSDisabledException
@@ -619,6 +622,7 @@ public function getRecords($input): GetRecordsOutput
619622 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'GetRecords ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
620623 'AccessDeniedException ' => AccessDeniedException::class,
621624 'ExpiredIteratorException ' => ExpiredIteratorException::class,
625+ 'InternalFailureException ' => InternalFailureException::class,
622626 'InvalidArgumentException ' => InvalidArgumentException::class,
623627 'KMSAccessDeniedException ' => KMSAccessDeniedException::class,
624628 'KMSDisabledException ' => KMSDisabledException::class,
@@ -683,6 +687,7 @@ public function getRecords($input): GetRecordsOutput
683687 * }|GetShardIteratorInput $input
684688 *
685689 * @throws AccessDeniedException
690+ * @throws InternalFailureException
686691 * @throws InvalidArgumentException
687692 * @throws ProvisionedThroughputExceededException
688693 * @throws ResourceNotFoundException
@@ -692,6 +697,7 @@ public function getShardIterator($input): GetShardIteratorOutput
692697 $ input = GetShardIteratorInput::create ($ input );
693698 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'GetShardIterator ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
694699 'AccessDeniedException ' => AccessDeniedException::class,
700+ 'InternalFailureException ' => InternalFailureException::class,
695701 'InvalidArgumentException ' => InvalidArgumentException::class,
696702 'ProvisionedThroughputExceededException ' => ProvisionedThroughputExceededException::class,
697703 'ResourceNotFoundException ' => ResourceNotFoundException::class,
@@ -1037,6 +1043,7 @@ public function mergeShards($input): Result
10371043 * }|PutRecordInput $input
10381044 *
10391045 * @throws AccessDeniedException
1046+ * @throws InternalFailureException
10401047 * @throws InvalidArgumentException
10411048 * @throws KMSAccessDeniedException
10421049 * @throws KMSDisabledException
@@ -1052,6 +1059,7 @@ public function putRecord($input): PutRecordOutput
10521059 $ input = PutRecordInput::create ($ input );
10531060 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'PutRecord ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
10541061 'AccessDeniedException ' => AccessDeniedException::class,
1062+ 'InternalFailureException ' => InternalFailureException::class,
10551063 'InvalidArgumentException ' => InvalidArgumentException::class,
10561064 'KMSAccessDeniedException ' => KMSAccessDeniedException::class,
10571065 'KMSDisabledException ' => KMSDisabledException::class,
@@ -1135,6 +1143,7 @@ public function putRecord($input): PutRecordOutput
11351143 * }|PutRecordsInput $input
11361144 *
11371145 * @throws AccessDeniedException
1146+ * @throws InternalFailureException
11381147 * @throws InvalidArgumentException
11391148 * @throws KMSAccessDeniedException
11401149 * @throws KMSDisabledException
@@ -1150,6 +1159,7 @@ public function putRecords($input): PutRecordsOutput
11501159 $ input = PutRecordsInput::create ($ input );
11511160 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'PutRecords ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
11521161 'AccessDeniedException ' => AccessDeniedException::class,
1162+ 'InternalFailureException ' => InternalFailureException::class,
11531163 'InvalidArgumentException ' => InvalidArgumentException::class,
11541164 'KMSAccessDeniedException ' => KMSAccessDeniedException::class,
11551165 'KMSDisabledException ' => KMSDisabledException::class,
@@ -1170,6 +1180,11 @@ public function putRecords($input): PutRecordsOutput
11701180 * every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same
11711181 * stream.
11721182 *
1183+ * You can add tags to the registered consumer when making a `RegisterStreamConsumer` request by setting the `Tags`
1184+ * parameter. If you pass the `Tags` parameter, in addition to having the `kinesis:RegisterStreamConsumer` permission,
1185+ * you must also have the `kinesis:TagResource` permission for the consumer that will be registered. Tags will take
1186+ * effect from the `CREATING` status of the consumer.
1187+ *
11731188 * You can register up to 20 consumers per stream. A given consumer can only be registered with one stream at a time.
11741189 *
11751190 * For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API [^1].
@@ -1186,6 +1201,7 @@ public function putRecords($input): PutRecordsOutput
11861201 * @param array{
11871202 * StreamARN: string,
11881203 * ConsumerName: string,
1204+ * Tags?: null|array<string, string>,
11891205 * '@region'?: string|null,
11901206 * }|RegisterStreamConsumerInput $input
11911207 *
0 commit comments