interface WindowsUserDataOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.WindowsUserDataOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#WindowsUserDataOptions |
![]() | software.amazon.awscdk.services.ec2.WindowsUserDataOptions |
![]() | aws_cdk.aws_ec2.WindowsUserDataOptions |
![]() | aws-cdk-lib » aws_ec2 » WindowsUserDataOptions |
Options when constructing UserData for Windows.
Example
const windowsUserData = ec2.UserData.forWindows({ persist: true });
Properties
Name | Type | Description |
---|---|---|
persist? | boolean | Set to true to set this userdata to persist through an instance reboot; |
persist?
Type:
boolean
(optional, default: false)
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