Interface CfnFleetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFleetProps.Jsii$Proxy
CfnFleet.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.deadline.*;
CfnFleetProps cfnFleetProps = CfnFleetProps.builder()
.configuration(FleetConfigurationProperty.builder()
.customerManaged(CustomerManagedFleetConfigurationProperty.builder()
.mode("mode")
.workerCapabilities(CustomerManagedWorkerCapabilitiesProperty.builder()
.cpuArchitectureType("cpuArchitectureType")
.memoryMiB(MemoryMiBRangeProperty.builder()
.min(123)
// the properties below are optional
.max(123)
.build())
.osFamily("osFamily")
.vCpuCount(VCpuCountRangeProperty.builder()
.min(123)
// the properties below are optional
.max(123)
.build())
// the properties below are optional
.acceleratorCount(AcceleratorCountRangeProperty.builder()
.min(123)
// the properties below are optional
.max(123)
.build())
.acceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBRangeProperty.builder()
.min(123)
// the properties below are optional
.max(123)
.build())
.acceleratorTypes(List.of("acceleratorTypes"))
.customAmounts(List.of(FleetAmountCapabilityProperty.builder()
.min(123)
.name("name")
// the properties below are optional
.max(123)
.build()))
.customAttributes(List.of(FleetAttributeCapabilityProperty.builder()
.name("name")
.values(List.of("values"))
.build()))
.build())
// the properties below are optional
.storageProfileId("storageProfileId")
.tagPropagationMode("tagPropagationMode")
.build())
.serviceManagedEc2(ServiceManagedEc2FleetConfigurationProperty.builder()
.instanceCapabilities(ServiceManagedEc2InstanceCapabilitiesProperty.builder()
.cpuArchitectureType("cpuArchitectureType")
.memoryMiB(MemoryMiBRangeProperty.builder()
.min(123)
// the properties below are optional
.max(123)
.build())
.osFamily("osFamily")
.vCpuCount(VCpuCountRangeProperty.builder()
.min(123)
// the properties below are optional
.max(123)
.build())
// the properties below are optional
.acceleratorCapabilities(AcceleratorCapabilitiesProperty.builder()
.selections(List.of(AcceleratorSelectionProperty.builder()
.name("name")
// the properties below are optional
.runtime("runtime")
.build()))
// the properties below are optional
.count(AcceleratorCountRangeProperty.builder()
.min(123)
// the properties below are optional
.max(123)
.build())
.build())
.allowedInstanceTypes(List.of("allowedInstanceTypes"))
.customAmounts(List.of(FleetAmountCapabilityProperty.builder()
.min(123)
.name("name")
// the properties below are optional
.max(123)
.build()))
.customAttributes(List.of(FleetAttributeCapabilityProperty.builder()
.name("name")
.values(List.of("values"))
.build()))
.excludedInstanceTypes(List.of("excludedInstanceTypes"))
.rootEbsVolume(Ec2EbsVolumeProperty.builder()
.iops(123)
.sizeGiB(123)
.throughputMiB(123)
.build())
.build())
.instanceMarketOptions(ServiceManagedEc2InstanceMarketOptionsProperty.builder()
.type("type")
.build())
// the properties below are optional
.storageProfileId("storageProfileId")
.vpcConfiguration(VpcConfigurationProperty.builder()
.resourceConfigurationArns(List.of("resourceConfigurationArns"))
.build())
.build())
.build())
.displayName("displayName")
.farmId("farmId")
.maxWorkerCount(123)
.roleArn("roleArn")
// the properties below are optional
.description("description")
.hostConfiguration(HostConfigurationProperty.builder()
.scriptBody("scriptBody")
// the properties below are optional
.scriptTimeoutSeconds(123)
.build())
.minWorkerCount(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFleetPropsstatic final classAn implementation forCfnFleetProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnFleetProps.Builderbuilder()The configuration details for the fleet.default StringA description that helps identify what the fleet is used for.The display name of the fleet summary to update.The farm ID.default ObjectProvides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.The maximum number of workers specified in the fleet.default NumberThe minimum number of workers in the fleet.The IAM role that workers in the fleet use when processing jobs.getTags()The tags to add to your fleet.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConfiguration
The configuration details for the fleet.Returns union: either
IResolvableorCfnFleet.FleetConfigurationProperty- See Also:
-
getDisplayName
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.
- See Also:
-
getFarmId
The farm ID.- See Also:
-
getMaxWorkerCount
The maximum number of workers specified in the fleet.- See Also:
-
getRoleArn
The IAM role that workers in the fleet use when processing jobs.- See Also:
-
getDescription
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: - ""
- See Also:
-
getHostConfiguration
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 ("").Returns union: either
IResolvableorCfnFleet.HostConfigurationProperty- See Also:
-
getMinWorkerCount
The minimum number of workers in the fleet.Default: - 0
- See Also:
-
getTags
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.
- See Also:
-
builder
- Returns:
- a
CfnFleetProps.BuilderofCfnFleetProps
-