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”

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

linux_user_data_options = ec2.LinuxUserDataOptions(
    shebang="shebang"
)

Attributes

shebang

Shebang for the UserData script.

Default

“#!/bin/bash”

Return type

Optional[str]