HostInfoForCreateProperty Struct
An object that represents a host.
You cannot use
dedicatedHostIdandplacementGroupIdtogether in the sameHostInfoForCreateobject. This results in aValidationExceptionresponse.
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_evs as evs
host_info_for_create_property = evs.CfnEnvironment.HostInfoForCreateProperty(
host_name="hostName",
instance_type="instanceType",
key_name="keyName",
# the properties below are optional
dedicated_host_id="dedicatedHostId",
placement_group_id="placementGroupId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.evs.*;
HostInfoForCreateProperty hostInfoForCreateProperty = HostInfoForCreateProperty.builder()
.hostName("hostName")
.instanceType("instanceType")
.keyName("keyName")
// the properties below are optional
.dedicatedHostId("dedicatedHostId")
.placementGroupId("placementGroupId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EVS;
var hostInfoForCreateProperty = new HostInfoForCreateProperty {
HostName = "hostName",
InstanceType = "instanceType",
KeyName = "keyName",
// the properties below are optional
DedicatedHostId = "dedicatedHostId",
PlacementGroupId = "placementGroupId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
hostInfoForCreateProperty := &HostInfoForCreateProperty{
HostName: jsii.String("hostName"),
InstanceType: jsii.String("instanceType"),
KeyName: jsii.String("keyName"),
// the properties below are optional
DedicatedHostId: jsii.String("dedicatedHostId"),
PlacementGroupId: jsii.String("placementGroupId"),
}
Properties
dedicatedHostIdoptionalstringdedicated_host_idoptionalstrdedicatedHostIdoptionalStringDedicatedHostIdoptionalstringDedicatedHostIdoptional*string #The unique ID of the Amazon EC2 Dedicated Host.
The DNS hostname of the host.
DNS hostnames for hosts must be unique across Amazon EVS environments and within VCF.
instanceTypestringinstance_typestrinstanceTypeStringInstanceTypestringInstanceType*string required #The EC2 instance type that represents the host.
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.