Skip to content

StringSpecializer

Initializers

using AlibabaCloud.SDK.ROS.CDK.Core;
new StringSpecializer(Stack Stack, string Qualifier);
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

private string QualifierOnly(string Str)

Specialize only the qualifier.

StrRequired

  • Type: string

Specialize

private string Specialize(string Str)

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

private string SpecializeNoTokens(string Str, string What)

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

using AlibabaCloud.SDK.ROS.CDK.Core;
StringSpecializer.ValidateNoTokens(string Str, string What);

Validate that the given string does not contain tokens.

StrRequired

  • Type: string

WhatRequired

  • Type: string