Class CfnFleetPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin>
- Enclosing class:
CfnFleetPropsMixin
CfnFleetPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()configuration(CfnFleetPropsMixin.FleetConfigurationProperty configuration) The configuration details for the fleet.configuration(IResolvable configuration) The configuration details for the fleet.static CfnFleetPropsMixin.Buildercreate()static CfnFleetPropsMixin.Buildercreate(CfnPropertyMixinOptions options) description(String description) A description that helps identify what the fleet is used for.displayName(String displayName) The display name of the fleet summary to update.The farm ID.hostConfiguration(CfnFleetPropsMixin.HostConfigurationProperty hostConfiguration) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.hostConfiguration(IResolvable hostConfiguration) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.maxWorkerCount(Number maxWorkerCount) The maximum number of workers specified in the fleet.minWorkerCount(Number minWorkerCount) The minimum number of workers in the fleet.The IAM role that workers in the fleet use when processing jobs.The tags to add to your fleet.
-
Method Details
-
create
- Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnFleetPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnFleetPropsMixin.Builder.
-
configuration
The configuration details for the fleet.- Parameters:
configuration- The configuration details for the fleet. This parameter is required.- Returns:
this- See Also:
-
configuration
@Stability(Stable) public CfnFleetPropsMixin.Builder configuration(CfnFleetPropsMixin.FleetConfigurationProperty configuration) The configuration details for the fleet.- Parameters:
configuration- The configuration details for the fleet. This parameter is required.- Returns:
this- See Also:
-
description
A description that helps identify what the fleet is used for.This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
Default: - ""
- Parameters:
description- A description that helps identify what the fleet is used for. This parameter is required.- Returns:
this- See Also:
-
displayName
The display name of the fleet summary to update.This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Parameters:
displayName- The display name of the fleet summary to update. This parameter is required.- Returns:
this- See Also:
-
farmId
The farm ID.- Parameters:
farmId- The farm ID. This parameter is required.- Returns:
this- See Also:
-
hostConfiguration
@Stability(Stable) public CfnFleetPropsMixin.Builder hostConfiguration(IResolvable hostConfiguration) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.To remove a script from a fleet, use the UpdateFleet operation with the
hostConfigurationscriptBodyparameter set to an empty string ("").- Parameters:
hostConfiguration- Provides a 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.- Returns:
this- See Also:
-
hostConfiguration
@Stability(Stable) public CfnFleetPropsMixin.Builder hostConfiguration(CfnFleetPropsMixin.HostConfigurationProperty hostConfiguration) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.To remove a script from a fleet, use the UpdateFleet operation with the
hostConfigurationscriptBodyparameter set to an empty string ("").- Parameters:
hostConfiguration- Provides a 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.- Returns:
this- See Also:
-
maxWorkerCount
The maximum number of workers specified in the fleet.- Parameters:
maxWorkerCount- The maximum number of workers specified in the fleet. This parameter is required.- Returns:
this- See Also:
-
minWorkerCount
The minimum number of workers in the fleet.Default: - 0
- Parameters:
minWorkerCount- The minimum number of workers in the fleet. This parameter is required.- Returns:
this- See Also:
-
roleArn
The IAM role that workers in the fleet use when processing jobs.- Parameters:
roleArn- The IAM role that workers in the fleet use when processing jobs. This parameter is required.- Returns:
this- See Also:
-
tags
The tags to add to your fleet.Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.
- Parameters:
tags- The tags to add to your fleet. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin>- Returns:
- a newly built instance of
CfnFleetPropsMixin.
-