RosInfo
Initializers
import com.aliyun.ros.cdk.core.RosInfo;
new RosInfo(Construct scope, java.lang.String id, java.lang.String OR java.util.Map<java.lang.String, java.lang.Object> info);
Name | Type | Description |
---|---|---|
scope |
Construct |
The parent construct. |
id |
java.lang.String |
No description. |
info |
java.lang.String OR java.util.Map |
No description. |
scope
Required
- Type: Construct
The parent construct.
id
Required
- Type: java.lang.String
info
Required
- Type: java.lang.String OR java.util.Map
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
overrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: ISynthesisSession
The synthesis session.
overrideLogicalId
public void overrideLogicalId(java.lang.String newLogicalId)
Overrides the auto-generated logical ID with a specific ID.
- Type: java.lang.String
The new logical ID to use for this stack element.
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isRosElement |
Returns true if a construct is a stack element (i.e. part of the synthesized template). |
isConstruct
import com.aliyun.ros.cdk.core.RosInfo;
RosInfo.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
isRosElement
import com.aliyun.ros.cdk.core.RosInfo;
RosInfo.isRosElement(java.lang.Object x)
Returns true
if a construct is a stack element (i.e. part of the synthesized template).
Uses duck-typing instead of instanceof
to allow stack elements from different
versions of this library to be included in the same stack.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
ConstructNode |
The construct tree node associated with this construct. |
creationStack |
java.util.List |
No description. |
logicalId |
java.lang.String |
The logical ID for this stack element. |
stack |
Stack |
The stack in which this element is defined. |
description |
java.lang.String |
No description. |
formatVersion |
java.lang.String |
No description. |
metadata |
java.lang.String |
No description. |
v20150901 |
java.lang.String |
No description. |
node
Required
public ConstructNode getNode();
- Type: ConstructNode
The construct tree node associated with this construct.
creationStack
Required
public java.util.List<java.lang.String> getCreationStack();
- Type: java.util.List
logicalId
Required
public java.lang.String getLogicalId();
- Type: java.lang.String
The logical ID for this stack element.
The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use overrideLogicalId(newLogicalId)
.
stack
Required
public Stack getStack();
- Type: Stack
The stack in which this element is defined.
RosElements must be defined within a stack scope (directly or indirectly).
description
Required
public java.lang.String getDescription();
- Type: java.lang.String
formatVersion
Required
public java.lang.String getFormatVersion();
- Type: java.lang.String
metadata
Required
public java.lang.String getMetadata();
- Type: java.lang.String
v20150901
Required
public java.lang.String getV20150901();
- Type: java.lang.String