Skip to content

FileAssetMetadataEntry

Metadata Entry spec for files.

Example

const entry = {
  packaging: 'file',
  ossBucketParameter: 'bucket-parameter',
  ossKeyParameter: 'key-parameter',
  artifactHashParameter: 'hash-parameter',
}

Initializer

import { FileAssetMetadataEntry } from '@alicloud/ros-cdk-assembly-schema'
const fileAssetMetadataEntry: FileAssetMetadataEntry = { ... }

Properties

Name Type Description
artifactHashParameter string The name of the parameter where the hash of the bundled asset should be passed in.
id string Logical identifier for the asset.
ossBucketParameter string Name of parameter where OSS bucket should be passed in.
ossKeyParameter string Name of parameter where OSS object key should be passed in.
packaging string Requested packaging style.
path string Path on disk to the asset.
sourceHash string The hash of the asset source.

artifactHashParameterRequired

public readonly artifactHashParameter: string;
  • Type: string

The name of the parameter where the hash of the bundled asset should be passed in.


idRequired

public readonly id: string;
  • Type: string

Logical identifier for the asset.


ossBucketParameterRequired

public readonly ossBucketParameter: string;
  • Type: string

Name of parameter where OSS bucket should be passed in.


ossKeyParameterRequired

public readonly ossKeyParameter: string;
  • Type: string

Name of parameter where OSS object key should be passed in.


packagingRequired

public readonly packaging: string;
  • Type: string

Requested packaging style.


pathRequired

public readonly path: string;
  • Type: string

Path on disk to the asset.


sourceHashRequired

public readonly sourceHash: string;
  • Type: string

The hash of the asset source.