class_docstr: DatasourceConfigS3AllOf
class_docstr_tok: ["DatasourceConfigS3AllOf"]
docstr: Validates the regular expression
docstr_tok: ["Validates","the","regular","expression"]
code: def s3_server_side_encryption_kms_key_validate_regular_expression(
      cls, value
  ):
      """Validates the regular expression"""
      if value is None:
          return value
  
      if not re.match(
          r"^arn:aws:kms:[a-zA-Z0-9-]*:[0-9]{12}:key.+$", value
      ):
          raise ValueError(
              r"must validate the regular expression /^arn:aws:kms:[a-zA-Z0-9-]*:[0-9]{12}:key.+$/"
          )
      return value
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_config_s3_all_of.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, constr, validator
  from lightly.openapi_generated.swagger_client.models.s3_region import S3Region
label_desc: Use image node_id 1 for calling the DatasourceConfigS3AllOf obj's underlying member method code with example usage: obj.s3_server_side_encryption_kms_key_validate_regular_expression(cls, value) and returns: value, value