AWSDeadlineCloud

2024/11/14 - AWSDeadlineCloud - 4 updated api methods

Changes  Adds support for select GPU accelerated instance types when creating new service-managed fleets.

CreateFleet (updated) Link ¶
Changes (request)
{'configuration': {'serviceManagedEc2': {'instanceCapabilities': {'acceleratorCapabilities': {'count': {'max': 'integer',
                                                                                                        'min': 'integer'},
                                                                                              'selections': [{'name': 't4 '
                                                                                                                      '| '
                                                                                                                      'a10g '
                                                                                                                      '| '
                                                                                                                      'l4 '
                                                                                                                      '| '
                                                                                                                      'l40s',
                                                                                                              'runtime': 'string'}]}}}}}

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.

See also: AWS API Documentation

Request Syntax

client.create_fleet(
    clientToken='string',
    farmId='string',
    displayName='string',
    description='string',
    roleArn='string',
    minWorkerCount=123,
    maxWorkerCount=123,
    configuration={
        'customerManaged': {
            'mode': 'NO_SCALING'|'EVENT_BASED_AUTO_SCALING',
            'workerCapabilities': {
                'vCpuCount': {
                    'min': 123,
                    'max': 123
                },
                'memoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'acceleratorTypes': [
                    'gpu',
                ],
                'acceleratorCount': {
                    'min': 123,
                    'max': 123
                },
                'acceleratorTotalMemoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'osFamily': 'WINDOWS'|'LINUX'|'MACOS',
                'cpuArchitectureType': 'x86_64'|'arm64',
                'customAmounts': [
                    {
                        'name': 'string',
                        'min': ...,
                        'max': ...
                    },
                ],
                'customAttributes': [
                    {
                        'name': 'string',
                        'values': [
                            'string',
                        ]
                    },
                ]
            },
            'storageProfileId': 'string'
        },
        'serviceManagedEc2': {
            'instanceCapabilities': {
                'vCpuCount': {
                    'min': 123,
                    'max': 123
                },
                'memoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'osFamily': 'WINDOWS'|'LINUX',
                'cpuArchitectureType': 'x86_64'|'arm64',
                'rootEbsVolume': {
                    'sizeGiB': 123,
                    'iops': 123,
                    'throughputMiB': 123
                },
                'acceleratorCapabilities': {
                    'selections': [
                        {
                            'name': 't4'|'a10g'|'l4'|'l40s',
                            'runtime': 'string'
                        },
                    ],
                    'count': {
                        'min': 123,
                        'max': 123
                    }
                },
                'allowedInstanceTypes': [
                    'string',
                ],
                'excludedInstanceTypes': [
                    'string',
                ],
                'customAmounts': [
                    {
                        'name': 'string',
                        'min': ...,
                        'max': ...
                    },
                ],
                'customAttributes': [
                    {
                        'name': 'string',
                        'values': [
                            'string',
                        ]
                    },
                ]
            },
            'instanceMarketOptions': {
                'type': 'on-demand'|'spot'
            }
        }
    },
    tags={
        'string': 'string'
    }
)
type clientToken:

string

param clientToken:

The unique token which the server uses to recognize retries of the same request.

This field is autopopulated if not provided.

type farmId:

string

param farmId:

[REQUIRED]

The farm ID of the farm to connect to the fleet.

type displayName:

string

param displayName:

[REQUIRED]

The display name of the fleet.

type description:

string

param description:

The description of the fleet.

type roleArn:

string

param roleArn:

[REQUIRED]

The IAM role ARN for the role that the fleet's workers will use.

type minWorkerCount:

integer

param minWorkerCount:

The minimum number of workers for the fleet.

type maxWorkerCount:

integer

param maxWorkerCount:

[REQUIRED]

The maximum number of workers for the fleet.

type configuration:

dict

param configuration:

[REQUIRED]

The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 fleets are managed by Deadline Cloud.

  • customerManaged (dict) --

    The customer managed fleets within a fleet configuration.

    • mode (string) -- [REQUIRED]

      The Auto Scaling mode for the customer managed fleet configuration.

    • workerCapabilities (dict) -- [REQUIRED]

      The worker capabilities for a customer managed fleet configuration.

      • vCpuCount (dict) -- [REQUIRED]

        The vCPU count for the customer manged worker capabilities.

        • min (integer) -- [REQUIRED]

          The minimum amount of vCPU.

        • max (integer) --

          The maximum amount of vCPU.

      • memoryMiB (dict) -- [REQUIRED]

        The memory (MiB).

        • min (integer) -- [REQUIRED]

          The minimum amount of memory (in MiB).

        • max (integer) --

          The maximum amount of memory (in MiB).

      • acceleratorTypes (list) --

        The accelerator types for the customer managed worker capabilities.

        • (string) --

      • acceleratorCount (dict) --

        The range of the accelerator.

        • min (integer) -- [REQUIRED]

          The minimum number of GPUs for the accelerator. If you set the value to 0, a worker will still have 1 GPU.

        • max (integer) --

          The maximum number of GPUs for the accelerator.

      • acceleratorTotalMemoryMiB (dict) --

        The total memory (MiB) for the customer managed worker capabilities.

        • min (integer) -- [REQUIRED]

          The minimum amount of memory to use for the accelerator, measured in MiB.

        • max (integer) --

          The maximum amount of memory to use for the accelerator, measured in MiB.

      • osFamily (string) -- [REQUIRED]

        The operating system (OS) family.

      • cpuArchitectureType (string) -- [REQUIRED]

        The CPU architecture type for the customer managed worker capabilities.

      • customAmounts (list) --

        Custom requirement ranges for customer managed worker capabilities.

        • (dict) --

          The fleet amount and attribute capabilities.

          • name (string) -- [REQUIRED]

            The name of the fleet capability.

          • min (float) -- [REQUIRED]

            The minimum amount of fleet worker capability.

          • max (float) --

            The maximum amount of the fleet worker capability.

      • customAttributes (list) --

        Custom attributes for the customer manged worker capabilities.

        • (dict) --

          Defines the fleet's capability name, minimum, and maximum.

          • name (string) -- [REQUIRED]

            The name of the fleet attribute capability for the worker.

          • values (list) -- [REQUIRED]

            The number of fleet attribute capabilities.

            • (string) --

    • storageProfileId (string) --

      The storage profile ID.

  • serviceManagedEc2 (dict) --

    The service managed Amazon EC2 instances for a fleet configuration.

    • instanceCapabilities (dict) -- [REQUIRED]

      The Amazon EC2 instance capabilities.

      • vCpuCount (dict) -- [REQUIRED]

        The amount of vCPU to require for instances in this fleet.

        • min (integer) -- [REQUIRED]

          The minimum amount of vCPU.

        • max (integer) --

          The maximum amount of vCPU.

      • memoryMiB (dict) -- [REQUIRED]

        The memory, as MiB, for the Amazon EC2 instance type.

        • min (integer) -- [REQUIRED]

          The minimum amount of memory (in MiB).

        • max (integer) --

          The maximum amount of memory (in MiB).

      • osFamily (string) -- [REQUIRED]

        The operating system (OS) family.

      • cpuArchitectureType (string) -- [REQUIRED]

        The CPU architecture type.

      • rootEbsVolume (dict) --

        The root EBS volume.

        • sizeGiB (integer) --

          The EBS volume size in GiB.

        • iops (integer) --

          The IOPS per volume.

        • throughputMiB (integer) --

          The throughput per volume in MiB.

      • acceleratorCapabilities (dict) --

        The GPU accelerator capabilities required for the Amazon EC2 instances. If you include the acceleratorCapabilities property in the ServiceManagedEc2InstanceCapabilities object, all of the Amazon EC2 instances will have at least one accelerator.

        • selections (list) -- [REQUIRED]

          A list of objects that contain the GPU name of the accelerator and driver for the instance types that support the accelerator.

          • (dict) --

            Values that you can use to select a particular Amazon EC2 instance type.

            • name (string) -- [REQUIRED]

              The name of the GPU accelerator.

            • runtime (string) --

              The driver version that the GPU accelerator uses.

        • count (dict) --

          The number of GPUs on each worker. The default is 1.

          • min (integer) -- [REQUIRED]

            The minimum number of GPUs for the accelerator. If you set the value to 0, a worker will still have 1 GPU.

          • max (integer) --

            The maximum number of GPUs for the accelerator.

      • allowedInstanceTypes (list) --

        The allowable Amazon EC2 instance types.

        • (string) --

      • excludedInstanceTypes (list) --

        The instance types to exclude from the fleet.

        • (string) --

      • customAmounts (list) --

        The custom capability amounts to require for instances in this fleet.

        • (dict) --

          The fleet amount and attribute capabilities.

          • name (string) -- [REQUIRED]

            The name of the fleet capability.

          • min (float) -- [REQUIRED]

            The minimum amount of fleet worker capability.

          • max (float) --

            The maximum amount of the fleet worker capability.

      • customAttributes (list) --

        The custom capability attributes to require for instances in this fleet.

        • (dict) --

          Defines the fleet's capability name, minimum, and maximum.

          • name (string) -- [REQUIRED]

            The name of the fleet attribute capability for the worker.

          • values (list) -- [REQUIRED]

            The number of fleet attribute capabilities.

            • (string) --

    • instanceMarketOptions (dict) -- [REQUIRED]

      The Amazon EC2 market type.

      • type (string) -- [REQUIRED]

        The Amazon EC2 instance type.

type tags:

dict

param tags:

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.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'fleetId': 'string'
}

Response Structure

  • (dict) --

    • fleetId (string) --

      The fleet ID.

GetFleet (updated) Link ¶
Changes (response)
{'configuration': {'serviceManagedEc2': {'instanceCapabilities': {'acceleratorCapabilities': {'count': {'max': 'integer',
                                                                                                        'min': 'integer'},
                                                                                              'selections': [{'name': 't4 '
                                                                                                                      '| '
                                                                                                                      'a10g '
                                                                                                                      '| '
                                                                                                                      'l4 '
                                                                                                                      '| '
                                                                                                                      'l40s',
                                                                                                              'runtime': 'string'}]}}}}}

Get a fleet.

See also: AWS API Documentation

Request Syntax

client.get_fleet(
    farmId='string',
    fleetId='string'
)
type farmId:

string

param farmId:

[REQUIRED]

The farm ID of the farm in the fleet.

type fleetId:

string

param fleetId:

[REQUIRED]

The fleet ID of the fleet to get.

rtype:

dict

returns:

Response Syntax

{
    'fleetId': 'string',
    'farmId': 'string',
    'displayName': 'string',
    'description': 'string',
    'status': 'ACTIVE'|'CREATE_IN_PROGRESS'|'UPDATE_IN_PROGRESS'|'CREATE_FAILED'|'UPDATE_FAILED',
    'autoScalingStatus': 'GROWING'|'STEADY'|'SHRINKING',
    'targetWorkerCount': 123,
    'workerCount': 123,
    'minWorkerCount': 123,
    'maxWorkerCount': 123,
    'configuration': {
        'customerManaged': {
            'mode': 'NO_SCALING'|'EVENT_BASED_AUTO_SCALING',
            'workerCapabilities': {
                'vCpuCount': {
                    'min': 123,
                    'max': 123
                },
                'memoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'acceleratorTypes': [
                    'gpu',
                ],
                'acceleratorCount': {
                    'min': 123,
                    'max': 123
                },
                'acceleratorTotalMemoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'osFamily': 'WINDOWS'|'LINUX'|'MACOS',
                'cpuArchitectureType': 'x86_64'|'arm64',
                'customAmounts': [
                    {
                        'name': 'string',
                        'min': ...,
                        'max': ...
                    },
                ],
                'customAttributes': [
                    {
                        'name': 'string',
                        'values': [
                            'string',
                        ]
                    },
                ]
            },
            'storageProfileId': 'string'
        },
        'serviceManagedEc2': {
            'instanceCapabilities': {
                'vCpuCount': {
                    'min': 123,
                    'max': 123
                },
                'memoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'osFamily': 'WINDOWS'|'LINUX',
                'cpuArchitectureType': 'x86_64'|'arm64',
                'rootEbsVolume': {
                    'sizeGiB': 123,
                    'iops': 123,
                    'throughputMiB': 123
                },
                'acceleratorCapabilities': {
                    'selections': [
                        {
                            'name': 't4'|'a10g'|'l4'|'l40s',
                            'runtime': 'string'
                        },
                    ],
                    'count': {
                        'min': 123,
                        'max': 123
                    }
                },
                'allowedInstanceTypes': [
                    'string',
                ],
                'excludedInstanceTypes': [
                    'string',
                ],
                'customAmounts': [
                    {
                        'name': 'string',
                        'min': ...,
                        'max': ...
                    },
                ],
                'customAttributes': [
                    {
                        'name': 'string',
                        'values': [
                            'string',
                        ]
                    },
                ]
            },
            'instanceMarketOptions': {
                'type': 'on-demand'|'spot'
            }
        }
    },
    'capabilities': {
        'amounts': [
            {
                'name': 'string',
                'min': ...,
                'max': ...
            },
        ],
        'attributes': [
            {
                'name': 'string',
                'values': [
                    'string',
                ]
            },
        ]
    },
    'roleArn': 'string',
    'createdAt': datetime(2015, 1, 1),
    'createdBy': 'string',
    'updatedAt': datetime(2015, 1, 1),
    'updatedBy': 'string'
}

Response Structure

  • (dict) --

    • fleetId (string) --

      The fleet ID.

    • farmId (string) --

      The farm ID of the farm in the fleet.

    • displayName (string) --

      The display name of the fleet.

    • description (string) --

      The description of the fleet.

    • status (string) --

      The Auto Scaling status of the fleet.

    • autoScalingStatus (string) --

      The Auto Scaling status of the fleet. Either GROWING, STEADY, or SHRINKING.

    • targetWorkerCount (integer) --

      The number of target workers in the fleet.

    • workerCount (integer) --

      The number of workers in the fleet.

    • minWorkerCount (integer) --

      The minimum number of workers specified in the fleet.

    • maxWorkerCount (integer) --

      The maximum number of workers specified in the fleet.

    • configuration (dict) --

      The configuration setting for the fleet.

      • customerManaged (dict) --

        The customer managed fleets within a fleet configuration.

        • mode (string) --

          The Auto Scaling mode for the customer managed fleet configuration.

        • workerCapabilities (dict) --

          The worker capabilities for a customer managed fleet configuration.

          • vCpuCount (dict) --

            The vCPU count for the customer manged worker capabilities.

            • min (integer) --

              The minimum amount of vCPU.

            • max (integer) --

              The maximum amount of vCPU.

          • memoryMiB (dict) --

            The memory (MiB).

            • min (integer) --

              The minimum amount of memory (in MiB).

            • max (integer) --

              The maximum amount of memory (in MiB).

          • acceleratorTypes (list) --

            The accelerator types for the customer managed worker capabilities.

            • (string) --

          • acceleratorCount (dict) --

            The range of the accelerator.

            • min (integer) --

              The minimum number of GPUs for the accelerator. If you set the value to 0, a worker will still have 1 GPU.

            • max (integer) --

              The maximum number of GPUs for the accelerator.

          • acceleratorTotalMemoryMiB (dict) --

            The total memory (MiB) for the customer managed worker capabilities.

            • min (integer) --

              The minimum amount of memory to use for the accelerator, measured in MiB.

            • max (integer) --

              The maximum amount of memory to use for the accelerator, measured in MiB.

          • osFamily (string) --

            The operating system (OS) family.

          • cpuArchitectureType (string) --

            The CPU architecture type for the customer managed worker capabilities.

          • customAmounts (list) --

            Custom requirement ranges for customer managed worker capabilities.

            • (dict) --

              The fleet amount and attribute capabilities.

              • name (string) --

                The name of the fleet capability.

              • min (float) --

                The minimum amount of fleet worker capability.

              • max (float) --

                The maximum amount of the fleet worker capability.

          • customAttributes (list) --

            Custom attributes for the customer manged worker capabilities.

            • (dict) --

              Defines the fleet's capability name, minimum, and maximum.

              • name (string) --

                The name of the fleet attribute capability for the worker.

              • values (list) --

                The number of fleet attribute capabilities.

                • (string) --

        • storageProfileId (string) --

          The storage profile ID.

      • serviceManagedEc2 (dict) --

        The service managed Amazon EC2 instances for a fleet configuration.

        • instanceCapabilities (dict) --

          The Amazon EC2 instance capabilities.

          • vCpuCount (dict) --

            The amount of vCPU to require for instances in this fleet.

            • min (integer) --

              The minimum amount of vCPU.

            • max (integer) --

              The maximum amount of vCPU.

          • memoryMiB (dict) --

            The memory, as MiB, for the Amazon EC2 instance type.

            • min (integer) --

              The minimum amount of memory (in MiB).

            • max (integer) --

              The maximum amount of memory (in MiB).

          • osFamily (string) --

            The operating system (OS) family.

          • cpuArchitectureType (string) --

            The CPU architecture type.

          • rootEbsVolume (dict) --

            The root EBS volume.

            • sizeGiB (integer) --

              The EBS volume size in GiB.

            • iops (integer) --

              The IOPS per volume.

            • throughputMiB (integer) --

              The throughput per volume in MiB.

          • acceleratorCapabilities (dict) --

            The GPU accelerator capabilities required for the Amazon EC2 instances. If you include the acceleratorCapabilities property in the ServiceManagedEc2InstanceCapabilities object, all of the Amazon EC2 instances will have at least one accelerator.

            • selections (list) --

              A list of objects that contain the GPU name of the accelerator and driver for the instance types that support the accelerator.

              • (dict) --

                Values that you can use to select a particular Amazon EC2 instance type.

                • name (string) --

                  The name of the GPU accelerator.

                • runtime (string) --

                  The driver version that the GPU accelerator uses.

            • count (dict) --

              The number of GPUs on each worker. The default is 1.

              • min (integer) --

                The minimum number of GPUs for the accelerator. If you set the value to 0, a worker will still have 1 GPU.

              • max (integer) --

                The maximum number of GPUs for the accelerator.

          • allowedInstanceTypes (list) --

            The allowable Amazon EC2 instance types.

            • (string) --

          • excludedInstanceTypes (list) --

            The instance types to exclude from the fleet.

            • (string) --

          • customAmounts (list) --

            The custom capability amounts to require for instances in this fleet.

            • (dict) --

              The fleet amount and attribute capabilities.

              • name (string) --

                The name of the fleet capability.

              • min (float) --

                The minimum amount of fleet worker capability.

              • max (float) --

                The maximum amount of the fleet worker capability.

          • customAttributes (list) --

            The custom capability attributes to require for instances in this fleet.

            • (dict) --

              Defines the fleet's capability name, minimum, and maximum.

              • name (string) --

                The name of the fleet attribute capability for the worker.

              • values (list) --

                The number of fleet attribute capabilities.

                • (string) --

        • instanceMarketOptions (dict) --

          The Amazon EC2 market type.

          • type (string) --

            The Amazon EC2 instance type.

    • capabilities (dict) --

      Outlines what the fleet is capable of for minimums, maximums, and naming, in addition to attribute names and values.

      • amounts (list) --

        Amount capabilities of the fleet.

        • (dict) --

          The fleet amount and attribute capabilities.

          • name (string) --

            The name of the fleet capability.

          • min (float) --

            The minimum amount of fleet worker capability.

          • max (float) --

            The maximum amount of the fleet worker capability.

      • attributes (list) --

        Attribute capabilities of the fleet.

        • (dict) --

          Defines the fleet's capability name, minimum, and maximum.

          • name (string) --

            The name of the fleet attribute capability for the worker.

          • values (list) --

            The number of fleet attribute capabilities.

            • (string) --

    • roleArn (string) --

      The IAM role ARN.

    • createdAt (datetime) --

      The date and time the resource was created.

    • createdBy (string) --

      The user or system that created this resource.

    • updatedAt (datetime) --

      The date and time the resource was updated.

    • updatedBy (string) --

      The user or system that updated this resource.

ListFleets (updated) Link ¶
Changes (response)
{'fleets': {'configuration': {'serviceManagedEc2': {'instanceCapabilities': {'acceleratorCapabilities': {'count': {'max': 'integer',
                                                                                                                   'min': 'integer'},
                                                                                                         'selections': [{'name': 't4 '
                                                                                                                                 '| '
                                                                                                                                 'a10g '
                                                                                                                                 '| '
                                                                                                                                 'l4 '
                                                                                                                                 '| '
                                                                                                                                 'l40s',
                                                                                                                         'runtime': 'string'}]}}}}}}

Lists fleets.

See also: AWS API Documentation

Request Syntax

client.list_fleets(
    farmId='string',
    principalId='string',
    displayName='string',
    status='ACTIVE'|'CREATE_IN_PROGRESS'|'UPDATE_IN_PROGRESS'|'CREATE_FAILED'|'UPDATE_FAILED',
    nextToken='string',
    maxResults=123
)
type farmId:

string

param farmId:

[REQUIRED]

The farm ID of the fleets.

type principalId:

string

param principalId:

The principal ID of the members to include in the fleet.

type displayName:

string

param displayName:

The display names of a list of fleets.

type status:

string

param status:

The status of the fleet.

type nextToken:

string

param nextToken:

The token for the next set of results, or null to start from the beginning.

type maxResults:

integer

param maxResults:

The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

rtype:

dict

returns:

Response Syntax

{
    'fleets': [
        {
            'fleetId': 'string',
            'farmId': 'string',
            'displayName': 'string',
            'status': 'ACTIVE'|'CREATE_IN_PROGRESS'|'UPDATE_IN_PROGRESS'|'CREATE_FAILED'|'UPDATE_FAILED',
            'autoScalingStatus': 'GROWING'|'STEADY'|'SHRINKING',
            'targetWorkerCount': 123,
            'workerCount': 123,
            'minWorkerCount': 123,
            'maxWorkerCount': 123,
            'configuration': {
                'customerManaged': {
                    'mode': 'NO_SCALING'|'EVENT_BASED_AUTO_SCALING',
                    'workerCapabilities': {
                        'vCpuCount': {
                            'min': 123,
                            'max': 123
                        },
                        'memoryMiB': {
                            'min': 123,
                            'max': 123
                        },
                        'acceleratorTypes': [
                            'gpu',
                        ],
                        'acceleratorCount': {
                            'min': 123,
                            'max': 123
                        },
                        'acceleratorTotalMemoryMiB': {
                            'min': 123,
                            'max': 123
                        },
                        'osFamily': 'WINDOWS'|'LINUX'|'MACOS',
                        'cpuArchitectureType': 'x86_64'|'arm64',
                        'customAmounts': [
                            {
                                'name': 'string',
                                'min': ...,
                                'max': ...
                            },
                        ],
                        'customAttributes': [
                            {
                                'name': 'string',
                                'values': [
                                    'string',
                                ]
                            },
                        ]
                    },
                    'storageProfileId': 'string'
                },
                'serviceManagedEc2': {
                    'instanceCapabilities': {
                        'vCpuCount': {
                            'min': 123,
                            'max': 123
                        },
                        'memoryMiB': {
                            'min': 123,
                            'max': 123
                        },
                        'osFamily': 'WINDOWS'|'LINUX',
                        'cpuArchitectureType': 'x86_64'|'arm64',
                        'rootEbsVolume': {
                            'sizeGiB': 123,
                            'iops': 123,
                            'throughputMiB': 123
                        },
                        'acceleratorCapabilities': {
                            'selections': [
                                {
                                    'name': 't4'|'a10g'|'l4'|'l40s',
                                    'runtime': 'string'
                                },
                            ],
                            'count': {
                                'min': 123,
                                'max': 123
                            }
                        },
                        'allowedInstanceTypes': [
                            'string',
                        ],
                        'excludedInstanceTypes': [
                            'string',
                        ],
                        'customAmounts': [
                            {
                                'name': 'string',
                                'min': ...,
                                'max': ...
                            },
                        ],
                        'customAttributes': [
                            {
                                'name': 'string',
                                'values': [
                                    'string',
                                ]
                            },
                        ]
                    },
                    'instanceMarketOptions': {
                        'type': 'on-demand'|'spot'
                    }
                }
            },
            'createdAt': datetime(2015, 1, 1),
            'createdBy': 'string',
            'updatedAt': datetime(2015, 1, 1),
            'updatedBy': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • fleets (list) --

      The fleets on the list.

      • (dict) --

        The details of a fleet.

        • fleetId (string) --

          The fleet ID.

        • farmId (string) --

          The farm ID.

        • displayName (string) --

          The display name of the fleet summary to update.

        • status (string) --

          The status of the fleet.

        • autoScalingStatus (string) --

          The Auto Scaling status of a fleet.

        • targetWorkerCount (integer) --

          The target number of workers in a fleet.

        • workerCount (integer) --

          The number of workers in the fleet summary.

        • minWorkerCount (integer) --

          The minimum number of workers in the fleet.

        • maxWorkerCount (integer) --

          The maximum number of workers specified in the fleet.

        • configuration (dict) --

          The configuration details for the fleet.

          • customerManaged (dict) --

            The customer managed fleets within a fleet configuration.

            • mode (string) --

              The Auto Scaling mode for the customer managed fleet configuration.

            • workerCapabilities (dict) --

              The worker capabilities for a customer managed fleet configuration.

              • vCpuCount (dict) --

                The vCPU count for the customer manged worker capabilities.

                • min (integer) --

                  The minimum amount of vCPU.

                • max (integer) --

                  The maximum amount of vCPU.

              • memoryMiB (dict) --

                The memory (MiB).

                • min (integer) --

                  The minimum amount of memory (in MiB).

                • max (integer) --

                  The maximum amount of memory (in MiB).

              • acceleratorTypes (list) --

                The accelerator types for the customer managed worker capabilities.

                • (string) --

              • acceleratorCount (dict) --

                The range of the accelerator.

                • min (integer) --

                  The minimum number of GPUs for the accelerator. If you set the value to 0, a worker will still have 1 GPU.

                • max (integer) --

                  The maximum number of GPUs for the accelerator.

              • acceleratorTotalMemoryMiB (dict) --

                The total memory (MiB) for the customer managed worker capabilities.

                • min (integer) --

                  The minimum amount of memory to use for the accelerator, measured in MiB.

                • max (integer) --

                  The maximum amount of memory to use for the accelerator, measured in MiB.

              • osFamily (string) --

                The operating system (OS) family.

              • cpuArchitectureType (string) --

                The CPU architecture type for the customer managed worker capabilities.

              • customAmounts (list) --

                Custom requirement ranges for customer managed worker capabilities.

                • (dict) --

                  The fleet amount and attribute capabilities.

                  • name (string) --

                    The name of the fleet capability.

                  • min (float) --

                    The minimum amount of fleet worker capability.

                  • max (float) --

                    The maximum amount of the fleet worker capability.

              • customAttributes (list) --

                Custom attributes for the customer manged worker capabilities.

                • (dict) --

                  Defines the fleet's capability name, minimum, and maximum.

                  • name (string) --

                    The name of the fleet attribute capability for the worker.

                  • values (list) --

                    The number of fleet attribute capabilities.

                    • (string) --

            • storageProfileId (string) --

              The storage profile ID.

          • serviceManagedEc2 (dict) --

            The service managed Amazon EC2 instances for a fleet configuration.

            • instanceCapabilities (dict) --

              The Amazon EC2 instance capabilities.

              • vCpuCount (dict) --

                The amount of vCPU to require for instances in this fleet.

                • min (integer) --

                  The minimum amount of vCPU.

                • max (integer) --

                  The maximum amount of vCPU.

              • memoryMiB (dict) --

                The memory, as MiB, for the Amazon EC2 instance type.

                • min (integer) --

                  The minimum amount of memory (in MiB).

                • max (integer) --

                  The maximum amount of memory (in MiB).

              • osFamily (string) --

                The operating system (OS) family.

              • cpuArchitectureType (string) --

                The CPU architecture type.

              • rootEbsVolume (dict) --

                The root EBS volume.

                • sizeGiB (integer) --

                  The EBS volume size in GiB.

                • iops (integer) --

                  The IOPS per volume.

                • throughputMiB (integer) --

                  The throughput per volume in MiB.

              • acceleratorCapabilities (dict) --

                The GPU accelerator capabilities required for the Amazon EC2 instances. If you include the acceleratorCapabilities property in the ServiceManagedEc2InstanceCapabilities object, all of the Amazon EC2 instances will have at least one accelerator.

                • selections (list) --

                  A list of objects that contain the GPU name of the accelerator and driver for the instance types that support the accelerator.

                  • (dict) --

                    Values that you can use to select a particular Amazon EC2 instance type.

                    • name (string) --

                      The name of the GPU accelerator.

                    • runtime (string) --

                      The driver version that the GPU accelerator uses.

                • count (dict) --

                  The number of GPUs on each worker. The default is 1.

                  • min (integer) --

                    The minimum number of GPUs for the accelerator. If you set the value to 0, a worker will still have 1 GPU.

                  • max (integer) --

                    The maximum number of GPUs for the accelerator.

              • allowedInstanceTypes (list) --

                The allowable Amazon EC2 instance types.

                • (string) --

              • excludedInstanceTypes (list) --

                The instance types to exclude from the fleet.

                • (string) --

              • customAmounts (list) --

                The custom capability amounts to require for instances in this fleet.

                • (dict) --

                  The fleet amount and attribute capabilities.

                  • name (string) --

                    The name of the fleet capability.

                  • min (float) --

                    The minimum amount of fleet worker capability.

                  • max (float) --

                    The maximum amount of the fleet worker capability.

              • customAttributes (list) --

                The custom capability attributes to require for instances in this fleet.

                • (dict) --

                  Defines the fleet's capability name, minimum, and maximum.

                  • name (string) --

                    The name of the fleet attribute capability for the worker.

                  • values (list) --

                    The number of fleet attribute capabilities.

                    • (string) --

            • instanceMarketOptions (dict) --

              The Amazon EC2 market type.

              • type (string) --

                The Amazon EC2 instance type.

        • createdAt (datetime) --

          The date and time the resource was created.

        • createdBy (string) --

          The user or system that created this resource.

        • updatedAt (datetime) --

          The date and time the resource was updated.

        • updatedBy (string) --

          The user or system that updated this resource.

    • nextToken (string) --

      If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error.

UpdateFleet (updated) Link ¶
Changes (request)
{'configuration': {'serviceManagedEc2': {'instanceCapabilities': {'acceleratorCapabilities': {'count': {'max': 'integer',
                                                                                                        'min': 'integer'},
                                                                                              'selections': [{'name': 't4 '
                                                                                                                      '| '
                                                                                                                      'a10g '
                                                                                                                      '| '
                                                                                                                      'l4 '
                                                                                                                      '| '
                                                                                                                      'l40s',
                                                                                                              'runtime': 'string'}]}}}}}

Updates a fleet.

See also: AWS API Documentation

Request Syntax

client.update_fleet(
    clientToken='string',
    farmId='string',
    fleetId='string',
    displayName='string',
    description='string',
    roleArn='string',
    minWorkerCount=123,
    maxWorkerCount=123,
    configuration={
        'customerManaged': {
            'mode': 'NO_SCALING'|'EVENT_BASED_AUTO_SCALING',
            'workerCapabilities': {
                'vCpuCount': {
                    'min': 123,
                    'max': 123
                },
                'memoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'acceleratorTypes': [
                    'gpu',
                ],
                'acceleratorCount': {
                    'min': 123,
                    'max': 123
                },
                'acceleratorTotalMemoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'osFamily': 'WINDOWS'|'LINUX'|'MACOS',
                'cpuArchitectureType': 'x86_64'|'arm64',
                'customAmounts': [
                    {
                        'name': 'string',
                        'min': ...,
                        'max': ...
                    },
                ],
                'customAttributes': [
                    {
                        'name': 'string',
                        'values': [
                            'string',
                        ]
                    },
                ]
            },
            'storageProfileId': 'string'
        },
        'serviceManagedEc2': {
            'instanceCapabilities': {
                'vCpuCount': {
                    'min': 123,
                    'max': 123
                },
                'memoryMiB': {
                    'min': 123,
                    'max': 123
                },
                'osFamily': 'WINDOWS'|'LINUX',
                'cpuArchitectureType': 'x86_64'|'arm64',
                'rootEbsVolume': {
                    'sizeGiB': 123,
                    'iops': 123,
                    'throughputMiB': 123
                },
                'acceleratorCapabilities': {
                    'selections': [
                        {
                            'name': 't4'|'a10g'|'l4'|'l40s',
                            'runtime': 'string'
                        },
                    ],
                    'count': {
                        'min': 123,
                        'max': 123
                    }
                },
                'allowedInstanceTypes': [
                    'string',
                ],
                'excludedInstanceTypes': [
                    'string',
                ],
                'customAmounts': [
                    {
                        'name': 'string',
                        'min': ...,
                        'max': ...
                    },
                ],
                'customAttributes': [
                    {
                        'name': 'string',
                        'values': [
                            'string',
                        ]
                    },
                ]
            },
            'instanceMarketOptions': {
                'type': 'on-demand'|'spot'
            }
        }
    }
)
type clientToken:

string

param clientToken:

The unique token which the server uses to recognize retries of the same request.

This field is autopopulated if not provided.

type farmId:

string

param farmId:

[REQUIRED]

The farm ID to update.

type fleetId:

string

param fleetId:

[REQUIRED]

The fleet ID to update.

type displayName:

string

param displayName:

The display name of the fleet to update.

type description:

string

param description:

The description of the fleet to update.

type roleArn:

string

param roleArn:

The IAM role ARN that the fleet's workers assume while running jobs.

type minWorkerCount:

integer

param minWorkerCount:

The minimum number of workers in the fleet.

type maxWorkerCount:

integer

param maxWorkerCount:

The maximum number of workers in the fleet.

type configuration:

dict

param configuration:

The fleet configuration to update.

  • customerManaged (dict) --

    The customer managed fleets within a fleet configuration.

    • mode (string) -- [REQUIRED]

      The Auto Scaling mode for the customer managed fleet configuration.

    • workerCapabilities (dict) -- [REQUIRED]

      The worker capabilities for a customer managed fleet configuration.

      • vCpuCount (dict) -- [REQUIRED]

        The vCPU count for the customer manged worker capabilities.

        • min (integer) -- [REQUIRED]

          The minimum amount of vCPU.

        • max (integer) --

          The maximum amount of vCPU.

      • memoryMiB (dict) -- [REQUIRED]

        The memory (MiB).

        • min (integer) -- [REQUIRED]

          The minimum amount of memory (in MiB).

        • max (integer) --

          The maximum amount of memory (in MiB).

      • acceleratorTypes (list) --

        The accelerator types for the customer managed worker capabilities.

        • (string) --

      • acceleratorCount (dict) --

        The range of the accelerator.

        • min (integer) -- [REQUIRED]

          The minimum number of GPUs for the accelerator. If you set the value to 0, a worker will still have 1 GPU.

        • max (integer) --

          The maximum number of GPUs for the accelerator.

      • acceleratorTotalMemoryMiB (dict) --

        The total memory (MiB) for the customer managed worker capabilities.

        • min (integer) -- [REQUIRED]

          The minimum amount of memory to use for the accelerator, measured in MiB.

        • max (integer) --

          The maximum amount of memory to use for the accelerator, measured in MiB.

      • osFamily (string) -- [REQUIRED]

        The operating system (OS) family.

      • cpuArchitectureType (string) -- [REQUIRED]

        The CPU architecture type for the customer managed worker capabilities.

      • customAmounts (list) --

        Custom requirement ranges for customer managed worker capabilities.

        • (dict) --

          The fleet amount and attribute capabilities.

          • name (string) -- [REQUIRED]

            The name of the fleet capability.

          • min (float) -- [REQUIRED]

            The minimum amount of fleet worker capability.

          • max (float) --

            The maximum amount of the fleet worker capability.

      • customAttributes (list) --

        Custom attributes for the customer manged worker capabilities.

        • (dict) --

          Defines the fleet's capability name, minimum, and maximum.

          • name (string) -- [REQUIRED]

            The name of the fleet attribute capability for the worker.

          • values (list) -- [REQUIRED]

            The number of fleet attribute capabilities.

            • (string) --

    • storageProfileId (string) --

      The storage profile ID.

  • serviceManagedEc2 (dict) --

    The service managed Amazon EC2 instances for a fleet configuration.

    • instanceCapabilities (dict) -- [REQUIRED]

      The Amazon EC2 instance capabilities.

      • vCpuCount (dict) -- [REQUIRED]

        The amount of vCPU to require for instances in this fleet.

        • min (integer) -- [REQUIRED]

          The minimum amount of vCPU.

        • max (integer) --

          The maximum amount of vCPU.

      • memoryMiB (dict) -- [REQUIRED]

        The memory, as MiB, for the Amazon EC2 instance type.

        • min (integer) -- [REQUIRED]

          The minimum amount of memory (in MiB).

        • max (integer) --

          The maximum amount of memory (in MiB).

      • osFamily (string) -- [REQUIRED]

        The operating system (OS) family.

      • cpuArchitectureType (string) -- [REQUIRED]

        The CPU architecture type.

      • rootEbsVolume (dict) --

        The root EBS volume.

        • sizeGiB (integer) --

          The EBS volume size in GiB.

        • iops (integer) --

          The IOPS per volume.

        • throughputMiB (integer) --

          The throughput per volume in MiB.

      • acceleratorCapabilities (dict) --

        The GPU accelerator capabilities required for the Amazon EC2 instances. If you include the acceleratorCapabilities property in the ServiceManagedEc2InstanceCapabilities object, all of the Amazon EC2 instances will have at least one accelerator.

        • selections (list) -- [REQUIRED]

          A list of objects that contain the GPU name of the accelerator and driver for the instance types that support the accelerator.

          • (dict) --

            Values that you can use to select a particular Amazon EC2 instance type.

            • name (string) -- [REQUIRED]

              The name of the GPU accelerator.

            • runtime (string) --

              The driver version that the GPU accelerator uses.

        • count (dict) --

          The number of GPUs on each worker. The default is 1.

          • min (integer) -- [REQUIRED]

            The minimum number of GPUs for the accelerator. If you set the value to 0, a worker will still have 1 GPU.

          • max (integer) --

            The maximum number of GPUs for the accelerator.

      • allowedInstanceTypes (list) --

        The allowable Amazon EC2 instance types.

        • (string) --

      • excludedInstanceTypes (list) --

        The instance types to exclude from the fleet.

        • (string) --

      • customAmounts (list) --

        The custom capability amounts to require for instances in this fleet.

        • (dict) --

          The fleet amount and attribute capabilities.

          • name (string) -- [REQUIRED]

            The name of the fleet capability.

          • min (float) -- [REQUIRED]

            The minimum amount of fleet worker capability.

          • max (float) --

            The maximum amount of the fleet worker capability.

      • customAttributes (list) --

        The custom capability attributes to require for instances in this fleet.

        • (dict) --

          Defines the fleet's capability name, minimum, and maximum.

          • name (string) -- [REQUIRED]

            The name of the fleet attribute capability for the worker.

          • values (list) -- [REQUIRED]

            The number of fleet attribute capabilities.

            • (string) --

    • instanceMarketOptions (dict) -- [REQUIRED]

      The Amazon EC2 market type.

      • type (string) -- [REQUIRED]

        The Amazon EC2 instance type.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --