{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-create-sbom-export-request-schema.json",
  "title": "CreateSbomExportRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-sbomexport-api-openapi.yml#/components/schemas/CreateSbomExportRequest",
  "type": "object",
  "properties": {
    "resourceFilterCriteria": {
      "$ref": "#/$defs/ResourceFilterCriteria"
    },
    "reportFormat": {
      "type": "string",
      "description": "The output format for the software bill of materials (SBOM) report."
    },
    "s3Destination": {
      "$ref": "#/$defs/Destination"
    }
  },
  "required": [
    "reportFormat",
    "s3Destination"
  ],
  "$defs": {
    "Destination": {
      "type": "object",
      "properties": {
        "bucketName": {
          "type": "string",
          "description": "The name of the Amazon S3 bucket to export findings to."
        },
        "keyPrefix": {
          "type": "string",
          "description": "The prefix that the findings will be written under."
        },
        "kmsKeyArn": {
          "type": "string",
          "description": "The ARN of the KMS key used to encrypt data when exporting findings."
        },
        "expectedBucketOwner": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the expected owner of the Amazon S3 bucket. If the actual bucket owner does not match, the export request fails."
        }
      },
      "required": [
        "bucketName",
        "kmsKeyArn"
      ]
    },
    "ResourceFilterCriteria": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The account IDs used as resource filter criteria."
        },
        "resourceId": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The resource IDs used as resource filter criteria."
        },
        "resourceType": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The resource types used as resource filter criteria."
        },
        "ecrRepositoryName": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The ECR repository names used as resource filter criteria."
        },
        "lambdaFunctionName": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The Amazon Web Services Lambda function name used as resource filter criteria."
        },
        "ecrImageTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The ECR image tags used as resource filter criteria."
        },
        "ec2InstanceTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceMapFilter"
          },
          "description": "The EC2 instance tags used as resource filter criteria."
        },
        "lambdaFunctionTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceMapFilter"
          },
          "description": "The Amazon Web Services Lambda function tags used as resource filter criteria."
        },
        "cloudProvider": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud providers used as resource filter criteria."
        },
        "cloudProviderAccountId": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud provider account IDs used as resource filter criteria."
        },
        "cloudProviderOrgId": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud provider organization IDs used as resource filter criteria."
        },
        "cloudProviderRegion": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud provider regions used as resource filter criteria."
        },
        "cloudVmInstanceTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceMapFilter"
          },
          "description": "The cloud VM instance tags used as resource filter criteria."
        },
        "cloudContainerImageTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud container image tags used as resource filter criteria."
        },
        "cloudContainerRepositoryName": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud container repository names used as resource filter criteria."
        },
        "cloudContainerRegistryName": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud container registry names used as resource filter criteria."
        },
        "cloudServerlessFunctionName": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud serverless function names used as resource filter criteria."
        },
        "cloudServerlessFunctionRuntime": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceStringFilter"
          },
          "description": "The cloud serverless function runtimes used as resource filter criteria."
        },
        "cloudServerlessFunctionTags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceMapFilter"
          },
          "description": "The cloud serverless function tags used as resource filter criteria."
        }
      }
    },
    "ResourceMapFilter": {
      "type": "object",
      "properties": {
        "comparison": {
          "type": "string",
          "description": "The filter's comparison."
        },
        "key": {
          "type": "string",
          "description": "The filter's key."
        },
        "value": {
          "type": "string",
          "description": "The filter's value."
        }
      },
      "required": [
        "comparison",
        "key"
      ]
    },
    "ResourceStringFilter": {
      "type": "object",
      "properties": {
        "comparison": {
          "type": "string",
          "description": "The filter's comparison."
        },
        "value": {
          "type": "string",
          "description": "The filter's value."
        }
      },
      "required": [
        "comparison",
        "value"
      ]
    }
  }
}