IoT / Client / associate_sbom_with_package_version

associate_sbom_with_package_version#

IoT.Client.associate_sbom_with_package_version(**kwargs)#

Associates the selected software bill of materials (SBOM) with a specific software package version.

Requires permission to access the AssociateSbomWithPackageVersion action.

See also: AWS API Documentation

Request Syntax

response = client.associate_sbom_with_package_version(
    packageName='string',
    versionName='string',
    sbom={
        's3Location': {
            'bucket': 'string',
            'key': 'string',
            'version': 'string'
        }
    },
    clientToken='string'
)
Parameters:
  • packageName (string) –

    [REQUIRED]

    The name of the new software package.

  • versionName (string) –

    [REQUIRED]

    The name of the new package version.

  • sbom (dict) –

    [REQUIRED]

    A specific software bill of matrerials associated with a software package version.

    • s3Location (dict) –

      The S3 location.

      • bucket (string) –

        The S3 bucket.

      • key (string) –

        The S3 key.

      • version (string) –

        The S3 bucket version.

  • clientToken (string) –

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don’t reuse this client token if a new idempotent request is required.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'packageName': 'string',
    'versionName': 'string',
    'sbom': {
        's3Location': {
            'bucket': 'string',
            'key': 'string',
            'version': 'string'
        }
    },
    'sbomValidationStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'
}

Response Structure

  • (dict) –

    • packageName (string) –

      The name of the new software package.

    • versionName (string) –

      The name of the new package version.

    • sbom (dict) –

      A specific software bill of matrerials associated with a software package version.

      • s3Location (dict) –

        The S3 location.

        • bucket (string) –

          The S3 bucket.

        • key (string) –

          The S3 key.

        • version (string) –

          The S3 bucket version.

    • sbomValidationStatus (string) –

      The status of the initial validation for the software bill of materials against the Software Package Data Exchange (SPDX) and CycloneDX industry standard formats.

Exceptions