'default', 'version' => '2013-12-02', 'region' => 'us-east-2' ]); $name = "my_stream_name"; $totalshards = 4; try { $result = $kinesisClient->UpdateShardCount([ 'ScalingType' => 'UNIFORM_SCALING', 'StreamName' => $name, 'TargetShardCount' => $totalshards ]); var_dump($result); } catch (AwsException $e) { // output error message if fails echo $e->getMessage(); echo "\n"; } // snippet-end:[kinesis.php.update_data_stream_shards.main] // snippet-end:[kinesis.php.update_data_stream_shards.complete] // snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] // snippet-sourcedescription:[UpdateDataStreamShards.php demonstrates how to update the shards count of a Amazon Kinesis Data Streams stream. Remember you can only double your shard count when increasing. Also you may not scale down to more than half of your current shard count when decreasing. ] // snippet-keyword:[PHP] // snippet-sourcesyntax:[php] // snippet-keyword:[AWS SDK for PHP v3] // snippet-keyword:[Code Sample] // snippet-keyword:[Amazon Kinesis] // snippet-service:[kinesis] // snippet-sourcetype:[full-example] // snippet-sourcedate:[2018-12-27] // snippet-sourceauthor:[jschwarzwalder (AWS)]