{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-macie-allowlist.json",
  "title": "AWSMacieAllowListProperties",
  "description": "Macie AllowList resource schema. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-macie.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-macie-allowlist.json",
    "sourceSha256": "7b7bab4a4507bb67ed55559ffd0f358dbf2c6d5b9d92f276514bf9a698397c7c"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of AllowList."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Description of AllowList."
    },
    "Criteria": {
      "description": "AllowList criteria.",
      "$ref": "#/$defs/Criteria"
    },
    "Tags": {
      "description": "A collection of tags associated with a resource",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Macie::AllowList",
  "additionalIdentifiers": [
    [
      "/properties/Arn"
    ]
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-macie.git",
  "tagging": {
    "taggable": true
  },
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "$defs": {
    "Regex": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSMacieAllowListRegexDefinition"
    },
    "S3WordsList": {
      "type": "object",
      "properties": {
        "BucketName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ObjectKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "BucketName",
        "ObjectKey"
      ],
      "title": "AWSMacieAllowListS3WordsListDefinition",
      "additionalProperties": false
    },
    "Criteria": {
      "description": "The regex or s3 object to use for the AllowList.",
      "type": "object",
      "oneOf": [
        {
          "required": [
            "Regex"
          ],
          "properties": {
            "Regex": {
              "type": "string",
              "description": "The S3 object key for the AllowList."
            }
          },
          "additionalProperties": false,
          "type": "object"
        },
        {
          "required": [
            "S3WordsList"
          ],
          "properties": {
            "S3WordsList": {
              "$ref": "#/$defs/S3WordsList",
              "description": "The S3 location for the AllowList."
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      ],
      "title": "AWSMacieAllowListCriteriaDefinition"
    },
    "Status": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "OK",
            "S3_OBJECT_NOT_FOUND",
            "S3_USER_ACCESS_DENIED",
            "S3_OBJECT_ACCESS_DENIED",
            "S3_THROTTLED",
            "S3_OBJECT_OVERSIZE",
            "S3_OBJECT_EMPTY",
            "UNKNOWN_ERROR"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The status for the AllowList",
      "title": "AWSMacieAllowListStatusDefinition"
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The tag's key."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The tag's value."
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "title": "AWSMacieAllowListTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "Criteria"
  ],
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/Arn",
    "/properties/Status"
  ]
}
