Class CfnFleet
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.deadline.CfnFleet
- All Implemented Interfaces:
IInspectable,ITaggableV2,IFleetRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:34.854Z")
@Stability(Stable)
public class CfnFleet
extends CfnResource
implements IInspectable, IFleetRef, ITaggableV2
Creates a fleet.
Fleets gather information relating to compute, or capacity, for renders within your farms. You can choose to manage your own capacity or opt to have fleets fully managed by Deadline Cloud.
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.*;
CfnFleet cfnFleet = CfnFleet.Builder.create(this, "MyCfnFleet")
.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 TypeClassDescriptionstatic interfaceProvides information about the GPU accelerators used for jobs processed by a fleet.static interfaceDefines the maximum and minimum number of GPU accelerators required for a worker instance..static interfaceDescribes a specific GPU accelerator required for an Amazon Elastic Compute Cloud worker host.static interfaceDefines the maximum and minimum amount of memory, in MiB, to use for the accelerator.static final classA fluent builder forCfnFleet.static interfaceThe details of a customer managed fleet configuration.static interfaceThe worker capabilities for a customer managed workflow.static interfaceSpecifies the EBS volume.static interfaceThe fleet amount and attribute capabilities.static interfaceDefines the fleet's capability name, minimum, and maximum.static interfaceThe amounts and attributes of fleets.static interfaceFleet configuration details.static interfaceProvides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.static interfaceThe range of memory in MiB.static interfaceThe configuration details for a service managed Amazon EC2 fleet.static interfaceThe Amazon EC2 instance capabilities.static interfaceThe details of the Amazon EC2 instance market options for a service managed fleet.static interfaceThe allowable range of vCPU processing power for the fleet.static interfaceThe configuration options for a service managed fleet's VPC.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.deadline.IFleetRef
IFleetRef.Jsii$Default, IFleetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFleet(software.amazon.jsii.JsiiObjectRef objRef) CfnFleet(software.constructs.Construct scope, String id, CfnFleetProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) assigned to the fleet.The fleet ID.The status of the fleet.A message that communicates a suspended status of the fleet.The number of workers in the fleet summary.Tag Manager which manages the tags for this resource.The configuration details for the fleet.A description that helps identify what the fleet is used for.The display name of the fleet summary to update.The farm ID.A reference to a Fleet resource.Provides 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.The 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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetConfiguration(IResolvable value) The configuration details for the fleet.voidThe configuration details for the fleet.voidsetDescription(String value) A description that helps identify what the fleet is used for.voidsetDisplayName(String value) The display name of the fleet summary to update.voidThe farm ID.voidsetHostConfiguration(IResolvable value) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.voidProvides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.voidsetMaxWorkerCount(Number value) The maximum number of workers specified in the fleet.voidsetMinWorkerCount(Number value) The minimum number of workers in the fleet.voidsetRoleArn(String value) The IAM role that workers in the fleet use when processing jobs.voidThe tags to add to your fleet.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFleet
protected CfnFleet(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFleet
protected CfnFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFleet
@Stability(Stable) public CfnFleet(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFleetProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) assigned to the fleet. -
getAttrCapabilities
-
getAttrFleetId
The fleet ID. -
getAttrStatus
The status of the fleet. -
getAttrStatusMessage
A message that communicates a suspended status of the fleet. -
getAttrWorkerCount
The number of workers in the fleet summary. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFleetRef
A reference to a Fleet resource.- Specified by:
getFleetRefin interfaceIFleetRef
-
getConfiguration
The configuration details for the fleet.Returns union: either
IResolvableorCfnFleet.FleetConfigurationProperty -
setConfiguration
The configuration details for the fleet. -
setConfiguration
The configuration details for the fleet. -
getDisplayName
The display name of the fleet summary to update. -
setDisplayName
The display name of the fleet summary to update. -
getFarmId
The farm ID. -
setFarmId
The farm ID. -
getMaxWorkerCount
The maximum number of workers specified in the fleet. -
setMaxWorkerCount
The maximum number of workers specified in the fleet. -
getRoleArn
The IAM role that workers in the fleet use when processing jobs. -
setRoleArn
The IAM role that workers in the fleet use when processing jobs. -
getDescription
A description that helps identify what the fleet is used for. -
setDescription
A description that helps identify what the fleet is used for. -
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.Returns union: either
IResolvableorCfnFleet.HostConfigurationProperty -
setHostConfiguration
Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet. -
setHostConfiguration
@Stability(Stable) public void setHostConfiguration(@Nullable CfnFleet.HostConfigurationProperty value) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet. -
getMinWorkerCount
The minimum number of workers in the fleet. -
setMinWorkerCount
The minimum number of workers in the fleet. -
getTags
The tags to add to your fleet. -
setTags
The tags to add to your fleet.
-