RosParameter
A ROS parameter.
Parameters enable you to input custom values to your template each time you create or update a stack.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewRosParameter(scope Construct, id *string, props RosParameterProps) RosParameter
Name | Type | Description |
---|---|---|
scope |
Construct |
No description. |
id |
*string |
No description. |
props |
RosParameterProps |
No description. |
scope
Required
- Type: Construct
id
Required
- Type: *string
props
Optional
- Type: RosParameterProps
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. |
Resolve |
No description. |
ValidateProperties |
No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
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
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
- Type: *string
The new logical ID to use for this stack element.
Resolve
func Resolve(_context IResolveContext) interface{}
- Type: IResolveContext
ValidateProperties
func ValidateProperties(props RosParameterProps)
- Type: RosParameterProps
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 "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.RosParameter_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
IsRosElement
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.RosParameter_IsRosElement(x interface{}) *bool
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: interface{}
Properties
Name | Type | Description |
---|---|---|
Node |
ConstructNode |
The construct tree node associated with this construct. |
CreationStack |
[]string |
No description. |
LogicalId |
*string |
The logical ID for this stack element. |
Stack |
Stack |
The stack in which this element is defined. |
NoEcho |
*bool |
Indicates if this parameter is configured with "NoEcho" enabled. |
Value |
IResolvable |
The parameter value as a Token. |
ValueAsAny |
interface{} |
The parameter value, if it represents a string. |
ValueAsBoolean |
interface{} |
The parameter value, if it represents a string. |
ValueAsList |
[]string |
The parameter value, if it represents a string list. |
ValueAsNumber |
*f64 |
The parameter value, if it represents a number. |
ValueAsString |
*string |
The parameter value, if it represents a string. |
Node
Required
func Node() ConstructNode
- Type: ConstructNode
The construct tree node associated with this construct.
CreationStack
Required
func CreationStack() *[]*string
- Type: []string
LogicalId
Required
func LogicalId() *string
- Type: *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
func Stack() Stack
- Type: Stack
The stack in which this element is defined.
RosElements must be defined within a stack scope (directly or indirectly).
NoEcho
Required
func NoEcho() *bool
- Type: *bool
Indicates if this parameter is configured with "NoEcho" enabled.
Value
Required
func Value() IResolvable
- Type: IResolvable
The parameter value as a Token.
ValueAsAny
Required
func ValueAsAny() interface{}
- Type: interface{}
The parameter value, if it represents a string.
ValueAsBoolean
Required
func ValueAsBoolean() interface{}
- Type: interface{}
The parameter value, if it represents a string.
ValueAsList
Required
func ValueAsList() *[]*string
- Type: []string
The parameter value, if it represents a string list.
ValueAsNumber
Required
func ValueAsNumber() *f64
- Type: *f64
The parameter value, if it represents a number.
ValueAsString
Required
func ValueAsString() *string
- Type: *string
The parameter value, if it represents a string.
Constants
Name | Type | Description |
---|---|---|
TypeAllowedValues |
[]string |
No description. |
TypeAllowedValues
Required
func TypeAllowedValues() *[]*string
- Type: []string