Skip to content

CloudArtifact

Represents an artifact within a cloud assembly.

Initializers

import { CloudArtifact } from '@alicloud/ros-cdk-cxapi'
new CloudArtifact(assembly: CloudAssembly, id: string, manifest: ArtifactManifest)
Name Type Description
assembly CloudAssembly No description.
id string No description.
manifest @alicloud/ros-cdk-assembly-schema.ArtifactManifest No description.

assemblyRequired


idRequired

  • Type: string

manifestRequired

  • Type: @alicloud/ros-cdk-assembly-schema.ArtifactManifest

Methods

Name Description
findMetadataByType No description.

findMetadataByType

public findMetadataByType(type: string): MetadataEntryResult[]

typeRequired

  • Type: string

Static Functions

Name Description
fromManifest Returns a subclass of CloudArtifact based on the artifact type defined in the artifact manifest.

fromManifest

import { CloudArtifact } from '@alicloud/ros-cdk-cxapi'
CloudArtifact.fromManifest(assembly: CloudAssembly, id: string, artifact: ArtifactManifest)

Returns a subclass of CloudArtifact based on the artifact type defined in the artifact manifest.

assemblyRequired

The cloud assembly from which to load the artifact.


idRequired

  • Type: string

The artifact ID.


artifactRequired

  • Type: @alicloud/ros-cdk-assembly-schema.ArtifactManifest

The artifact manifest.


Properties

Name Type Description
assembly CloudAssembly No description.
id string No description.
manifest @alicloud/ros-cdk-assembly-schema.ArtifactManifest The artifact's manifest.
messages SynthesisMessage[] The set of messages extracted from the artifact's metadata.
dependencies CloudArtifact[] Returns all the artifacts that this artifact depends on.

assemblyRequired

public readonly assembly: CloudAssembly;

idRequired

public readonly id: string;
  • Type: string

manifestRequired

public readonly manifest: ArtifactManifest;
  • Type: @alicloud/ros-cdk-assembly-schema.ArtifactManifest

The artifact's manifest.


messagesRequired

public readonly messages: SynthesisMessage[];

The set of messages extracted from the artifact's metadata.


dependenciesOptional

public readonly dependencies: CloudArtifact[];

Returns all the artifacts that this artifact depends on.