# InstanceConfigurationProperty

Describes the runtime configuration of an AWS App Runner service instance (scaling unit).

- 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_apprunner as apprunner } from 'aws-cdk-lib';
const instanceConfigurationProperty: apprunner.CfnService.InstanceConfigurationProperty = {
  cpu: 'cpu',
  instanceRoleArn: 'instanceRoleArn',
  memory: 'memory',
};
```

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_apprunner as apprunner

instance_configuration_property = apprunner.CfnService.InstanceConfigurationProperty(
    cpu="cpu",
    instance_role_arn="instanceRoleArn",
    memory="memory"
)
```

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.apprunner.*;

InstanceConfigurationProperty instanceConfigurationProperty = InstanceConfigurationProperty.builder()
        .cpu("cpu")
        .instanceRoleArn("instanceRoleArn")
        .memory("memory")
        .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.AppRunner;

var instanceConfigurationProperty = new InstanceConfigurationProperty {
    Cpu = "cpu",
    InstanceRoleArn = "instanceRoleArn",
    Memory = "memory"
};
```

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"

instanceConfigurationProperty := &InstanceConfigurationProperty{
	Cpu: jsii.String("cpu"),
	InstanceRoleArn: jsii.String("instanceRoleArn"),
	Memory: jsii.String("memory"),
}
```

## Properties

- `cpu`: string — The number of CPU units reserved for each instance of your App Runner service.

  Default: `1 vCPU`

- `instanceRoleArn`: string — The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service.

  These are permissions that your code needs when it calls any AWS APIs.

- `memory`: string — The amount of memory, in MB or GB, reserved for each instance of your App Runner service.

  Default: `2 GB`
