DynamoDB - with AWS SDK
Given this Python code snippet for DynamoDB, what will be the output if a throttling error occurs on the first attempt?
import boto3
from botocore.exceptions import ClientError
client = boto3.client('dynamodb')
try:
response = client.put_item(TableName='MyTable', Item={'id': {'S': '123'}})
print('Success')
except ClientError as e:
if e.response['Error']['Code'] == 'ThrottlingException':
print('Retrying...')
else:
print('Failed')