# InitialCapacityConfigKeyValuePairProperty

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    }
};
```

Golang:

```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

- `key`: string (required) — Worker type for an analytics framework.

- `value`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.InitialCapacityConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_emrserverless.CfnApplication.InitialCapacityConfigProperty.html) (required)
