Show / Hide Table of Contents

Class CfnHostProps

Properties for defining a CfnHost.

Inheritance
object
CfnHostProps
Implements
ICfnHostProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 CfnHost.

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

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-assetid

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

string

Remarks

For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide .

Default: off

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-autoplacement

AvailabilityZone

The Availability Zone in which to allocate the Dedicated Host.

public string AvailabilityZone { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-availabilityzone

HostMaintenance

Indicates whether host maintenance is enabled or disabled for the Dedicated Host.

public string? HostMaintenance { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-hostmaintenance

HostRecovery

Indicates whether to enable or disable host recovery for the Dedicated Host.

public string? HostRecovery { get; set; }
Property Value

string

Remarks

Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide .

Default: off

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-hostrecovery

InstanceFamily

The instance family supported by the Dedicated Host.

public string? InstanceFamily { get; set; }
Property Value

string

Remarks

For example, m5 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-instancefamily

InstanceType

Specifies the instance type to be supported by the Dedicated Hosts.

public string? InstanceType { get; set; }
Property Value

string

Remarks

If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-instancetype

OutpostArn

The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.

public string? OutpostArn { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-outpostarn

Tags

Any tags assigned to the Dedicated Host.

public ICfnTag[]? Tags { get; set; }
Property Value

ICfnTag[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-tags

Implements

ICfnHostProps
Back to top Generated by DocFX