15
15
use AsyncAws \Kinesis \Exception \AccessDeniedException ;
16
16
use AsyncAws \Kinesis \Exception \ExpiredIteratorException ;
17
17
use AsyncAws \Kinesis \Exception \ExpiredNextTokenException ;
18
+ use AsyncAws \Kinesis \Exception \InternalFailureException ;
18
19
use AsyncAws \Kinesis \Exception \InvalidArgumentException ;
19
20
use AsyncAws \Kinesis \Exception \KMSAccessDeniedException ;
20
21
use AsyncAws \Kinesis \Exception \KMSDisabledException ;
@@ -151,10 +152,11 @@ public function addTagsToStream($input): Result
151
152
*
152
153
* CreateStream has a limit of five transactions per second per account.
153
154
*
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.
158
160
*
159
161
* [^1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
160
162
* [^2]: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
@@ -603,6 +605,7 @@ public function enableEnhancedMonitoring($input): EnhancedMonitoringOutput
603
605
*
604
606
* @throws AccessDeniedException
605
607
* @throws ExpiredIteratorException
608
+ * @throws InternalFailureException
606
609
* @throws InvalidArgumentException
607
610
* @throws KMSAccessDeniedException
608
611
* @throws KMSDisabledException
@@ -619,6 +622,7 @@ public function getRecords($input): GetRecordsOutput
619
622
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'GetRecords ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
620
623
'AccessDeniedException ' => AccessDeniedException::class,
621
624
'ExpiredIteratorException ' => ExpiredIteratorException::class,
625
+ 'InternalFailureException ' => InternalFailureException::class,
622
626
'InvalidArgumentException ' => InvalidArgumentException::class,
623
627
'KMSAccessDeniedException ' => KMSAccessDeniedException::class,
624
628
'KMSDisabledException ' => KMSDisabledException::class,
@@ -683,6 +687,7 @@ public function getRecords($input): GetRecordsOutput
683
687
* }|GetShardIteratorInput $input
684
688
*
685
689
* @throws AccessDeniedException
690
+ * @throws InternalFailureException
686
691
* @throws InvalidArgumentException
687
692
* @throws ProvisionedThroughputExceededException
688
693
* @throws ResourceNotFoundException
@@ -692,6 +697,7 @@ public function getShardIterator($input): GetShardIteratorOutput
692
697
$ input = GetShardIteratorInput::create ($ input );
693
698
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'GetShardIterator ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
694
699
'AccessDeniedException ' => AccessDeniedException::class,
700
+ 'InternalFailureException ' => InternalFailureException::class,
695
701
'InvalidArgumentException ' => InvalidArgumentException::class,
696
702
'ProvisionedThroughputExceededException ' => ProvisionedThroughputExceededException::class,
697
703
'ResourceNotFoundException ' => ResourceNotFoundException::class,
@@ -1037,6 +1043,7 @@ public function mergeShards($input): Result
1037
1043
* }|PutRecordInput $input
1038
1044
*
1039
1045
* @throws AccessDeniedException
1046
+ * @throws InternalFailureException
1040
1047
* @throws InvalidArgumentException
1041
1048
* @throws KMSAccessDeniedException
1042
1049
* @throws KMSDisabledException
@@ -1052,6 +1059,7 @@ public function putRecord($input): PutRecordOutput
1052
1059
$ input = PutRecordInput::create ($ input );
1053
1060
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'PutRecord ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
1054
1061
'AccessDeniedException ' => AccessDeniedException::class,
1062
+ 'InternalFailureException ' => InternalFailureException::class,
1055
1063
'InvalidArgumentException ' => InvalidArgumentException::class,
1056
1064
'KMSAccessDeniedException ' => KMSAccessDeniedException::class,
1057
1065
'KMSDisabledException ' => KMSDisabledException::class,
@@ -1135,6 +1143,7 @@ public function putRecord($input): PutRecordOutput
1135
1143
* }|PutRecordsInput $input
1136
1144
*
1137
1145
* @throws AccessDeniedException
1146
+ * @throws InternalFailureException
1138
1147
* @throws InvalidArgumentException
1139
1148
* @throws KMSAccessDeniedException
1140
1149
* @throws KMSDisabledException
@@ -1150,6 +1159,7 @@ public function putRecords($input): PutRecordsOutput
1150
1159
$ input = PutRecordsInput::create ($ input );
1151
1160
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'PutRecords ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
1152
1161
'AccessDeniedException ' => AccessDeniedException::class,
1162
+ 'InternalFailureException ' => InternalFailureException::class,
1153
1163
'InvalidArgumentException ' => InvalidArgumentException::class,
1154
1164
'KMSAccessDeniedException ' => KMSAccessDeniedException::class,
1155
1165
'KMSDisabledException ' => KMSDisabledException::class,
@@ -1170,6 +1180,11 @@ public function putRecords($input): PutRecordsOutput
1170
1180
* every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same
1171
1181
* stream.
1172
1182
*
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
+ *
1173
1188
* You can register up to 20 consumers per stream. A given consumer can only be registered with one stream at a time.
1174
1189
*
1175
1190
* 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
1186
1201
* @param array{
1187
1202
* StreamARN: string,
1188
1203
* ConsumerName: string,
1204
+ * Tags?: null|array<string, string>,
1189
1205
* '@region'?: string|null,
1190
1206
* }|RegisterStreamConsumerInput $input
1191
1207
*
0 commit comments