# InitialCapacityConfigProperty

The initial capacity configuration per worker.

- 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 initialCapacityConfigProperty: emrserverless.CfnApplication.InitialCapacityConfigProperty = {
  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_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:

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

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 initialCapacityConfigProperty = 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"

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

- `workerConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.WorkerConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_emrserverless.CfnApplication.WorkerConfigurationProperty.html) (required) — The resource configuration of the initial capacity configuration.

- `workerCount`: number (required) — The number of workers in the initial capacity configuration.
