InitialCapacityConfigProperty Struct
The initial capacity configuration per worker.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emrserverless as emrserverless } from 'aws-cdk-lib';
const initialCapacityConfigProperty: emrserverless.CfnApplication.InitialCapacityConfigProperty = {
workerConfiguration: {
cpu: 'cpu',
memory: 'memory',
// the properties below are optional
disk: 'disk',
diskType: 'diskType',
},
workerCount: 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_emrserverless as emrserverless
initial_capacity_config_property = emrserverless.CfnApplication.InitialCapacityConfigProperty(
worker_configuration=emrserverless.CfnApplication.WorkerConfigurationProperty(
cpu="cpu",
memory="memory",
# the properties below are optional
disk="disk",
disk_type="diskType"
),
worker_count=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.emrserverless.*;
InitialCapacityConfigProperty initialCapacityConfigProperty = InitialCapacityConfigProperty.builder()
.workerConfiguration(WorkerConfigurationProperty.builder()
.cpu("cpu")
.memory("memory")
// the properties below are optional
.disk("disk")
.diskType("diskType")
.build())
.workerCount(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.EMRServerless;
var initialCapacityConfigProperty = new InitialCapacityConfigProperty {
WorkerConfiguration = new WorkerConfigurationProperty {
Cpu = "cpu",
Memory = "memory",
// the properties below are optional
Disk = "disk",
DiskType = "diskType"
},
WorkerCount = 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"
initialCapacityConfigProperty := &InitialCapacityConfigProperty{
WorkerConfiguration: &WorkerConfigurationProperty{
Cpu: jsii.String("cpu"),
Memory: jsii.String("memory"),
// the properties below are optional
Disk: jsii.String("disk"),
DiskType: jsii.String("diskType"),
},
WorkerCount: jsii.Number(123),
}
Properties
workerConfigurationIResolvable | CfnApplication.worker_configurationtyping.Union[IResolvable, WorkerConfigurationProperty]workerConfigurationIResolvableWorkerConfigurationIResolvableWorkerConfigurationinterface{} required #The resource configuration of the initial capacity configuration.
workerCountnumberworker_countint | floatworkerCountNumberWorkerCountdoubleWorkerCount*float64 required #The number of workers in the initial capacity configuration.