{
  "typeName" : "AWS::FraudDetector::EntityType",
  "description" : "An entity type for fraud detector.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "minLength" : 0,
          "maxLength" : 256
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    }
  },
  "properties" : {
    "Name" : {
      "description" : "The name of the entity type.",
      "type" : "string",
      "pattern" : "^[0-9a-z_-]+$",
      "minLength" : 1,
      "maxLength" : 64
    },
    "Tags" : {
      "description" : "Tags associated with this entity type.",
      "type" : "array",
      "uniqueItems" : false,
      "insertionOrder" : false,
      "maxItems" : 200,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "Description" : {
      "description" : "The entity type description.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 128
    },
    "Arn" : {
      "description" : "The entity type ARN.",
      "type" : "string"
    },
    "CreatedTime" : {
      "description" : "The timestamp when the entity type was created.",
      "type" : "string"
    },
    "LastUpdatedTime" : {
      "description" : "The timestamp when the entity type was last updated.",
      "type" : "string"
    }
  },
  "createOnlyProperties" : [ "/properties/Name" ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/CreatedTime", "/properties/LastUpdatedTime" ],
  "additionalProperties" : false,
  "required" : [ "Name" ],
  "primaryIdentifier" : [ "/properties/Arn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "frauddetector:GetEntityTypes", "frauddetector:PutEntityType", "frauddetector:ListTagsForResource" ]
    },
    "read" : {
      "permissions" : [ "frauddetector:GetEntityTypes", "frauddetector:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "frauddetector:GetEntityTypes", "frauddetector:PutEntityType", "frauddetector:ListTagsForResource", "frauddetector:TagResource", "frauddetector:UntagResource" ]
    },
    "delete" : {
      "permissions" : [ "frauddetector:GetEntityTypes", "frauddetector:DeleteEntityType" ]
    },
    "list" : {
      "permissions" : [ "frauddetector:GetEntityTypes", "frauddetector:ListTagsForResource" ]
    }
  }
}