interface HardwareProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins.CfnInstancePropsMixin.HardwareProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslightsail/mixins#CfnInstancePropsMixin_HardwareProperty |
Java | software.amazon.awscdk.mixins.preview.services.lightsail.mixins.CfnInstancePropsMixin.HardwareProperty |
Python | aws_cdk.mixins_preview.aws_lightsail.mixins.CfnInstancePropsMixin.HardwareProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lightsail » mixins » 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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lightsail_mixins } from '@aws-cdk/mixins-preview/aws-lightsail';
const hardwareProperty: lightsail_mixins.CfnInstancePropsMixin.HardwareProperty = {
cpuCount: 123,
disks: [{
attachedTo: 'attachedTo',
attachmentState: 'attachmentState',
diskName: 'diskName',
iops: 123,
isSystemDisk: false,
path: 'path',
sizeInGb: 'sizeInGb',
}],
ramSizeInGb: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| cpu | number | The number of vCPUs the instance has. |
| disks? | IResolvable | (IResolvable | Disk)[] | The disks attached to the instance. |
| ram | number | The amount of RAM in GB on the instance (for example, 1.0 ). |
cpuCount?
Type:
number
(optional)
The number of vCPUs the instance has.
The
CpuCountproperty is read-only and should not be specified in a create instance or update instance request.
disks?
Type:
IResolvable | (IResolvable | Disk)[]
(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
RamSizeInGbproperty is read-only and should not be specified in a create instance or update instance request.

.NET
Go
Java
Python
TypeScript