AWS Kinesisで動的シャーディングを実装しようとしています。私は、PythonとAWS Kinesisを接続するためにBoto3ライブラリを使用してkinesisストリームの断片数を更新するためのサンプルPythonスクリプトを作成しました。 しかし、update_shard_count
メソッドを使用すると、キネシスオブジェクト属性no update_shard_countエラーが発生します。AWS Kinesisオブジェクトには属性がありません:update_shard_count
import boto3
client = boto3.client('kinesis',region_name='us-east-1')
response = client.update_shard_count(
StreamName='xyzstream',
TargetShardCount=2,
ScalingType='UNIFORM_SCALING')
Traceback (most recent call last): File "", line 1, in AttributeError: 'Kinesis' object has no attribute 'update_shard_count'
次に、どのように私は、APIを使用してキネシスシャード数を更新することができますか?
私はちょうどboto3のバージョン1.4.2でこれを試してみましたが、キネシスクライアントオブジェクトは間違い '' update_shard_count''方法があります。どのバージョンを使用していますか? – garnaat