CloudArtifact
Represents an artifact within a cloud assembly.
Initializers
import com.aliyun.ros.cdk.cxapi.CloudArtifact;
CloudArtifact.Builder.create(CloudAssembly assembly, java.lang.String id)
.type(ArtifactType)
// .dependencies(java.util.List<java.lang.String>)
// .metadata(java.util.Map<java.lang.String, java.util.List<MetadataEntry>>)
// .properties(AliyunRosStackProperties)
// .properties(TreeArtifactProperties)
// .properties(NestedCloudAssemblyProperties)
.build();
| Name | Type | Description |
|---|---|---|
assembly | CloudAssembly | No description. |
id | java.lang.String | No description. |
type | com.aliyun.ros.cdk.assembly.schema.ArtifactType | The type of artifact. |
dependencies | java.util.List | IDs of artifacts that must be deployed before this artifact. |
metadata | java.util.Map | Associated metadata. |
properties | com.aliyun.ros.cdk.assembly.schema.AliyunRosStackProperties OR com.aliyun.ros.cdk.assembly.schema.TreeArtifactProperties OR com.aliyun.ros.cdk.assembly.schema.NestedCloudAssemblyProperties | The set of properties for this artifact (depends on type). |
assemblyRequired
- Type: CloudAssembly
idRequired
- Type: java.lang.String
typeRequired
- Type: com.aliyun.ros.cdk.assembly.schema.ArtifactType
The type of artifact.
dependenciesOptional
- Type: java.util.List
- Default: no dependencies.
IDs of artifacts that must be deployed before this artifact.
metadataOptional
- Type: java.util.Map
> - Default: no metadata.
Associated metadata.
propertiesOptional
- Type: com.aliyun.ros.cdk.assembly.schema.AliyunRosStackProperties OR com.aliyun.ros.cdk.assembly.schema.TreeArtifactProperties OR com.aliyun.ros.cdk.assembly.schema.NestedCloudAssemblyProperties
- Default: no properties.
The set of properties for this artifact (depends on type).
Methods
| Name | Description |
|---|---|
findMetadataByType | No description. |
findMetadataByType
public java.util.List<MetadataEntryResult> findMetadataByType(java.lang.String type)
- Type: java.lang.String
Static Functions
| Name | Description |
|---|---|
fromManifest | Returns a subclass of CloudArtifact based on the artifact type defined in the artifact manifest. |
fromManifest
import com.aliyun.ros.cdk.cxapi.CloudArtifact;
CloudArtifact.fromManifest(CloudAssembly assembly, java.lang.String id, ArtifactManifest artifact)
Returns a subclass of CloudArtifact based on the artifact type defined in the artifact manifest.
- Type: CloudAssembly
The cloud assembly from which to load the artifact.
- Type: java.lang.String
The artifact ID.
- Type: com.aliyun.ros.cdk.assembly.schema.ArtifactManifest
The artifact manifest.
Properties
| Name | Type | Description |
|---|---|---|
assembly | CloudAssembly | No description. |
id | java.lang.String | No description. |
manifest | com.aliyun.ros.cdk.assembly.schema.ArtifactManifest | The artifact's manifest. |
messages | java.util.List<SynthesisMessage> | The set of messages extracted from the artifact's metadata. |
dependencies | java.util.List<CloudArtifact> | Returns all the artifacts that this artifact depends on. |
assemblyRequired
public CloudAssembly getAssembly();
- Type: CloudAssembly
idRequired
public java.lang.String getId();
- Type: java.lang.String
manifestRequired
public ArtifactManifest getManifest();
- Type: com.aliyun.ros.cdk.assembly.schema.ArtifactManifest
The artifact's manifest.
messagesRequired
public java.util.List<SynthesisMessage> getMessages();
- Type: java.util.List<SynthesisMessage>
The set of messages extracted from the artifact's metadata.
dependenciesOptional
public java.util.List<CloudArtifact> getDependencies();
- Type: java.util.List<CloudArtifact>
Returns all the artifacts that this artifact depends on.