ResourceId

sealed class ResourceId

The identifier for a resource object that contains resources to scan. Specifying a codeArtifactId is required to create a scan.

Inheritors

Types

Link copied to clipboard
data class CodeArtifactId(val value: String) : ResourceId

The identifier for the code file uploaded to the resource object. Returned by CreateUploadUrl when you upload resources to be scanned.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this ResourceId as a CodeArtifactId and retrieves its kotlin.String value. Throws an exception if the ResourceId is not a CodeArtifactId.

Link copied to clipboard

Casts this ResourceId as a CodeArtifactId and retrieves its kotlin.String value. Returns null if the ResourceId is not a CodeArtifactId.