class_docstr: DatasourceConfigS3DelegatedAccess
class_docstr_tok: ["DatasourceConfigS3DelegatedAccess"]
docstr: Validates the regular expression
docstr_tok: ["Validates","the","regular","expression"]
code: def s3_arn_validate_regular_expression(cls, value):
      """Validates the regular expression"""
      if not re.match(r"^arn:aws:iam::[0-9]{12}:role.+$", value):
          raise ValueError(
              r"must validate the regular expression /^arn:aws:iam::[0-9]{12}:role.+$/"
          )
      return value
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_config_s3_delegated_access.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, StrictStr, constr, validator
  from lightly.openapi_generated.swagger_client.models.datasource_config_base import DatasourceConfigBase
  from lightly.openapi_generated.swagger_client.models.s3_region import S3Region
label_desc: Use image node_id 2 for calling the DatasourceConfigS3DelegatedAccess obj's underlying member method code with example usage: obj.s3_arn_validate_regular_expression(cls, value) and returns: value