AssetContent

sealed class AssetContent

Content for an asset: a single file, a zip bundle, or a source URL to import from

Inheritors

Types

Link copied to clipboard
data class File(val value: AssetFileContent) : AssetContent

A single file with path and content

Link copied to clipboard
Link copied to clipboard

A source URL to import asset content from

Link copied to clipboard
data class Zip(val value: AssetZipContent) : AssetContent

A zip file containing multiple files

Functions

Link copied to clipboard

Casts this AssetContent as a File and retrieves its aws.sdk.kotlin.services.devopsagent.model.AssetFileContent value. Throws an exception if the AssetContent is not a File.

Link copied to clipboard

Casts this AssetContent as a File and retrieves its aws.sdk.kotlin.services.devopsagent.model.AssetFileContent value. Returns null if the AssetContent is not a File.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Casts this AssetContent as a Zip and retrieves its aws.sdk.kotlin.services.devopsagent.model.AssetZipContent value. Throws an exception if the AssetContent is not a Zip.

Link copied to clipboard

Casts this AssetContent as a Zip and retrieves its aws.sdk.kotlin.services.devopsagent.model.AssetZipContent value. Returns null if the AssetContent is not a Zip.