Module aws_lambda_powertools.utilities.parser.models.s3
Classes
- class S3Bucket (**data: Any)
- 
Expand source codeclass S3Bucket(BaseModel): name: str ownerIdentity: S3OwnerIdentify arn: strUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var arn : str
- var model_config
- var name : str
- var ownerIdentity : S3OwnerIdentify
 
- class S3EventNotificationEventBridgeBucketModel (**data: Any)
- 
Expand source codeclass S3EventNotificationEventBridgeBucketModel(BaseModel): name: strUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var model_config
- var name : str
 
- class S3EventNotificationEventBridgeDetailModel (**data: Any)
- 
Expand source codeclass S3EventNotificationEventBridgeDetailModel(BaseModel): version: str bucket: S3EventNotificationEventBridgeBucketModel object: S3EventNotificationObjectModel # noqa: A003,VNE003 request_id: str = Field(..., alias="request-id") requester: str source_ip_address: Optional[str] = Field(None, alias="source-ip-address") reason: Optional[str] = None deletion_type: Optional[str] = Field(None, alias="deletion-type") restore_expiry_time: Optional[str] = Field(None, alias="restore-expiry-time") source_storage_class: Optional[str] = Field(None, alias="source-storage-class") destination_storage_class: Optional[str] = Field(None, alias="destination-storage-class") destination_access_tier: Optional[str] = Field(None, alias="destination-access-tier")Usage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var bucket : S3EventNotificationEventBridgeBucketModel
- var deletion_type : str | None
- var destination_access_tier : str | None
- var destination_storage_class : str | None
- var model_config
- var object : S3EventNotificationObjectModel
- var reason : str | None
- var request_id : str
- var requester : str
- var restore_expiry_time : str | None
- var source_ip_address : str | None
- var source_storage_class : str | None
- var version : str
 
- class S3EventNotificationEventBridgeModel (**data: Any)
- 
Expand source codeclass S3EventNotificationEventBridgeModel(EventBridgeModel): # type: ignore[override] detail: S3EventNotificationEventBridgeDetailModelUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- EventBridgeModel
- pydantic.main.BaseModel
 Class variables- var detail : S3EventNotificationEventBridgeDetailModel
- var model_config
 
- class S3EventNotificationObjectModel (**data: Any)
- 
Expand source codeclass S3EventNotificationObjectModel(BaseModel): key: str size: Optional[NonNegativeFloat] = None etag: str = Field(default="") version_id: Optional[str] = Field(None, alias="version-id") sequencer: Optional[str] = NoneUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var etag : str
- var key : str
- var model_config
- var sequencer : str | None
- var size : float | None
- var version_id : str | None
 
- class S3EventRecordGlacierEventData (**data: Any)
- 
Expand source codeclass S3EventRecordGlacierEventData(BaseModel): restoreEventData: S3EventRecordGlacierRestoreEventDataUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var model_config
- var restoreEventData : S3EventRecordGlacierRestoreEventData
 
- class S3EventRecordGlacierRestoreEventData (**data: Any)
- 
Expand source codeclass S3EventRecordGlacierRestoreEventData(BaseModel): lifecycleRestorationExpiryTime: datetime lifecycleRestoreStorageClass: strUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var lifecycleRestorationExpiryTime : datetime.datetime
- var lifecycleRestoreStorageClass : str
- var model_config
 
- class S3Identity (**data: Any)
- 
Expand source codeclass S3Identity(BaseModel): principalId: strUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var model_config
- var principalId : str
 
- class S3Message (**data: Any)
- 
Expand source codeclass S3Message(BaseModel): s3SchemaVersion: str configurationId: str bucket: S3Bucket object: S3Object # noqa: A003,VNE003Usage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var bucket : S3Bucket
- var configurationId : str
- var model_config
- var object : S3Object
- var s3SchemaVersion : str
 
- class S3Model (**data: Any)
- 
Expand source codeclass S3Model(BaseModel): Records: List[S3RecordModel]Usage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var Records : List[S3RecordModel]
- var model_config
 
- class S3Object (**data: Any)
- 
Expand source codeclass S3Object(BaseModel): key: str size: Optional[NonNegativeFloat] = None eTag: Optional[str] = None sequencer: str versionId: Optional[str] = NoneUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var eTag : str | None
- var key : str
- var model_config
- var sequencer : str
- var size : float | None
- var versionId : str | None
 
- class S3OwnerIdentify (**data: Any)
- 
Expand source codeclass S3OwnerIdentify(BaseModel): principalId: strUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var model_config
- var principalId : str
 
- class S3RecordModel (**data: Any)
- 
Expand source codeclass S3RecordModel(BaseModel): eventVersion: str eventSource: Literal["aws:s3"] awsRegion: str eventTime: datetime eventName: str userIdentity: S3Identity requestParameters: S3RequestParameters responseElements: S3ResponseElements s3: S3Message glacierEventData: Optional[S3EventRecordGlacierEventData] = None @model_validator(mode="before") def validate_s3_object(cls, values): event_name = values.get("eventName") s3_object = values.get("s3").get("object") if ":Delete" not in event_name and (s3_object.get("size") is None or s3_object.get("eTag") is None): raise ValueError( "Size and eTag fields are required for all events except ObjectRemoved:* and LifecycleExpiration:*.", ) return valuesUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var awsRegion : str
- var eventName : str
- var eventSource : Literal['aws:s3']
- var eventTime : datetime.datetime
- var eventVersion : str
- var glacierEventData : S3EventRecordGlacierEventData | None
- var model_config
- var requestParameters : S3RequestParameters
- var responseElements : S3ResponseElements
- var s3 : S3Message
- var userIdentity : S3Identity
 Static methods- def validate_s3_object(values)
 
- class S3RequestParameters (**data: Any)
- 
Expand source codeclass S3RequestParameters(BaseModel): sourceIPAddress: IPvAnyNetworkUsage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var model_config
- var sourceIPAddress : pydantic.networks.IPvAnyNetwork
 
- class S3ResponseElements (**data: Any)
- 
Expand source codeclass S3ResponseElements(BaseModel): x_amz_request_id: str = Field(..., alias="x-amz-request-id") x_amz_id_2: str = Field(..., alias="x-amz-id-2")Usage docs: https://docs.pydantic.dev/2.10/concepts/models/ A base class for creating Pydantic models. Attributes- __class_vars__
- The names of the class variables defined on the model.
- __private_attributes__
- Metadata about the private attributes of the model.
- __signature__
- The synthesized __init__[Signature][inspect.Signature] of the model.
- __pydantic_complete__
- Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__
- The core schema of the model.
- __pydantic_custom_init__
- Whether the model has a custom __init__function.
- __pydantic_decorators__
- Metadata containing the decorators defined on the model.
This replaces Model.__validators__andModel.__root_validators__from Pydantic V1.
- __pydantic_generic_metadata__
- Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__
- Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__
- The name of the post-init method for the model, if defined.
- __pydantic_root_model__
- Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__
- The pydantic-coreSchemaSerializerused to dump instances of the model.
- __pydantic_validator__
- The pydantic-coreSchemaValidatorused to validate instances of the model.
- __pydantic_fields__
- A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__
- A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__
- A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to'allow'.
- __pydantic_fields_set__
- The names of fields explicitly set during instantiation.
- __pydantic_private__
- Values of private attributes set on the model instance.
 Create a new model by parsing and validating input data from keyword arguments. Raises [ ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Ancestors- pydantic.main.BaseModel
 Class variables- var model_config
- var x_amz_id_2 : str
- var x_amz_request_id : str