StringSpecializer
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewStringSpecializer(stack Stack, qualifier *string) StringSpecializer
| Name | Type | Description |
|---|---|---|
stack | Stack | No description. |
qualifier | *string | No description. |
stackRequired
- Type: Stack
qualifierRequired
- Type: *string
Methods
| Name | Description |
|---|---|
QualifierOnly | Specialize only the qualifier. |
Specialize | Function to replace placeholders in the input string as much as possible. |
SpecializeNoTokens | Specialize the given string, make sure it doesn't contain tokens. |
QualifierOnly
func QualifierOnly(str *string) *string
Specialize only the qualifier.
- Type: *string
Specialize
func Specialize(str *string) *string
Function to replace placeholders in the input string as much as possible.
We replace:
- ${Qualifier}: always
- ${ALIYUN::AccountId}, ${ALIYUN::Region}: only if we have the actual values available
- Type: *string
SpecializeNoTokens
func SpecializeNoTokens(str *string, what *string) *string
Specialize the given string, make sure it doesn't contain tokens.
- Type: *string
- Type: *string
Static Functions
| Name | Description |
|---|---|
ValidateNoTokens | Validate that the given string does not contain tokens. |
ValidateNoTokens
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.StringSpecializer_ValidateNoTokens(str *string, what *string)
Validate that the given string does not contain tokens.
- Type: *string
- Type: *string