LinuxUserDataOptions Struct
Options when constructing UserData for Linux.
| Source | aws-ec2/lib/user-data.ts |
|---|
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 linuxUserDataOptions: ec2.LinuxUserDataOptions = {
shebang: 'shebang',
};
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
linux_user_data_options = ec2.LinuxUserDataOptions(
shebang="shebang"
)
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.*;
LinuxUserDataOptions linuxUserDataOptions = LinuxUserDataOptions.builder()
.shebang("shebang")
.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 linuxUserDataOptions = new LinuxUserDataOptions {
Shebang = "shebang"
};
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"
linuxUserDataOptions := &LinuxUserDataOptions{
Shebang: jsii.String("shebang"),
}
Properties
shebangoptionalstringshebangoptionalstrshebangoptionalStringShebangoptionalstringShebangoptional*string = "#!/bin/bash" #Shebang for the UserData script.