---
title: "POST /sbomexport/create"
method: POST
path: "/sbomexport/create"
---

# POST /sbomexport/create

`POST /sbomexport/create`

Creates a software bill of materials (SBOM) report.

## Request body

- object
  - `resourceFilterCriteria` object — The resource filter criteria for a Software bill of materials (SBOM) report.
    - `accountId` ResourceStringFilter[] — The account IDs used as resource filter criteria.
      - `comparison` 'EQUALS' | 'NOT_EQUALS', required — The filter's comparison.
      - `value` string, required — The filter's value.
    - `resourceId` ResourceStringFilter[] — The resource IDs used as resource filter criteria.
      - `comparison` 'EQUALS' | 'NOT_EQUALS', required — The filter's comparison.
      - `value` string, required — The filter's value.
    - `resourceType` ResourceStringFilter[] — The resource types used as resource filter criteria.
      - `comparison` 'EQUALS' | 'NOT_EQUALS', required — The filter's comparison.
      - `value` string, required — The filter's value.
    - `ecrRepositoryName` ResourceStringFilter[] — The ECR repository names used as resource filter criteria.
      - `comparison` 'EQUALS' | 'NOT_EQUALS', required — The filter's comparison.
      - `value` string, required — The filter's value.
    - `lambdaFunctionName` ResourceStringFilter[] — The Amazon Web Services Lambda function name used as resource filter criteria.
      - `comparison` 'EQUALS' | 'NOT_EQUALS', required — The filter's comparison.
      - `value` string, required — The filter's value.
    - `ecrImageTags` ResourceStringFilter[] — The ECR image tags used as resource filter criteria.
      - `comparison` 'EQUALS' | 'NOT_EQUALS', required — The filter's comparison.
      - `value` string, required — The filter's value.
    - `ec2InstanceTags` ResourceMapFilter[] — The EC2 instance tags used as resource filter criteria.
      - `comparison` 'EQUALS', required — The filter's comparison.
      - `key` string, required — The filter's key.
      - `value` string — The filter's value.
    - `lambdaFunctionTags` ResourceMapFilter[] — The Amazon Web Services Lambda function tags used as resource filter criteria.
      - `comparison` 'EQUALS', required — The filter's comparison.
      - `key` string, required — The filter's key.
      - `value` string — The filter's value.
  - `reportFormat` 'CYCLONEDX_1_4' | 'SPDX_2_3', required — The output format for the software bill of materials (SBOM) report.
  - `s3Destination` object, required — Contains details of the Amazon S3 bucket and KMS key used to export findings.
    - `bucketName` string — The name of the Amazon S3 bucket to export findings to.
    - `keyPrefix` string — The prefix that the findings will be written under.
    - `kmsKeyArn` string — The ARN of the KMS key used to encrypt data when exporting findings.

## Response `200`

Success

- CreateSbomExportResponse
  - `reportId` string — The report ID for the software bill of materials (SBOM) report.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ThrottlingException
- `483` — ResourceNotFoundException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/inspector2.md) · [All operations](https://skmtc.net/aws/apis/inspector2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/inspector2/versions/c51110c7cd43/schema)
