Class CfnHostProps
Properties for defining a CfnHost
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnHostProps : ICfnHostProps
Syntax (vb)
Public Class CfnHostProps 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",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnHostProps() | Properties for defining a |
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. |
Tags | Any tags assigned to the Dedicated Host. |
Constructors
CfnHostProps()
Properties for defining a CfnHost
.
public CfnHostProps()
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",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
AssetId
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
public string? AssetId { get; set; }
Property Value
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
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
Remarks
HostMaintenance
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
public string? HostMaintenance { get; set; }
Property Value
Remarks
HostRecovery
Indicates whether to enable or disable host recovery for the Dedicated Host.
public string? HostRecovery { get; set; }
Property Value
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
Remarks
InstanceType
Specifies the instance type to be supported by the Dedicated Hosts.
public string? InstanceType { get; set; }
Property Value
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
Remarks
Tags
Any tags assigned to the Dedicated Host.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]