CfnFleetPropsMixin
- class aws_cdk.mixins_preview.aws_deadline.mixins.CfnFleetPropsMixin(props, *, strategy=None)
Bases:
MixinCreates 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.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-fleet.html
- CloudformationResource:
AWS::Deadline::Fleet
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins cfn_fleet_props_mixin = deadline_mixins.CfnFleetPropsMixin(deadline_mixins.CfnFleetMixinProps( configuration=deadline_mixins.CfnFleetPropsMixin.FleetConfigurationProperty( customer_managed=deadline_mixins.CfnFleetPropsMixin.CustomerManagedFleetConfigurationProperty( mode="mode", storage_profile_id="storageProfileId", tag_propagation_mode="tagPropagationMode", worker_capabilities=deadline_mixins.CfnFleetPropsMixin.CustomerManagedWorkerCapabilitiesProperty( accelerator_count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), accelerator_total_memory_mi_b=deadline_mixins.CfnFleetPropsMixin.AcceleratorTotalMemoryMiBRangeProperty( max=123, min=123 ), accelerator_types=["acceleratorTypes"], cpu_architecture_type="cpuArchitectureType", custom_amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], custom_attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )], memory_mi_b=deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 ), os_family="osFamily", v_cpu_count=deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 ) ) ), service_managed_ec2=deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2FleetConfigurationProperty( instance_capabilities=deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty( accelerator_capabilities=deadline_mixins.CfnFleetPropsMixin.AcceleratorCapabilitiesProperty( count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), selections=[deadline_mixins.CfnFleetPropsMixin.AcceleratorSelectionProperty( name="name", runtime="runtime" )] ), allowed_instance_types=["allowedInstanceTypes"], cpu_architecture_type="cpuArchitectureType", custom_amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], custom_attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )], excluded_instance_types=["excludedInstanceTypes"], memory_mi_b=deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 ), os_family="osFamily", root_ebs_volume=deadline_mixins.CfnFleetPropsMixin.Ec2EbsVolumeProperty( iops=123, size_gi_b=123, throughput_mi_b=123 ), v_cpu_count=deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 ) ), instance_market_options=deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2InstanceMarketOptionsProperty( type="type" ), storage_profile_id="storageProfileId", vpc_configuration=deadline_mixins.CfnFleetPropsMixin.VpcConfigurationProperty( resource_configuration_arns=["resourceConfigurationArns"] ) ) ), description="description", display_name="displayName", farm_id="farmId", host_configuration=deadline_mixins.CfnFleetPropsMixin.HostConfigurationProperty( script_body="scriptBody", script_timeout_seconds=123 ), max_worker_count=123, min_worker_count=123, role_arn="roleArn", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Deadline::Fleet.- Parameters:
props (
Union[CfnFleetMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['configuration', 'description', 'displayName', 'farmId', 'hostConfiguration', 'maxWorkerCount', 'minWorkerCount', 'roleArn', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AcceleratorCapabilitiesProperty
- class CfnFleetPropsMixin.AcceleratorCapabilitiesProperty(*, count=None, selections=None)
Bases:
objectProvides information about the GPU accelerators used for jobs processed by a fleet.
- Parameters:
count (
Union[IResolvable,AcceleratorCountRangeProperty,Dict[str,Any],None]) – The number of GPU accelerators specified for worker hosts in this fleet.selections (
Union[IResolvable,Sequence[Union[IResolvable,AcceleratorSelectionProperty,Dict[str,Any]]],None]) – A list of accelerator capabilities requested for this fleet. Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, AWS Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins accelerator_capabilities_property = deadline_mixins.CfnFleetPropsMixin.AcceleratorCapabilitiesProperty( count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), selections=[deadline_mixins.CfnFleetPropsMixin.AcceleratorSelectionProperty( name="name", runtime="runtime" )] )
Attributes
- count
The number of GPU accelerators specified for worker hosts in this fleet.
- selections
A list of accelerator capabilities requested for this fleet.
Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, AWS Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.
AcceleratorCountRangeProperty
- class CfnFleetPropsMixin.AcceleratorCountRangeProperty(*, max=None, min=None)
Bases:
objectDefines the maximum and minimum number of GPU accelerators required for a worker instance..
- Parameters:
max (
Union[int,float,None]) – The maximum number of GPU accelerators in the worker host.min (
Union[int,float,None]) – The minimum number of GPU accelerators in the worker host.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins accelerator_count_range_property = deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 )
Attributes
- max
The maximum number of GPU accelerators in the worker host.
- min
The minimum number of GPU accelerators in the worker host.
AcceleratorSelectionProperty
- class CfnFleetPropsMixin.AcceleratorSelectionProperty(*, name=None, runtime=None)
Bases:
objectDescribes a specific GPU accelerator required for an Amazon Elastic Compute Cloud worker host.
- Parameters:
name (
Optional[str]) – The name of the chip used by the GPU accelerator. If you specifyl4as the name of the accelerator, you must specifylatestorgrid:r570as the runtime. The available GPU accelerators are: -t4- NVIDIA T4 Tensor Core GPU -a10g- NVIDIA A10G Tensor Core GPU -l4- NVIDIA L4 Tensor Core GPU -l40s- NVIDIA L40S Tensor Core GPUruntime (
Optional[str]) – Specifies the runtime driver to use for the GPU accelerator. You must use the same runtime for all GPUs. You can choose from the following runtimes: -latest- Use the latest runtime available for the chip. If you specifylatestand a new version of the runtime is released, the new version of the runtime is used. -grid:r570- NVIDIA vGPU software 18 -grid:r535- NVIDIA vGPU software 16 If you don’t specify a runtime, AWS Deadline Cloud useslatestas the default. However, if you have multiple accelerators and specifylatestfor some and leave others blank, AWS Deadline Cloud raises an exception.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins accelerator_selection_property = deadline_mixins.CfnFleetPropsMixin.AcceleratorSelectionProperty( name="name", runtime="runtime" )
Attributes
- name
The name of the chip used by the GPU accelerator.
If you specify
l4as the name of the accelerator, you must specifylatestorgrid:r570as the runtime.The available GPU accelerators are:
t4- NVIDIA T4 Tensor Core GPUa10g- NVIDIA A10G Tensor Core GPUl4- NVIDIA L4 Tensor Core GPUl40s- NVIDIA L40S Tensor Core GPU
- runtime
Specifies the runtime driver to use for the GPU accelerator. You must use the same runtime for all GPUs.
You can choose from the following runtimes:
latest- Use the latest runtime available for the chip. If you specifylatestand a new version of the runtime is released, the new version of the runtime is used.grid:r570- NVIDIA vGPU software 18grid:r535- NVIDIA vGPU software 16
If you don’t specify a runtime, AWS Deadline Cloud uses
latestas the default. However, if you have multiple accelerators and specifylatestfor some and leave others blank, AWS Deadline Cloud raises an exception.
AcceleratorTotalMemoryMiBRangeProperty
- class CfnFleetPropsMixin.AcceleratorTotalMemoryMiBRangeProperty(*, max=None, min=None)
Bases:
objectDefines the maximum and minimum amount of memory, in MiB, to use for the accelerator.
- Parameters:
max (
Union[int,float,None]) – The maximum amount of memory to use for the accelerator, measured in MiB.min (
Union[int,float,None]) – The minimum amount of memory to use for the accelerator, measured in MiB.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins accelerator_total_memory_mi_bRange_property = deadline_mixins.CfnFleetPropsMixin.AcceleratorTotalMemoryMiBRangeProperty( max=123, min=123 )
Attributes
- max
The maximum amount of memory to use for the accelerator, measured in MiB.
- min
The minimum amount of memory to use for the accelerator, measured in MiB.
CustomerManagedFleetConfigurationProperty
- class CfnFleetPropsMixin.CustomerManagedFleetConfigurationProperty(*, mode=None, storage_profile_id=None, tag_propagation_mode=None, worker_capabilities=None)
Bases:
objectThe configuration details for a customer managed fleet.
- Parameters:
mode (
Optional[str]) – The Auto Scaling mode for the customer managed fleet.storage_profile_id (
Optional[str]) – The storage profile ID for the customer managed fleet.tag_propagation_mode (
Optional[str]) – The tag propagation mode for the customer managed fleet.worker_capabilities (
Union[IResolvable,CustomerManagedWorkerCapabilitiesProperty,Dict[str,Any],None]) – The worker capabilities for the customer managed fleet.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins customer_managed_fleet_configuration_property = deadline_mixins.CfnFleetPropsMixin.CustomerManagedFleetConfigurationProperty( mode="mode", storage_profile_id="storageProfileId", tag_propagation_mode="tagPropagationMode", worker_capabilities=deadline_mixins.CfnFleetPropsMixin.CustomerManagedWorkerCapabilitiesProperty( accelerator_count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), accelerator_total_memory_mi_b=deadline_mixins.CfnFleetPropsMixin.AcceleratorTotalMemoryMiBRangeProperty( max=123, min=123 ), accelerator_types=["acceleratorTypes"], cpu_architecture_type="cpuArchitectureType", custom_amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], custom_attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )], memory_mi_b=deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 ), os_family="osFamily", v_cpu_count=deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 ) ) )
Attributes
- mode
The Auto Scaling mode for the customer managed fleet.
- storage_profile_id
The storage profile ID for the customer managed fleet.
- tag_propagation_mode
The tag propagation mode for the customer managed fleet.
- worker_capabilities
The worker capabilities for the customer managed fleet.
CustomerManagedWorkerCapabilitiesProperty
- class CfnFleetPropsMixin.CustomerManagedWorkerCapabilitiesProperty(*, accelerator_count=None, accelerator_total_memory_mib=None, accelerator_types=None, cpu_architecture_type=None, custom_amounts=None, custom_attributes=None, memory_mib=None, os_family=None, v_cpu_count=None)
Bases:
objectThe worker capabilities for a customer managed workflow.
- Parameters:
accelerator_count (
Union[IResolvable,AcceleratorCountRangeProperty,Dict[str,Any],None]) – The range of the accelerator.accelerator_total_memory_mib (
Union[IResolvable,AcceleratorTotalMemoryMiBRangeProperty,Dict[str,Any],None]) – The total memory (MiB) for the customer managed worker capabilities.accelerator_types (
Optional[Sequence[str]]) – The accelerator types for the customer managed worker capabilities.cpu_architecture_type (
Optional[str]) – The CPU architecture type for the customer managed worker capabilities.custom_amounts (
Union[IResolvable,Sequence[Union[IResolvable,FleetAmountCapabilityProperty,Dict[str,Any]]],None]) – Custom requirement ranges for customer managed worker capabilities.custom_attributes (
Union[IResolvable,Sequence[Union[IResolvable,FleetAttributeCapabilityProperty,Dict[str,Any]]],None]) – Custom attributes for the customer manged worker capabilities.memory_mib (
Union[IResolvable,MemoryMiBRangeProperty,Dict[str,Any],None]) – The memory (MiB).os_family (
Optional[str]) – The operating system (OS) family.v_cpu_count (
Union[IResolvable,VCpuCountRangeProperty,Dict[str,Any],None]) – The vCPU count for the customer manged worker capabilities.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins customer_managed_worker_capabilities_property = deadline_mixins.CfnFleetPropsMixin.CustomerManagedWorkerCapabilitiesProperty( accelerator_count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), accelerator_total_memory_mi_b=deadline_mixins.CfnFleetPropsMixin.AcceleratorTotalMemoryMiBRangeProperty( max=123, min=123 ), accelerator_types=["acceleratorTypes"], cpu_architecture_type="cpuArchitectureType", custom_amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], custom_attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )], memory_mi_b=deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 ), os_family="osFamily", v_cpu_count=deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 ) )
Attributes
- accelerator_count
The range of the accelerator.
- accelerator_total_memory_mib
The total memory (MiB) for the customer managed worker capabilities.
- accelerator_types
The accelerator types for the customer managed worker capabilities.
- cpu_architecture_type
The CPU architecture type for the customer managed worker capabilities.
- custom_amounts
Custom requirement ranges for customer managed worker capabilities.
- custom_attributes
Custom attributes for the customer manged worker capabilities.
- memory_mib
The memory (MiB).
- os_family
The operating system (OS) family.
- v_cpu_count
The vCPU count for the customer manged worker capabilities.
Ec2EbsVolumeProperty
- class CfnFleetPropsMixin.Ec2EbsVolumeProperty(*, iops=None, size_gib=None, throughput_mib=None)
Bases:
objectSpecifies the EBS volume.
- Parameters:
iops (
Union[int,float,None]) – The IOPS per volume. Default: - 3000size_gib (
Union[int,float,None]) – The EBS volume size in GiB. Default: - 250throughput_mib (
Union[int,float,None]) – The throughput per volume in MiB. Default: - 125
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins ec2_ebs_volume_property = deadline_mixins.CfnFleetPropsMixin.Ec2EbsVolumeProperty( iops=123, size_gi_b=123, throughput_mi_b=123 )
Attributes
- iops
The IOPS per volume.
- size_gib
The EBS volume size in GiB.
- throughput_mib
The throughput per volume in MiB.
FleetAmountCapabilityProperty
- class CfnFleetPropsMixin.FleetAmountCapabilityProperty(*, max=None, min=None, name=None)
Bases:
objectThe fleet amount and attribute capabilities.
- Parameters:
max (
Union[int,float,None]) – The maximum amount of the fleet worker capability.min (
Union[int,float,None]) – The minimum amount of fleet worker capability.name (
Optional[str]) – The name of the fleet capability.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins fleet_amount_capability_property = deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )
Attributes
- max
The maximum amount of the fleet worker capability.
- min
The minimum amount of fleet worker capability.
- name
The name of the fleet capability.
FleetAttributeCapabilityProperty
- class CfnFleetPropsMixin.FleetAttributeCapabilityProperty(*, name=None, values=None)
Bases:
objectDefines the fleet’s capability name, minimum, and maximum.
- Parameters:
name (
Optional[str]) – The name of the fleet attribute capability for the worker.values (
Optional[Sequence[str]]) – The number of fleet attribute capabilities.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins fleet_attribute_capability_property = deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )
Attributes
- name
The name of the fleet attribute capability for the worker.
- values
The number of fleet attribute capabilities.
FleetCapabilitiesProperty
- class CfnFleetPropsMixin.FleetCapabilitiesProperty(*, amounts=None, attributes=None)
Bases:
objectThe amounts and attributes of fleets.
- Parameters:
amounts (
Union[IResolvable,Sequence[Union[IResolvable,FleetAmountCapabilityProperty,Dict[str,Any]]],None]) – Amount capabilities of the fleet.attributes (
Union[IResolvable,Sequence[Union[IResolvable,FleetAttributeCapabilityProperty,Dict[str,Any]]],None]) – Attribute capabilities of the fleet.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins fleet_capabilities_property = deadline_mixins.CfnFleetPropsMixin.FleetCapabilitiesProperty( amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )] )
Attributes
- amounts
Amount capabilities of the fleet.
- attributes
Attribute capabilities of the fleet.
FleetConfigurationProperty
- class CfnFleetPropsMixin.FleetConfigurationProperty(*, customer_managed=None, service_managed_ec2=None)
Bases:
objectFleet configuration details.
- Parameters:
customer_managed (
Union[IResolvable,CustomerManagedFleetConfigurationProperty,Dict[str,Any],None]) – The customer managed fleets within a fleet configuration.service_managed_ec2 (
Union[IResolvable,ServiceManagedEc2FleetConfigurationProperty,Dict[str,Any],None]) – The service managed Amazon EC2 instances for a fleet configuration.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins fleet_configuration_property = deadline_mixins.CfnFleetPropsMixin.FleetConfigurationProperty( customer_managed=deadline_mixins.CfnFleetPropsMixin.CustomerManagedFleetConfigurationProperty( mode="mode", storage_profile_id="storageProfileId", tag_propagation_mode="tagPropagationMode", worker_capabilities=deadline_mixins.CfnFleetPropsMixin.CustomerManagedWorkerCapabilitiesProperty( accelerator_count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), accelerator_total_memory_mi_b=deadline_mixins.CfnFleetPropsMixin.AcceleratorTotalMemoryMiBRangeProperty( max=123, min=123 ), accelerator_types=["acceleratorTypes"], cpu_architecture_type="cpuArchitectureType", custom_amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], custom_attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )], memory_mi_b=deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 ), os_family="osFamily", v_cpu_count=deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 ) ) ), service_managed_ec2=deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2FleetConfigurationProperty( instance_capabilities=deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty( accelerator_capabilities=deadline_mixins.CfnFleetPropsMixin.AcceleratorCapabilitiesProperty( count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), selections=[deadline_mixins.CfnFleetPropsMixin.AcceleratorSelectionProperty( name="name", runtime="runtime" )] ), allowed_instance_types=["allowedInstanceTypes"], cpu_architecture_type="cpuArchitectureType", custom_amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], custom_attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )], excluded_instance_types=["excludedInstanceTypes"], memory_mi_b=deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 ), os_family="osFamily", root_ebs_volume=deadline_mixins.CfnFleetPropsMixin.Ec2EbsVolumeProperty( iops=123, size_gi_b=123, throughput_mi_b=123 ), v_cpu_count=deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 ) ), instance_market_options=deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2InstanceMarketOptionsProperty( type="type" ), storage_profile_id="storageProfileId", vpc_configuration=deadline_mixins.CfnFleetPropsMixin.VpcConfigurationProperty( resource_configuration_arns=["resourceConfigurationArns"] ) ) )
Attributes
- customer_managed
The customer managed fleets within a fleet configuration.
- service_managed_ec2
The service managed Amazon EC2 instances for a fleet configuration.
HostConfigurationProperty
- class CfnFleetPropsMixin.HostConfigurationProperty(*, script_body=None, script_timeout_seconds=None)
Bases:
objectProvides 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:
script_body (
Optional[str]) – 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 . .. epigraph:: The script runs as an administrative user (sudo rooton Linux, as an Administrator on Windows).script_timeout_seconds (
Union[int,float,None]) – 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. .. epigraph:: 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). Default: - 300
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins host_configuration_property = deadline_mixins.CfnFleetPropsMixin.HostConfigurationProperty( script_body="scriptBody", script_timeout_seconds=123 )
Attributes
- script_body
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 the
STARTINGstate 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 . .. epigraph:
The script runs as an administrative user ( ``sudo root`` on Linux, as an Administrator on Windows).
- script_timeout_seconds
The maximum time that the host configuration can run.
If the timeout expires, the worker enters the
NOT RESPONDINGstate and shuts down. You are charged for the time that the worker is running the host configuration script. .. epigraph: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).
MemoryMiBRangeProperty
- class CfnFleetPropsMixin.MemoryMiBRangeProperty(*, max=None, min=None)
Bases:
objectThe range of memory in MiB.
- Parameters:
max (
Union[int,float,None]) – The maximum amount of memory (in MiB).min (
Union[int,float,None]) – The minimum amount of memory (in MiB).
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins memory_mi_bRange_property = deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 )
Attributes
- max
The maximum amount of memory (in MiB).
- min
The minimum amount of memory (in MiB).
ServiceManagedEc2FleetConfigurationProperty
- class CfnFleetPropsMixin.ServiceManagedEc2FleetConfigurationProperty(*, instance_capabilities=None, instance_market_options=None, storage_profile_id=None, vpc_configuration=None)
Bases:
objectThe configuration details for a service managed EC2 fleet.
- Parameters:
instance_capabilities (
Union[IResolvable,ServiceManagedEc2InstanceCapabilitiesProperty,Dict[str,Any],None]) – The instance capabilities for the service managed EC2 fleet.instance_market_options (
Union[IResolvable,ServiceManagedEc2InstanceMarketOptionsProperty,Dict[str,Any],None]) – The instance market options for the service managed EC2 fleet.storage_profile_id (
Optional[str]) – The storage profile ID for the service managed EC2 fleet.vpc_configuration (
Union[IResolvable,VpcConfigurationProperty,Dict[str,Any],None]) – The VPC configuration for the service managed EC2 fleet.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins service_managed_ec2_fleet_configuration_property = deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2FleetConfigurationProperty( instance_capabilities=deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty( accelerator_capabilities=deadline_mixins.CfnFleetPropsMixin.AcceleratorCapabilitiesProperty( count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), selections=[deadline_mixins.CfnFleetPropsMixin.AcceleratorSelectionProperty( name="name", runtime="runtime" )] ), allowed_instance_types=["allowedInstanceTypes"], cpu_architecture_type="cpuArchitectureType", custom_amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], custom_attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )], excluded_instance_types=["excludedInstanceTypes"], memory_mi_b=deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 ), os_family="osFamily", root_ebs_volume=deadline_mixins.CfnFleetPropsMixin.Ec2EbsVolumeProperty( iops=123, size_gi_b=123, throughput_mi_b=123 ), v_cpu_count=deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 ) ), instance_market_options=deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2InstanceMarketOptionsProperty( type="type" ), storage_profile_id="storageProfileId", vpc_configuration=deadline_mixins.CfnFleetPropsMixin.VpcConfigurationProperty( resource_configuration_arns=["resourceConfigurationArns"] ) )
Attributes
- instance_capabilities
The instance capabilities for the service managed EC2 fleet.
- instance_market_options
The instance market options for the service managed EC2 fleet.
- storage_profile_id
The storage profile ID for the service managed EC2 fleet.
- vpc_configuration
The VPC configuration for the service managed EC2 fleet.
ServiceManagedEc2InstanceCapabilitiesProperty
- class CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty(*, accelerator_capabilities=None, allowed_instance_types=None, cpu_architecture_type=None, custom_amounts=None, custom_attributes=None, excluded_instance_types=None, memory_mib=None, os_family=None, root_ebs_volume=None, v_cpu_count=None)
Bases:
objectThe Amazon EC2 instance capabilities.
- Parameters:
accelerator_capabilities (
Union[IResolvable,AcceleratorCapabilitiesProperty,Dict[str,Any],None]) – Describes the GPU accelerator capabilities required for worker host instances in this fleet.allowed_instance_types (
Optional[Sequence[str]]) – The allowable Amazon EC2 instance types.cpu_architecture_type (
Optional[str]) – The CPU architecture type.custom_amounts (
Union[IResolvable,Sequence[Union[IResolvable,FleetAmountCapabilityProperty,Dict[str,Any]]],None]) – The custom capability amounts to require for instances in this fleet.custom_attributes (
Union[IResolvable,Sequence[Union[IResolvable,FleetAttributeCapabilityProperty,Dict[str,Any]]],None]) – The custom capability attributes to require for instances in this fleet.excluded_instance_types (
Optional[Sequence[str]]) – The instance types to exclude from the fleet.memory_mib (
Union[IResolvable,MemoryMiBRangeProperty,Dict[str,Any],None]) – The memory, as MiB, for the Amazon EC2 instance type.os_family (
Optional[str]) – The operating system (OS) family.root_ebs_volume (
Union[IResolvable,Ec2EbsVolumeProperty,Dict[str,Any],None]) – The root EBS volume.v_cpu_count (
Union[IResolvable,VCpuCountRangeProperty,Dict[str,Any],None]) – The amount of vCPU to require for instances in this fleet.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins service_managed_ec2_instance_capabilities_property = deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2InstanceCapabilitiesProperty( accelerator_capabilities=deadline_mixins.CfnFleetPropsMixin.AcceleratorCapabilitiesProperty( count=deadline_mixins.CfnFleetPropsMixin.AcceleratorCountRangeProperty( max=123, min=123 ), selections=[deadline_mixins.CfnFleetPropsMixin.AcceleratorSelectionProperty( name="name", runtime="runtime" )] ), allowed_instance_types=["allowedInstanceTypes"], cpu_architecture_type="cpuArchitectureType", custom_amounts=[deadline_mixins.CfnFleetPropsMixin.FleetAmountCapabilityProperty( max=123, min=123, name="name" )], custom_attributes=[deadline_mixins.CfnFleetPropsMixin.FleetAttributeCapabilityProperty( name="name", values=["values"] )], excluded_instance_types=["excludedInstanceTypes"], memory_mi_b=deadline_mixins.CfnFleetPropsMixin.MemoryMiBRangeProperty( max=123, min=123 ), os_family="osFamily", root_ebs_volume=deadline_mixins.CfnFleetPropsMixin.Ec2EbsVolumeProperty( iops=123, size_gi_b=123, throughput_mi_b=123 ), v_cpu_count=deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 ) )
Attributes
- accelerator_capabilities
Describes the GPU accelerator capabilities required for worker host instances in this fleet.
- allowed_instance_types
The allowable Amazon EC2 instance types.
- cpu_architecture_type
The CPU architecture type.
- custom_amounts
The custom capability amounts to require for instances in this fleet.
- custom_attributes
The custom capability attributes to require for instances in this fleet.
- excluded_instance_types
The instance types to exclude from the fleet.
- memory_mib
The memory, as MiB, for the Amazon EC2 instance type.
- os_family
The operating system (OS) family.
- root_ebs_volume
The root EBS volume.
- v_cpu_count
The amount of vCPU to require for instances in this fleet.
ServiceManagedEc2InstanceMarketOptionsProperty
- class CfnFleetPropsMixin.ServiceManagedEc2InstanceMarketOptionsProperty(*, type=None)
Bases:
objectThe details of the Amazon EC2 instance market options for a service managed fleet.
- Parameters:
type (
Optional[str]) – The Amazon EC2 instance type.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins service_managed_ec2_instance_market_options_property = deadline_mixins.CfnFleetPropsMixin.ServiceManagedEc2InstanceMarketOptionsProperty( type="type" )
Attributes
VCpuCountRangeProperty
- class CfnFleetPropsMixin.VCpuCountRangeProperty(*, max=None, min=None)
Bases:
objectThe allowable range of vCPU processing power for the fleet.
- Parameters:
max (
Union[int,float,None]) – The maximum amount of vCPU.min (
Union[int,float,None]) – The minimum amount of vCPU.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins v_cpu_count_range_property = deadline_mixins.CfnFleetPropsMixin.VCpuCountRangeProperty( max=123, min=123 )
Attributes
- max
The maximum amount of vCPU.
VpcConfigurationProperty
- class CfnFleetPropsMixin.VpcConfigurationProperty(*, resource_configuration_arns=None)
Bases:
objectThe configuration options for a service managed fleet’s VPC.
- Parameters:
resource_configuration_arns (
Optional[Sequence[str]]) – The ARNs of the VPC Lattice resource configurations attached to the fleet.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins vpc_configuration_property = deadline_mixins.CfnFleetPropsMixin.VpcConfigurationProperty( resource_configuration_arns=["resourceConfigurationArns"] )
Attributes
- resource_configuration_arns
The ARNs of the VPC Lattice resource configurations attached to the fleet.