StringConcat Class
Converts all fragments to strings and concats those.
Drops 'undefined's.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const stringConcat = new cdk.StringConcat();
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
string_concat = cdk.StringConcat()
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
StringConcat stringConcat = new StringConcat();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var stringConcat = new StringConcat();
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
stringConcat := cdk.NewStringConcat()
Initializer
ts
new StringConcat()
python
StringConcat()
java
new StringConcat()
csharp
new StringConcat()
go
NewStringConcat()
Methods
join(left: any, right: any): anydef join(self, left: Any, right: Any) -> Anypublic Object join(Object left, Object right)public object Join(object left, object right)func Join(Left interface{}, Right interface{}) interface{}#Join the fragment on the left and on the right.