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. |
Stack
Required
- Type: Stack
Qualifier
Required
- 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.
- 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
- Type: string
SpecializeNoTokens
private string SpecializeNoTokens(string Str, string What)
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
using AlibabaCloud.SDK.ROS.CDK.Core;
StringSpecializer.ValidateNoTokens(string Str, string What);
Validate that the given string does not contain tokens.
- Type: string
- Type: string