Show / Hide Table of Contents

Class CfnInstancePropsMixin.HardwareProperty

Hardware is a property of the AWS::Lightsail::Instance resource. It describes the hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.

Inheritance
object
CfnInstancePropsMixin.HardwareProperty
Implements
CfnInstancePropsMixin.IHardwareProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Lightsail
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnInstancePropsMixin.HardwareProperty : CfnInstancePropsMixin.IHardwareProperty
Syntax (vb)
Public Class CfnInstancePropsMixin.HardwareProperty Implements CfnInstancePropsMixin.IHardwareProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-hardware.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.CfnPropertyMixins.AWS.Lightsail;

             var hardwareProperty = new HardwareProperty {
                 CpuCount = 123,
                 Disks = new [] { new DiskProperty {
                     AttachedTo = "attachedTo",
                     AttachmentState = "attachmentState",
                     DiskName = "diskName",
                     Iops = 123,
                     IsSystemDisk = false,
                     Path = "path",
                     SizeInGb = "sizeInGb"
                 } },
                 RamSizeInGb = 123
             };

Synopsis

Constructors

HardwareProperty()

Hardware is a property of the AWS::Lightsail::Instance resource. It describes the hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.

Properties

CpuCount

The number of vCPUs the instance has.

Disks

The disks attached to the instance.

RamSizeInGb

The amount of RAM in GB on the instance (for example, 1.0 ).

Constructors

HardwareProperty()

Hardware is a property of the AWS::Lightsail::Instance resource. It describes the hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.

public HardwareProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-hardware.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.CfnPropertyMixins.AWS.Lightsail;

             var hardwareProperty = new HardwareProperty {
                 CpuCount = 123,
                 Disks = new [] { new DiskProperty {
                     AttachedTo = "attachedTo",
                     AttachmentState = "attachmentState",
                     DiskName = "diskName",
                     Iops = 123,
                     IsSystemDisk = false,
                     Path = "path",
                     SizeInGb = "sizeInGb"
                 } },
                 RamSizeInGb = 123
             };

Properties

CpuCount

The number of vCPUs the instance has.

public double? CpuCount { get; set; }
Property Value

double?

Remarks
The <code>CpuCount</code> property is read-only and should not be specified in a create instance or update instance request.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-hardware.html#cfn-lightsail-instance-hardware-cpucount

Disks

The disks attached to the instance.

public object? Disks { get; set; }
Property Value

object

Remarks

The instance restarts when performing an attach disk or detach disk request. This resets the public IP address of your instance if a static IP isn't attached to it.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-hardware.html#cfn-lightsail-instance-hardware-disks

Type union: either IResolvable or (either IResolvable or CfnInstancePropsMixin.IDiskProperty)[]

RamSizeInGb

The amount of RAM in GB on the instance (for example, 1.0 ).

public double? RamSizeInGb { get; set; }
Property Value

double?

Remarks
The <code>RamSizeInGb</code> property is read-only and should not be specified in a create instance or update instance request.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-instance-hardware.html#cfn-lightsail-instance-hardware-ramsizeingb

Implements

CfnInstancePropsMixin.IHardwareProperty
Back to top Generated by DocFX