source/controlplaneapi/runtime/app.py [1494:1516]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            Key={
                "Name": name,
                "Version": version
            },
            UpdateExpression="SET #Enabled = :Status",
            ConditionExpression="attribute_exists(#Name) AND attribute_exists(#Version)",
            ExpressionAttributeNames={
                "#Enabled": "Enabled",
                "#Name": "Name",
                "#Version": "Version"
            },
            ExpressionAttributeValues={
                ":Status": status["Enabled"]
            }
        )

    except ValidationError as e:
        print(f"Got jsonschema ValidationError: {str(e)}")
        raise BadRequestError(e.message)

    except ClientError as e:
        print(f"Got DynamoDB ClientError: {str(e)}")
        if e.response["Error"]["Code"] == "ConditionalCheckFailedException":
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



source/controlplaneapi/runtime/app.py [3782:3804]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            Key={
                "Name": name,
                "Version": version
            },
            UpdateExpression="SET #Enabled = :Status",
            ConditionExpression="attribute_exists(#Name) AND attribute_exists(#Version)",
            ExpressionAttributeNames={
                "#Enabled": "Enabled",
                "#Name": "Name",
                "#Version": "Version"
            },
            ExpressionAttributeValues={
                ":Status": status["Enabled"]
            }
        )

    except ValidationError as e:
        print(f"Got jsonschema ValidationError: {str(e)}")
        raise BadRequestError(e.message)

    except ClientError as e:
        print(f"Got DynamoDB ClientError: {str(e)}")
        if e.response["Error"]["Code"] == "ConditionalCheckFailedException":
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



