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. |
artifactHashParameter
Required
public readonly artifactHashParameter: string;
- Type: string
The name of the parameter where the hash of the bundled asset should be passed in.
id
Required
public readonly id: string;
- Type: string
Logical identifier for the asset.
ossBucketParameter
Required
public readonly ossBucketParameter: string;
- Type: string
Name of parameter where OSS bucket should be passed in.
ossKeyParameter
Required
public readonly ossKeyParameter: string;
- Type: string
Name of parameter where OSS object key should be passed in.
packaging
Required
public readonly packaging: string;
- Type: string
Requested packaging style.
path
Required
public readonly path: string;
- Type: string
Path on disk to the asset.
sourceHash
Required
public readonly sourceHash: string;
- Type: string
The hash of the asset source.