Skip to content

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


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.

strRequired

  • 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

strRequired

  • Type: *string

SpecializeNoTokens

func SpecializeNoTokens(str *string, what *string) *string

Specialize the given string, make sure it doesn't contain tokens.

strRequired

  • Type: *string

whatRequired

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

strRequired

  • Type: *string

whatRequired

  • Type: *string