aws-cdk-lib.aws_lightsail.CfnInstance.HardwareProperty

interface HardwareProperty

LanguageType name
.NETAmazon.CDK.AWS.Lightsail.CfnInstance.HardwareProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnInstance_HardwareProperty
Javasoftware.amazon.awscdk.services.lightsail.CfnInstance.HardwareProperty
Pythonaws_cdk.aws_lightsail.CfnInstance.HardwareProperty
TypeScript aws-cdk-lib » aws_lightsail » CfnInstance » 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.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const hardwareProperty: lightsail.CfnInstance.HardwareProperty = {
  cpuCount: 123,
  disks: [{
    diskName: 'diskName',
    path: 'path',

    // the properties below are optional
    attachedTo: 'attachedTo',
    attachmentState: 'attachmentState',
    iops: 123,
    isSystemDisk: false,
    sizeInGb: 'sizeInGb',
  }],
  ramSizeInGb: 123,
};

Properties

NameTypeDescription
cpuCount?numberThe number of vCPUs the instance has.
disks?IResolvable | IResolvable | DiskProperty[]The disks attached to the instance.
ramSizeInGb?numberThe amount of RAM in GB on the instance (for example, 1.0 ).

cpuCount?

Type: number (optional)

The number of vCPUs the instance has.

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


disks?

Type: IResolvable | IResolvable | DiskProperty[] (optional)

The disks attached to the instance.

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.


ramSizeInGb?

Type: number (optional)

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

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