InitialCapacityConfigKeyValuePairProperty Struct
| 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 initialCapacityConfigKeyValuePairProperty: emrserverless.CfnApplication.InitialCapacityConfigKeyValuePairProperty = {
key: 'key',
value: {
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_key_value_pair_property = emrserverless.CfnApplication.InitialCapacityConfigKeyValuePairProperty(
key="key",
value=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.*;
InitialCapacityConfigKeyValuePairProperty initialCapacityConfigKeyValuePairProperty = InitialCapacityConfigKeyValuePairProperty.builder()
.key("key")
.value(InitialCapacityConfigProperty.builder()
.workerConfiguration(WorkerConfigurationProperty.builder()
.cpu("cpu")
.memory("memory")
// the properties below are optional
.disk("disk")
.diskType("diskType")
.build())
.workerCount(123)
.build())
.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 initialCapacityConfigKeyValuePairProperty = new InitialCapacityConfigKeyValuePairProperty {
Key = "key",
Value = 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"
initialCapacityConfigKeyValuePairProperty := &InitialCapacityConfigKeyValuePairProperty{
Key: jsii.String("key"),
Value: &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
Worker type for an analytics framework.
valueIResolvable | CfnApplication.valuetyping.Union[IResolvable, InitialCapacityConfigProperty]valueIResolvableValueIResolvableValueinterface{} required #