{
  "typeName" : "AWS::IoT::Authorizer",
  "description" : "Creates an authorizer.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string"
        },
        "Value" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false,
      "required" : [ "Key", "Value" ]
    }
  },
  "properties" : {
    "AuthorizerFunctionArn" : {
      "type" : "string"
    },
    "Arn" : {
      "type" : "string"
    },
    "AuthorizerName" : {
      "type" : "string",
      "pattern" : "[\\w=,@-]+",
      "minLength" : 1,
      "maxLength" : 128
    },
    "SigningDisabled" : {
      "type" : "boolean"
    },
    "Status" : {
      "type" : "string",
      "enum" : [ "ACTIVE", "INACTIVE" ]
    },
    "TokenKeyName" : {
      "type" : "string"
    },
    "TokenSigningPublicKeys" : {
      "type" : "object",
      "additionalProperties" : false,
      "patternProperties" : {
        "[a-zA-Z0-9:_-]+" : {
          "type" : "string",
          "maxLength" : 5120
        }
      }
    },
    "EnableCachingForHttp" : {
      "type" : "boolean"
    },
    "Tags" : {
      "type" : "array",
      "uniqueItems" : true,
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : false,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "iot:ListTagsForResource", "iot:TagResource", "iot:UntagResource" ]
  },
  "additionalProperties" : false,
  "required" : [ "AuthorizerFunctionArn" ],
  "createOnlyProperties" : [ "/properties/SigningDisabled", "/properties/AuthorizerName" ],
  "readOnlyProperties" : [ "/properties/Arn" ],
  "primaryIdentifier" : [ "/properties/AuthorizerName" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "iot:CreateAuthorizer", "iot:DescribeAuthorizer", "iot:TagResource", "iot:ListTagsForResource", "kms:Decrypt" ]
    },
    "read" : {
      "permissions" : [ "iot:DescribeAuthorizer", "iot:ListTagsForResource", "kms:Decrypt" ]
    },
    "update" : {
      "permissions" : [ "iot:UpdateAuthorizer", "iot:DescribeAuthorizer", "iot:TagResource", "iot:UntagResource", "iot:ListTagsForResource", "kms:Decrypt" ]
    },
    "delete" : {
      "permissions" : [ "iot:UpdateAuthorizer", "iot:DeleteAuthorizer", "iot:DescribeAuthorizer", "kms:Decrypt" ]
    },
    "list" : {
      "permissions" : [ "iot:ListAuthorizers" ]
    }
  }
}