{
  "typeName" : "AWS::Inspector::AssessmentTemplate",
  "description" : "Resource Type definition for AWS::Inspector::AssessmentTemplate",
  "additionalProperties" : false,
  "properties" : {
    "Arn" : {
      "type" : "string"
    },
    "AssessmentTargetArn" : {
      "type" : "string"
    },
    "DurationInSeconds" : {
      "type" : "integer"
    },
    "AssessmentTemplateName" : {
      "type" : "string"
    },
    "RulesPackageArns" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "type" : "string"
      }
    },
    "UserAttributesForFindings" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "type" : "string"
        },
        "Value" : {
          "type" : "string"
        }
      },
      "required" : [ "Value", "Key" ]
    }
  },
  "required" : [ "AssessmentTargetArn", "DurationInSeconds", "RulesPackageArns" ],
  "readOnlyProperties" : [ "/properties/Arn" ],
  "createOnlyProperties" : [ "/properties/DurationInSeconds", "/properties/AssessmentTemplateName", "/properties/UserAttributesForFindings", "/properties/AssessmentTargetArn", "/properties/RulesPackageArns" ],
  "primaryIdentifier" : [ "/properties/Arn" ],
  "taggable" : false,
  "handlers" : {
    "create" : {
      "permissions" : [ "inspector:CreateAssessmentTemplate", "inspector:ListAssessmentTemplates", "inspector:DescribeAssessmentTemplates" ]
    },
    "read" : {
      "permissions" : [ "inspector:DescribeAssessmentTemplates" ]
    },
    "delete" : {
      "permissions" : [ "inspector:DeleteAssessmentTemplate" ]
    },
    "list" : {
      "permissions" : [ "inspector:ListAssessmentTemplates" ]
    }
  }
}