CfnFleetProps Struct
Properties for defining a CfnFleet.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_deadline as deadline } from 'aws-cdk-lib';
const cfnFleetProps: deadline.CfnFleetProps = {
configuration: {
customerManaged: {
mode: 'mode',
workerCapabilities: {
cpuArchitectureType: 'cpuArchitectureType',
memoryMiB: {
min: 123,
// the properties below are optional
max: 123,
},
osFamily: 'osFamily',
vCpuCount: {
min: 123,
// the properties below are optional
max: 123,
},
// the properties below are optional
acceleratorCount: {
min: 123,
// the properties below are optional
max: 123,
},
acceleratorTotalMemoryMiB: {
min: 123,
// the properties below are optional
max: 123,
},
acceleratorTypes: ['acceleratorTypes'],
customAmounts: [{
min: 123,
name: 'name',
// the properties below are optional
max: 123,
}],
customAttributes: [{
name: 'name',
values: ['values'],
}],
},
// the properties below are optional
autoScalingConfiguration: {
scaleOutWorkersPerMinute: 123,
standbyWorkerCount: 123,
workerIdleDurationSeconds: 123,
},
storageProfileId: 'storageProfileId',
tagPropagationMode: 'tagPropagationMode',
},
serviceManagedEc2: {
instanceCapabilities: {
cpuArchitectureType: 'cpuArchitectureType',
memoryMiB: {
min: 123,
// the properties below are optional
max: 123,
},
osFamily: 'osFamily',
vCpuCount: {
min: 123,
// the properties below are optional
max: 123,
},
// the properties below are optional
acceleratorCapabilities: {
selections: [{
name: 'name',
// the properties below are optional
runtime: 'runtime',
}],
// the properties below are optional
count: {
min: 123,
// the properties below are optional
max: 123,
},
},
allowedInstanceTypes: ['allowedInstanceTypes'],
customAmounts: [{
min: 123,
name: 'name',
// the properties below are optional
max: 123,
}],
customAttributes: [{
name: 'name',
values: ['values'],
}],
excludedInstanceTypes: ['excludedInstanceTypes'],
rootEbsVolume: {
iops: 123,
sizeGiB: 123,
throughputMiB: 123,
},
softwareAddOns: [{
name: 'name',
}],
},
instanceMarketOptions: {
type: 'type',
},
// the properties below are optional
autoScalingConfiguration: {
scaleOutWorkersPerMinute: 123,
standbyWorkerCount: 123,
workerIdleDurationSeconds: 123,
},
persistentVolumeConfiguration: {
mountPath: 'mountPath',
// the properties below are optional
iops: 123,
lastUsedTtlHours: 123,
sizeGiB: 123,
throughputMiB: 123,
},
storageProfileId: 'storageProfileId',
vpcConfiguration: {
resourceConfigurationArns: ['resourceConfigurationArns'],
},
},
},
displayName: 'displayName',
farmId: 'farmId',
maxWorkerCount: 123,
roleArn: 'roleArn',
// the properties below are optional
description: 'description',
hostConfiguration: {
scriptBody: 'scriptBody',
// the properties below are optional
scriptTimeoutSeconds: 123,
},
minWorkerCount: 123,
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
configurationIResolvable | CfnFleet.FleetConfigurationPropertyconfigurationtyping.Union[IResolvable, FleetConfigurationProperty]configurationIResolvableConfigurationIResolvableConfigurationinterface{}required#The configuration details for the fleet.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string= ""#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.
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.
The farm ID.
hostConfigurationoptionalIResolvable | CfnFleet.HostConfigurationPropertyhost_configurationoptionaltyping.Union[IResolvable, HostConfigurationProperty]hostConfigurationoptionalIResolvableHostConfigurationoptionalIResolvableHostConfigurationoptionalinterface{}#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 hostConfiguration scriptBody parameter set to an empty string ("").
maxWorkerCountnumbermax_worker_countint | floatmaxWorkerCountNumberMaxWorkerCountdoubleMaxWorkerCount*float64required#The maximum number of workers specified in the fleet.
minWorkerCountoptionalnumbermin_worker_countoptionalint | floatminWorkerCountoptionalNumberMinWorkerCountoptionaldoubleMinWorkerCountoptional*float64= 0#The minimum number of workers in the fleet.
The IAM role that workers in the fleet use when processing jobs.