Class CfnHostProps
Properties for defining a CfnHost
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnHostProps : Object, ICfnHostProps
Syntax (vb)
Public Class CfnHostProps
Inherits Object
Implements ICfnHostProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnHostProps = new CfnHostProps {
AvailabilityZone = "availabilityZone",
// the properties below are optional
AssetId = "assetId",
AutoPlacement = "autoPlacement",
HostMaintenance = "hostMaintenance",
HostRecovery = "hostRecovery",
InstanceFamily = "instanceFamily",
InstanceType = "instanceType",
OutpostArn = "outpostArn"
};
Synopsis
Constructors
CfnHostProps() |
Properties
AssetId | The ID of the Outpost hardware asset on which the Dedicated Host is allocated. |
AutoPlacement | Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID. |
AvailabilityZone | The Availability Zone in which to allocate the Dedicated Host. |
HostMaintenance | Indicates whether host maintenance is enabled or disabled for the Dedicated Host. |
HostRecovery | Indicates whether to enable or disable host recovery for the Dedicated Host. |
InstanceFamily | The instance family supported by the Dedicated Host. |
InstanceType | Specifies the instance type to be supported by the Dedicated Hosts. |
OutpostArn | The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated. |
Constructors
CfnHostProps()
public CfnHostProps()
Properties
AssetId
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
public string AssetId { get; set; }
Property Value
System.String
Remarks
AutoPlacement
Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.
public string AutoPlacement { get; set; }
Property Value
System.String
Remarks
For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide .
Default: off
AvailabilityZone
The Availability Zone in which to allocate the Dedicated Host.
public string AvailabilityZone { get; set; }
Property Value
System.String
Remarks
HostMaintenance
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
public string HostMaintenance { get; set; }
Property Value
System.String
Remarks
HostRecovery
Indicates whether to enable or disable host recovery for the Dedicated Host.
public string HostRecovery { get; set; }
Property Value
System.String
Remarks
Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide .
Default: off
InstanceFamily
The instance family supported by the Dedicated Host.
public string InstanceFamily { get; set; }
Property Value
System.String
Remarks
InstanceType
Specifies the instance type to be supported by the Dedicated Hosts.
public string InstanceType { get; set; }
Property Value
System.String
Remarks
If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.
OutpostArn
The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.
public string OutpostArn { get; set; }
Property Value
System.String