{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-auditmanager-assessment.json",
  "title": "AWSAuditManagerAssessmentProperties",
  "description": "An entity that defines the scope of audit evidence collected by AWS Audit Manager.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-auditmanager-assessment.json",
    "sourceSha256": "fb480d225162f9d0a721841cacd27c7b03f48dc674000f92ce34bdde407b5045"
  },
  "type": "object",
  "properties": {
    "FrameworkId": {
      "$ref": "#/$defs/FrameworkId"
    },
    "AwsAccount": {
      "$ref": "#/$defs/AWSAccount"
    },
    "Tags": {
      "description": "The tags associated with the assessment.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "Delegations": {
      "description": "The list of delegations.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Delegation"
      }
    },
    "Roles": {
      "description": "The list of roles for the specified assessment.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Role"
      }
    },
    "Scope": {
      "$ref": "#/$defs/Scope"
    },
    "AssessmentReportsDestination": {
      "$ref": "#/$defs/AssessmentReportsDestination"
    },
    "Status": {
      "$ref": "#/$defs/AssessmentStatus"
    },
    "Name": {
      "$ref": "#/$defs/AssessmentName"
    },
    "Description": {
      "$ref": "#/$defs/AssessmentDescription"
    }
  },
  "typeName": "AWS::AuditManager::Assessment",
  "primaryIdentifier": [
    "/properties/AssessmentId"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "writeOnlyProperties": [
    "/properties/Name",
    "/properties/Description"
  ],
  "required": [],
  "$defs": {
    "FrameworkId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 36,
          "minLength": 32,
          "pattern": "^([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|.*\\S.*)$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier for the specified framework.",
      "title": "AWSAuditManagerAssessmentFrameworkIdDefinition"
    },
    "UUID": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 36,
          "minLength": 36,
          "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSAuditManagerAssessmentUUIDDefinition"
    },
    "AccountId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 12,
          "minLength": 12,
          "pattern": "^[0-9]{12}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier for the specified AWS account.",
      "title": "AWSAuditManagerAssessmentAccountIdDefinition"
    },
    "EmailAddress": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 320,
          "minLength": 1,
          "pattern": "^.*@.*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The unique identifier for the email account.",
      "title": "AWSAuditManagerAssessmentEmailAddressDefinition"
    },
    "AccountName": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 50,
          "minLength": 1,
          "pattern": "^[\\u0020-\\u007E]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the specified AWS account.",
      "title": "AWSAuditManagerAssessmentAccountNameDefinition"
    },
    "AWSAccount": {
      "description": "The AWS account associated with the assessment.",
      "type": "object",
      "title": "AWSAuditManagerAssessmentAWSAccountDefinition",
      "properties": {
        "Id": {
          "$ref": "#/$defs/AccountId"
        },
        "EmailAddress": {
          "$ref": "#/$defs/EmailAddress"
        },
        "Name": {
          "$ref": "#/$defs/AccountName"
        }
      },
      "additionalProperties": false
    },
    "AssessmentArn": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "minLength": 20,
          "pattern": "^arn:.*:auditmanager:.*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) of the assessment.",
      "title": "AWSAuditManagerAssessmentAssessmentArnDefinition"
    },
    "Timestamp": {
      "description": "The sequence of characters that identifies when the event occurred.",
      "type": "number",
      "title": "AWSAuditManagerAssessmentTimestampDefinition"
    },
    "ControlSetId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 300,
          "minLength": 1,
          "pattern": "^[\\w\\W\\s\\S]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier for the specified control set.",
      "title": "AWSAuditManagerAssessmentControlSetIdDefinition"
    },
    "CreatedBy": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "minLength": 20,
          "pattern": "^arn:.*:*:.*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The IAM user or role that performed the action.",
      "title": "AWSAuditManagerAssessmentCreatedByDefinition"
    },
    "IamArn": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "minLength": 20,
          "pattern": "^arn:.*:iam:.*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) of the IAM user or role.",
      "title": "AWSAuditManagerAssessmentIamArnDefinition"
    },
    "AssessmentName": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 127,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9-_\\.]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the related assessment.",
      "title": "AWSAuditManagerAssessmentAssessmentNameDefinition"
    },
    "DelegationComment": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 350,
          "pattern": "^[\\w\\W\\s\\S]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The comment related to the delegation.",
      "title": "AWSAuditManagerAssessmentDelegationCommentDefinition"
    },
    "RoleType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "PROCESS_OWNER",
            "RESOURCE_OWNER"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": " The IAM role type.",
      "title": "AWSAuditManagerAssessmentRoleTypeDefinition"
    },
    "DelegationStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "IN_PROGRESS",
            "UNDER_REVIEW",
            "COMPLETE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The status of the delegation.",
      "title": "AWSAuditManagerAssessmentDelegationStatusDefinition"
    },
    "Delegation": {
      "description": "The assignment of a control set to a delegate for review.",
      "type": "object",
      "title": "AWSAuditManagerAssessmentDelegationDefinition",
      "properties": {
        "LastUpdated": {
          "$ref": "#/$defs/Timestamp"
        },
        "ControlSetId": {
          "$ref": "#/$defs/ControlSetId"
        },
        "CreationTime": {
          "$ref": "#/$defs/Timestamp"
        },
        "CreatedBy": {
          "$ref": "#/$defs/CreatedBy"
        },
        "RoleArn": {
          "$ref": "#/$defs/IamArn"
        },
        "AssessmentName": {
          "$ref": "#/$defs/AssessmentName"
        },
        "Comment": {
          "$ref": "#/$defs/DelegationComment"
        },
        "Id": {
          "$ref": "#/$defs/UUID"
        },
        "RoleType": {
          "$ref": "#/$defs/RoleType"
        },
        "AssessmentId": {
          "$ref": "#/$defs/UUID"
        },
        "Status": {
          "$ref": "#/$defs/DelegationStatus"
        }
      },
      "additionalProperties": false
    },
    "Role": {
      "description": "The wrapper that contains AWS Audit Manager role information, such as the role type and IAM ARN.",
      "type": "object",
      "title": "AWSAuditManagerAssessmentRoleDefinition",
      "properties": {
        "RoleArn": {
          "$ref": "#/$defs/IamArn"
        },
        "RoleType": {
          "$ref": "#/$defs/RoleType"
        }
      },
      "additionalProperties": false
    },
    "AWSServiceName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the AWS service.",
      "title": "AWSAuditManagerAssessmentAWSServiceNameDefinition"
    },
    "AWSService": {
      "description": "An AWS service such as Amazon S3, AWS CloudTrail, and so on.",
      "type": "object",
      "title": "AWSAuditManagerAssessmentAWSServiceDefinition",
      "properties": {
        "ServiceName": {
          "$ref": "#/$defs/AWSServiceName"
        }
      },
      "additionalProperties": false
    },
    "Scope": {
      "description": "The wrapper that contains the AWS accounts and AWS services in scope for the assessment.",
      "type": "object",
      "title": "AWSAuditManagerAssessmentScopeDefinition",
      "properties": {
        "AwsAccounts": {
          "description": "The AWS accounts included in scope.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AWSAccount"
          }
        },
        "AwsServices": {
          "description": "The AWS services included in scope.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AWSService"
          }
        }
      },
      "additionalProperties": false
    },
    "S3Url": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The URL of the specified Amazon S3 bucket.",
      "title": "AWSAuditManagerAssessmentS3UrlDefinition"
    },
    "AssessmentReportDestinationType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "S3"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The destination type, such as Amazon S3.",
      "title": "AWSAuditManagerAssessmentAssessmentReportDestinationTypeDefinition"
    },
    "AssessmentReportsDestination": {
      "description": "The destination in which evidence reports are stored for the specified assessment.",
      "type": "object",
      "title": "AWSAuditManagerAssessmentAssessmentReportsDestinationDefinition",
      "properties": {
        "Destination": {
          "$ref": "#/$defs/S3Url"
        },
        "DestinationType": {
          "$ref": "#/$defs/AssessmentReportDestinationType"
        }
      },
      "additionalProperties": false
    },
    "AssessmentStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ACTIVE",
            "INACTIVE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The status of the specified assessment. ",
      "title": "AWSAuditManagerAssessmentAssessmentStatusDefinition"
    },
    "AssessmentDescription": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The description of the specified assessment.",
      "title": "AWSAuditManagerAssessmentAssessmentDescriptionDefinition"
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSAuditManagerAssessmentTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "readOnlyProperties": [
    "/properties/AssessmentId",
    "/properties/Arn",
    "/properties/CreationTime"
  ],
  "createOnlyProperties": [
    "/properties/FrameworkId",
    "/properties/AwsAccount"
  ]
}
