# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .aws_region import AwsRegion


class AwsBedrockGuardrailConfigConfig(UniversalBaseModel):
    guardrail_id: str = pydantic.Field()
    """
    The unique identifier of the Bedrock Guardrail created in AWS console
    """

    guardrail_version: str = pydantic.Field()
    """
    Version number of the guardrail to use (e.g., 2 for version 2)
    """

    region: AwsRegion

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow")  # type: ignore # Pydantic v2
    else:

        class Config:
            smart_union = True
            extra = pydantic.Extra.allow
