# CfnWorkerProps

Properties for defining a `CfnWorker`.

Extends: CfnWorkerProps
Used as props by: CfnWorker

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## 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 cfnWorkerProps: deadline.CfnWorkerProps = {
  farmId: 'farmId',
  fleetId: 'fleetId',

  // the properties below are optional
  hostProperties: {
    hostName: 'hostName',
    ipAddresses: {
      ipV4Addresses: ['ipV4Addresses'],
      ipV6Addresses: ['ipV6Addresses'],
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `farmId`: string (required) — The farm ID.

- `fleetId`: string (required) — The fleet ID.

- `hostProperties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorker.HostPropertiesRequestProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_deadline.CfnWorker.HostPropertiesRequestProperty.html) — The host property details.

- `tags`: [CfnWorker.TagsItemsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_deadline.CfnWorker.TagsItemsProperty.html)[] — An array of key-value pairs to apply to this resource.
