Skip to main content

sbom_exports

Creates, updates, deletes, gets or lists a sbom_exports resource.

Overview

Namesbom_exports
TypeResource
Idaws.inspector2.sbom_exports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
error_codestringAn error code. (INTERNAL_ERROR, INVALID_PERMISSIONS, NO_FINDINGS_FOUND, BUCKET_NOT_FOUND, INCOMPATIBLE_BUCKET_REGION, MALFORMED_KMS_KEY)
error_messagestringAn error message.
filter_criteriaobjectThe resource filter criteria for a Software bill of materials (SBOM) report.
format_stringThe format of the software bill of materials (SBOM) report. (CYCLONEDX_1_4, SPDX_2_3)
report_idstringThe report ID of the software bill of materials (SBOM) report. (pattern: <code>.\b[a-f0-9]{8}\b-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-\b[a-f0-9]{12}\b.</code>)
s_3_destinationobjectContains details of the Amazon S3 bucket and KMS key used to export findings.
statusstringThe status of the software bill of materials (SBOM) report. (SUCCEEDED, IN_PROGRESS, CANCELLED, FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sbom_exportselectregionGets details of a software bill of materials (SBOM) report.
create_sbom_exportinsertregion, reportFormat, s3DestinationCreates a software bill of materials (SBOM) report.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets details of a software bill of materials (SBOM) report.

SELECT
error_code,
error_message,
filter_criteria,
format_,
report_id,
s_3_destination,
status
FROM aws.inspector2.sbom_exports
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a software bill of materials (SBOM) report.

INSERT INTO aws.inspector2.sbom_exports (
resourceFilterCriteria,
reportFormat,
s3Destination,
region
)
SELECT
'{{ resourceFilterCriteria }}',
'{{ reportFormat }}' /* required */,
'{{ s3Destination }}' /* required */,
'{{ region }}'
RETURNING
report_id
;