Show / Hide Table of Contents

Interface CfnInstancePropsMixin.IHardwareProperty

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.

Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Lightsail
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface CfnInstancePropsMixin.IHardwareProperty
Syntax (vb)
Public Interface 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

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 ).

Properties

CpuCount

The number of vCPUs the instance has.

double? CpuCount { get; }
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.

object? Disks { get; }
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 ).

double? RamSizeInGb { get; }
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

Back to top Generated by DocFX