Class CfnFleet.HostConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.deadline.CfnFleet.HostConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.HostConfigurationProperty>
- Enclosing interface:
CfnFleet.HostConfigurationProperty
@Stability(Stable)
public static final class CfnFleet.HostConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.HostConfigurationProperty>
A builder for
CfnFleet.HostConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.scriptBody
(String scriptBody) Sets the value ofCfnFleet.HostConfigurationProperty.getScriptBody()
scriptTimeoutSeconds
(Number scriptTimeoutSeconds) Sets the value ofCfnFleet.HostConfigurationProperty.getScriptTimeoutSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scriptBody
Sets the value ofCfnFleet.HostConfigurationProperty.getScriptBody()
- Parameters:
scriptBody
- The text of the script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet. This parameter is required. The script runs after a worker enters theSTARTING
state and before the worker processes tasks.For more information about using the script, see Run scripts as an administrator to configure workers in the Deadline Cloud Developer Guide .
The script runs as an administrative user (
sudo root
on Linux, as an Administrator on Windows).- Returns:
this
-
scriptTimeoutSeconds
@Stability(Stable) public CfnFleet.HostConfigurationProperty.Builder scriptTimeoutSeconds(Number scriptTimeoutSeconds) Sets the value ofCfnFleet.HostConfigurationProperty.getScriptTimeoutSeconds()
- Parameters:
scriptTimeoutSeconds
- The maximum time that the host configuration can run. If the timeout expires, the worker enters theNOT RESPONDING
state and shuts down. You are charged for the time that the worker is running the host configuration script.You should configure your fleet for a maximum of one worker while testing your host configuration script to avoid starting additional workers.
The default is 300 seconds (5 minutes).
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.HostConfigurationProperty>
- Returns:
- a new instance of
CfnFleet.HostConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-