(gsi)
return {
        "IndexName": gsi["IndexName"],
        "KeySchema": gsi["KeySchema"],
        "Projection": gsi["Projection"],
        "ProvisionedThroughput": prepare_provisioned_throughput_for_restore(
            gsi["ProvisionedThroughput"]
        ),
    }
This function makes sure that the payload returned for the boto3 API call create_table is compatible
    See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
This function makes sure that the payload returned for the boto3 API call create_table is compatible
    See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
This function makes sure that the payload returned for the boto3 API call create_table is compatible See : https : // boto3 . amazonaws . com / v1 / documentation / api / latest / reference / services / dynamodb . html
def prepare_gsi_for_restore(gsi):
    """
    This function makes sure that the payload returned for the boto3 API call create_table is compatible
    See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html
    """
    return {
        "IndexName": gsi["IndexName"],
        "KeySchema": gsi["KeySchema"],
        "Projection": gsi["Projection"],
        "ProvisionedThroughput": prepare_provisioned_throughput_for_restore(
            gsi["ProvisionedThroughput"]
        ),
    }
def prepare_gsi_for_restore ( gsi ) : return { "IndexName" : gsi [ "IndexName" ] , "KeySchema" : gsi [ "KeySchema" ] , "Projection" : gsi [ "Projection" ] , "ProvisionedThroughput" : prepare_provisioned_throughput_for_restore ( gsi [ "ProvisionedThroughput" ] ) , }