# HostInfoForCreateProperty

An object that represents a host.

> You cannot use `dedicatedHostId` and `placementGroupId` together in the same `HostInfoForCreate` object. This results in a `ValidationException` response.

- Source: Generated code
- Type last changed: v2.201.0 · 13 Jun 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_evs as evs } from 'aws-cdk-lib';
const hostInfoForCreateProperty: evs.CfnEnvironment.HostInfoForCreateProperty = {
  hostName: 'hostName',
  instanceType: 'instanceType',
  keyName: 'keyName',

  // the properties below are optional
  dedicatedHostId: 'dedicatedHostId',
  placementGroupId: 'placementGroupId',
};
```

## Properties

- `dedicatedHostId`: string — The unique ID of the Amazon EC2 Dedicated Host.

- `hostName`: string (required) — The DNS hostname of the host.

  DNS hostnames for hosts must be unique across Amazon EVS environments and within VCF.

- `instanceType`: string (required) — The EC2 instance type that represents the host.

- `keyName`: string (required) — The name of the SSH key that is used to access the host.

- `placementGroupId`: string — The unique ID of the placement group where the host is placed.
