Skip to content
v2.277.0

CpuOptionsRequestProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_workspacesinstances as workspacesinstances } from 'aws-cdk-lib';
const cpuOptionsRequestProperty: workspacesinstances.CfnWorkspaceInstance.CpuOptionsRequestProperty = {
  coreCount: 123,
  threadsPerCore: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_workspacesinstances as workspacesinstances

cpu_options_request_property = workspacesinstances.CfnWorkspaceInstance.CpuOptionsRequestProperty(
    core_count=123,
    threads_per_core=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.workspacesinstances.*;

CpuOptionsRequestProperty cpuOptionsRequestProperty = CpuOptionsRequestProperty.builder()
        .coreCount(123)
        .threadsPerCore(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WorkspacesInstances;

var cpuOptionsRequestProperty = new CpuOptionsRequestProperty {
    CoreCount = 123,
    ThreadsPerCore = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cpuOptionsRequestProperty := &CpuOptionsRequestProperty{
	CoreCount: jsii.Number(123),
	ThreadsPerCore: jsii.Number(123),
}

Properties ​

coreCountoptionalnumbercore_countoptionalint | floatcoreCountoptionalNumberCoreCountoptionaldoubleCoreCountoptional*float64 #
threadsPerCoreoptionalnumberthreads_per_coreoptionalint | floatthreadsPerCoreoptionalNumberThreadsPerCoreoptionaldoubleThreadsPerCoreoptional*float64 #