WindowsUserDataOptions
- class aws_cdk.aws_ec2.WindowsUserDataOptions(*, persist=None)
Bases:
object
Options when constructing UserData for Windows.
- Parameters:
persist (
Optional
[bool
]) – Set to true to set this userdata to persist through an instance reboot; allowing it to run on every instance start. By default, UserData is run only once during the first instance launch. For more information, see: https://aws.amazon.com/premiumsupport/knowledge-center/execute-user-data-ec2/ https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html#user-data-scripts Default: false- ExampleMetadata:
infused
Example:
windows_user_data = ec2.UserData.for_windows(persist=True)
Attributes
- persist
Set to true to set this userdata to persist through an instance reboot;
allowing it to run on every instance start. By default, UserData is run only once during the first instance launch.
For more information, see: https://aws.amazon.com/premiumsupport/knowledge-center/execute-user-data-ec2/ https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html#user-data-scripts
- Default:
false