{
  "typeName" : "AWS::Macie::CustomDataIdentifier",
  "description" : "Macie CustomDataIdentifier resource schema",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-macie.git",
  "properties" : {
    "Name" : {
      "description" : "Name of custom data identifier.",
      "type" : "string"
    },
    "Description" : {
      "description" : "Description of custom data identifier.",
      "type" : "string"
    },
    "Regex" : {
      "description" : "Regular expression for custom data identifier.",
      "type" : "string"
    },
    "MaximumMatchDistance" : {
      "description" : "Maximum match distance.",
      "type" : "integer"
    },
    "Keywords" : {
      "description" : "Keywords to be matched against.",
      "type" : "array",
      "items" : {
        "type" : "string"
      }
    },
    "IgnoreWords" : {
      "description" : "Words to be ignored.",
      "type" : "array",
      "items" : {
        "type" : "string"
      }
    },
    "Id" : {
      "description" : "Custom data identifier ID.",
      "type" : "string"
    },
    "Arn" : {
      "description" : "Custom data identifier ARN.",
      "type" : "string"
    }
  },
  "required" : [ "Name", "Regex" ],
  "additionalProperties" : false,
  "createOnlyProperties" : [ "/properties/Name", "/properties/Description", "/properties/Regex", "/properties/MaximumMatchDistance", "/properties/Keywords", "/properties/IgnoreWords" ],
  "readOnlyProperties" : [ "/properties/Id", "/properties/Arn" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "additionalIdentifiers" : [ [ "/properties/Arn" ] ],
  "handlers" : {
    "create" : {
      "permissions" : [ "macie2:CreateCustomDataIdentifier", "macie2:GetCustomDataIdentifier" ]
    },
    "read" : {
      "permissions" : [ "macie2:GetCustomDataIdentifier" ]
    },
    "delete" : {
      "permissions" : [ "macie2:DeleteCustomDataIdentifier" ]
    },
    "list" : {
      "permissions" : [ "macie2:ListCustomDataIdentifiers" ]
    },
    "update" : {
      "permissions" : [ ]
    }
  }
}