Skip to content
v2.278.0

InstanceConfigurationProperty Struct ​

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

Example ​

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
# 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
// 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();
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"
};
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 ​

cpuoptionalstringcpuoptionalstrcpuoptionalStringCpuoptionalstringCpuoptional*string #
The number of CPU units reserved for each instance of your App Runner service.

Default: 1 vCPU

instanceRoleArnoptionalstringinstance_role_arnoptionalstrinstanceRoleArnoptionalStringInstanceRoleArnoptionalstringInstanceRoleArnoptional*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.

memoryoptionalstringmemoryoptionalstrmemoryoptionalStringMemoryoptionalstringMemoryoptional*string #
The amount of memory, in MB or GB, reserved for each instance of your App Runner service.

Default: 2 GB