Skip to content
v2.277.0

MultipartUserDataOptions Struct ​

Options for creating MultipartUserData.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const multipartUserDataOptions: ec2.MultipartUserDataOptions = {
  partsSeparator: 'partsSeparator',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

multipart_user_data_options = ec2.MultipartUserDataOptions(
    parts_separator="partsSeparator"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

MultipartUserDataOptions multipartUserDataOptions = MultipartUserDataOptions.builder()
        .partsSeparator("partsSeparator")
        .build();
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.AWS.EC2;

var multipartUserDataOptions = new MultipartUserDataOptions {
    PartsSeparator = "partsSeparator"
};
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 "github.com/aws/aws-cdk-go/awscdk"

multipartUserDataOptions := &MultipartUserDataOptions{
	PartsSeparator: jsii.String("partsSeparator"),
}

Properties ​

partsSeparatoroptionalstringparts_separatoroptionalstrpartsSeparatoroptionalStringPartsSeparatoroptionalstringPartsSeparatoroptional*string = `+AWS+CDK+User+Data+Separator==` #
The string used to separate parts in multipart user data archive (it's like MIME boundary).

This string should contain [a-zA-Z0-9()+,-./:=?] characters only, and should not be present in any part, or in text content of archive.