からアイテムを取得するときにこれは私がアイテムを取得しようとすると、テーブルの内容 DynamoDBの
を設定し、テーブルのパーティション・キーでエラー「提供重要な要素は、スキーマと一致していません」テーブルから、これは私のコードである
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the GetItem operation: The provided key element does not match the schema
このエラーを出力
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('testDynamodb')
response = table.get_item(Key={'userId': "user2873"})
item = response['Item']
print(item)
アイデア?ありがとう。