LinuxUserDataOptions

class aws_cdk.aws_ec2.LinuxUserDataOptions(*, shebang=None)

Bases: object

Options when constructing UserData for Linux.

Parameters:

shebang (Optional[str]) – Shebang for the UserData script. Default: “#!/bin/bash”

ExampleMetadata:

fixture=_generated

Example:

# 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"
)

Attributes

shebang

Shebang for the UserData script.

Default:

“#!/bin/bash”