Interface WindowsUserDataOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
WindowsUserDataOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.285Z") @Stability(Stable) public interface WindowsUserDataOptions extends software.amazon.jsii.JsiiSerializable
Options when constructing UserData for Windows.

Example:

 UserData windowsUserData = UserData.forWindows(WindowsUserDataOptions.builder().persist(true).build());
 
  • Method Details

    • getPersist

      @Stability(Stable) @Nullable default Boolean getPersist()
      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

    • builder

      @Stability(Stable) static WindowsUserDataOptions.Builder builder()
      Returns:
      a WindowsUserDataOptions.Builder of WindowsUserDataOptions