def create_permission(namespace: str=None, action: str=None):
    """

    DynamoDB Integration:
    ---

    required_fields = [namespace, action]

    if not all(required_fields):
        raise KeyError("NAMESPACE & ACTION fields are required.")

    try:
        permission_table.put_item(Item={
            "namespace": namespace,
            "action": action
        })

        return permission_table.get_item(Key={'namespace':{'S': namespace},
                                              'action':{'S': action}})
    except Exception as e:
        print(e)

        raise KeyError
    """
    required_fields = [namespace, action]
    if not all(required_fields):
        raise KeyError('NAMESPACE & ACTION fields are required.')
    return {'id': 'new-object-id', 'namespace': namespace, 'action': action,
        'permission': f'{namespace}:{action}'}
