{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudformation/json-schema/amazon-cloudformation-describe-resource-scan-output-schema.json",
  "title": "DescribeResourceScanOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudformation-resource-scan-api-openapi.yml#/components/schemas/DescribeResourceScanOutput",
  "type": "object",
  "properties": {
    "ResourceScanId": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the resource scan. The format is arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. An example is arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 ."
    },
    "Status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "FAILED",
        "COMPLETE",
        "EXPIRED"
      ],
      "description": "Status of the resource scan. IN_PROGRESS The resource scan is still in progress. COMPLETE The resource scan is complete. EXPIRED The resource scan has expired. FAILED The resource scan has failed."
    },
    "StatusReason": {
      "type": "string",
      "description": "The reason for the resource scan status, providing more information if a failure happened."
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time that the resource scan was started."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time that the resource scan was finished."
    },
    "PercentageCompleted": {
      "type": "number",
      "description": "The percentage of the resource scan that has been completed."
    },
    "ResourceTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of resource types for the specified scan. Resource types are only available for scans with a Status set to COMPLETE or FAILED ."
    },
    "ResourcesScanned": {
      "type": "integer",
      "description": "The number of resources that were listed. This is only available for scans with a Status set to COMPLETE, EXPIRED, or FAILED ."
    },
    "ResourcesRead": {
      "type": "integer",
      "description": "The number of resources that were read. This is only available for scans with a Status set to COMPLETE, EXPIRED, or FAILED. This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException."
    },
    "ScanFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScanFilter"
      },
      "description": "The scan filters that were used."
    }
  },
  "$defs": {
    "ScanFilter": {
      "type": "object",
      "properties": {
        "Types": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of strings where each string represents an Amazon Web Services resource type you want to scan. Each string defines the resource type using the format AWS::ServiceName::ResourceType, for example, AWS::DynamoDB::Table. For the full list of supported resource types, see the Resource type support table in the CloudFormation User Guide. To scan all resource types within a service, you can use a wildcard, represented by an asterisk (*). You can place an asterisk at only the end of the string, for example, AWS::S3::*."
        }
      }
    }
  }
}