Skip to content

RosOutput

Initializers

import com.aliyun.ros.cdk.core.RosOutput;
RosOutput.Builder.create(Construct scope, java.lang.String id)
    .value(java.lang.Object)
//  .condition(RosCondition)
//  .description(java.lang.String)
//  .exportName(java.lang.String)
    .build();
Name Type Description
scope Construct The parent construct.
id java.lang.String No description.
value java.lang.Object The value of the property returned by Resource Orchestration Service.
condition RosCondition A condition to associate with this output value.
description java.lang.String A String type that describes the output value.
exportName java.lang.String The name used to export the value of this output across stacks.

scopeRequired

The parent construct.


idRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

The value of the property returned by Resource Orchestration Service.

The value of an output can include literals, parameter references, pseudo-parameters, a mapping value, or intrinsic functions.


conditionOptional

  • Type: RosCondition
  • Default: No condition is associated with the output.

A condition to associate with this output value.

If the condition evaluates to false, this output value will not be included in the stack.


descriptionOptional

  • Type: java.lang.String
  • Default: No description.

A String type that describes the output value.

The description can be a maximum of 4 K in length.


exportNameOptional

  • Type: java.lang.String
  • Default: the output is not exported

The name used to export the value of this output across stacks.

To import the value from another stack, use Fn.importValue(exportName).


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.
addCondition No description.

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.

sessionRequired

The synthesis session.


overrideLogicalId

public void overrideLogicalId(java.lang.String newLogicalId)

Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired

  • Type: java.lang.String

The new logical ID to use for this stack element.


addCondition

public void addCondition(RosCondition condition)

conditionRequired


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.RosOutput;
RosOutput.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

isRosElement

import com.aliyun.ros.cdk.core.RosOutput;
RosOutput.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.

xRequired

  • 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.

nodeRequired

public ConstructNode getNode();

The construct tree node associated with this construct.


creationStackRequired

public java.util.List<java.lang.String> getCreationStack();
  • Type: java.util.List

logicalIdRequired

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).


stackRequired

public Stack getStack();

The stack in which this element is defined.

RosElements must be defined within a stack scope (directly or indirectly).