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

from ...core.unchecked_base_model import UncheckedBaseModel
from .aws_provider_credential import AwsProviderCredential
import pydantic
from ...core.pydantic_utilities import IS_PYDANTIC_V2
import typing


class CloudSecurityAwsEventBridgeSqs(UncheckedBaseModel):
    """
    Configuration for the AWS EventBridge SQS Provider that reads security events from an SQS queue populated by EventBridge (e.g. from GuardDuty and SecurityHub).
    """

    credential: AwsProviderCredential = pydantic.Field()
    """
    AWS credentials with access to the configured SQS queue.
    """

    queue_url: str = pydantic.Field()
    """
    URL of the SQS queue where EventBridge sends GuardDuty and SecurityHub events.
    """

    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
