Skip to content

CloudAssembly

Represents a deployable cloud application.

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcxapi"
alicloudroscdkcxapi.NewCloudAssembly(directory *string) CloudAssembly
Name Type Description
directory *string The root directory of the assembly.

directoryRequired

  • Type: *string

The root directory of the assembly.


Methods

Name Description
GetNestedAssembly Returns a nested assembly.
GetNestedAssemblyArtifact Returns a nested assembly artifact.
GetStack Returns a ROS stack artifact by name from this assembly.
GetStackArtifact Returns a ROS stack artifact from this assembly.
GetStackByName Returns a ROS stack artifact from this assembly.
Tree Returns the tree metadata artifact from this assembly.
TryGetArtifact Attempts to find an artifact with a specific identity.

GetNestedAssembly

func GetNestedAssembly(artifactId *string) CloudAssembly

Returns a nested assembly.

artifactIdRequired

  • Type: *string

The artifact ID of the nested assembly.


GetNestedAssemblyArtifact

func GetNestedAssemblyArtifact(artifactId *string) NestedCloudAssemblyArtifact

Returns a nested assembly artifact.

artifactIdRequired

  • Type: *string

The artifact ID of the nested assembly.


GetStack

func GetStack(stackName *string) RosStackArtifact

Returns a ROS stack artifact by name from this assembly.

Deprecated renamed to 'getStackByName' (or 'getStackArtifact(id)')

stackNameRequired

  • Type: *string

GetStackArtifact

func GetStackArtifact(artifactId *string) RosStackArtifact

Returns a ROS stack artifact from this assembly.

Param artifactId the artifact id of the stack (can be obtained through 'stack.artifactId'). Throws if there is no stack artifact with that id Returns a 'RosStackArtifact' object.

artifactIdRequired

  • Type: *string

GetStackByName

func GetStackByName(stackName *string) RosStackArtifact

Returns a ROS stack artifact from this assembly.

Will only search the current assembly.

Param stackName the name of the ROS stack. Throws if there is no stack artifact by that name Throws if there is more than one stack with the same stack name. You can use 'getStackArtifact - stack.artifactId' instead. Returns a 'RosStackArtifact' object.

stackNameRequired

  • Type: *string

Tree

func Tree() TreeCloudArtifact

Returns the tree metadata artifact from this assembly.

Throws if there is no metadata artifact by that name Returns a 'TreeCloudArtifact' object if there is one defined in the manifest, 'undefined' otherwise.

TryGetArtifact

func TryGetArtifact(id *string) CloudArtifact

Attempts to find an artifact with a specific identity.

Returns A 'CloudArtifact' object or 'undefined' if the artifact does not exist in this assembly. Param id The artifact ID

idRequired

  • Type: *string

Properties

Name Type Description
Artifacts *[]CloudArtifact All artifacts included in this assembly.
Directory *string The root directory of the cloud assembly.
Manifest github.com/alibabacloud-go/ros-cdk/alicloudroscdkassemblyschema.AssemblyManifest The raw assembly manifest.
Runtime github.com/alibabacloud-go/ros-cdk/alicloudroscdkassemblyschema.RuntimeInfo Runtime information such as module versions used to synthesize this assembly.
Stacks *[]RosStackArtifact No description.
Version *string The schema version of the assembly manifest.

ArtifactsRequired

func Artifacts() *[]CloudArtifact

All artifacts included in this assembly.


DirectoryRequired

func Directory() *string
  • Type: *string

The root directory of the cloud assembly.


ManifestRequired

func Manifest() AssemblyManifest
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkassemblyschema.AssemblyManifest

The raw assembly manifest.


RuntimeRequired

func Runtime() RuntimeInfo
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkassemblyschema.RuntimeInfo

Runtime information such as module versions used to synthesize this assembly.


StacksRequired

func Stacks() *[]RosStackArtifact

VersionRequired

func Version() *string
  • Type: *string

The schema version of the assembly manifest.