def METHOD_NAME(
    account_id: str,
    region_name: str,
    result: dict,
    logical_resource_id: str,
    resource: dict,
):
    table_name = result["TableDescription"]["TableName"]
    connect_to(aws_access_key_id=account_id, region_name=region_name).dynamodb.get_waiter(
        "table_exists"
    ).wait(TableName=table_name)
    desc_table = connect_to(
        aws_access_key_id=account_id, region_name=region_name
    ).dynamodb.describe_table(TableName=table_name)
    resource["Properties"]["Arn"] = desc_table["Table"]["TableArn"]
    if stream_arn := desc_table["Table"].get("LatestStreamArn"):
        resource["Properties"]["StreamArn"] = stream_arn
    resource["PhysicalResourceId"] = table_name