Class CfnFleetPropsMixin.HostConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.deadline.CfnFleetPropsMixin.HostConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.HostConfigurationProperty>
- Enclosing interface:
CfnFleetPropsMixin.HostConfigurationProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.HostConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.HostConfigurationProperty>
A builder for
CfnFleetPropsMixin.HostConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scriptBody(String scriptBody) Sets the value ofCfnFleetPropsMixin.HostConfigurationProperty.getScriptBody()scriptTimeoutSeconds(Number scriptTimeoutSeconds) Sets the value ofCfnFleetPropsMixin.HostConfigurationProperty.getScriptTimeoutSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scriptBody
@Stability(Stable) public CfnFleetPropsMixin.HostConfigurationProperty.Builder scriptBody(String scriptBody) Sets the value ofCfnFleetPropsMixin.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. The script runs after a worker enters theSTARTINGstate 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 rooton Linux, as an Administrator on Windows).- Returns:
this
-
scriptTimeoutSeconds
@Stability(Stable) public CfnFleetPropsMixin.HostConfigurationProperty.Builder scriptTimeoutSeconds(Number scriptTimeoutSeconds) Sets the value ofCfnFleetPropsMixin.HostConfigurationProperty.getScriptTimeoutSeconds()- Parameters:
scriptTimeoutSeconds- The maximum time that the host configuration can run. If the timeout expires, the worker enters theNOT RESPONDINGstate 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.HostConfigurationProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.HostConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-