Skip to content
v2.275.0

HostInfoForCreateProperty Struct ​

An object that represents a host.

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

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 ​

dedicatedHostIdoptionalstringdedicated_host_idoptionalstrdedicatedHostIdoptionalStringDedicatedHostIdoptionalstringDedicatedHostIdoptional*string#
The unique ID of the Amazon EC2 Dedicated Host.
hostNamestringhost_namestrhostNameStringHostNamestringHostName*stringrequired#
The DNS hostname of the host.

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

instanceTypestringinstance_typestrinstanceTypeStringInstanceTypestringInstanceType*stringrequired#
The EC2 instance type that represents the host.
keyNamestringkey_namestrkeyNameStringKeyNamestringKeyName*stringrequired#
The name of the SSH key that is used to access the host.
placementGroupIdoptionalstringplacement_group_idoptionalstrplacementGroupIdoptionalStringPlacementGroupIdoptionalstringPlacementGroupIdoptional*string#
The unique ID of the placement group where the host is placed.