aws-cdk-lib.aws_apprunner.CfnService.InstanceConfigurationProperty

interface InstanceConfigurationProperty

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.CfnService.InstanceConfigurationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapprunner#CfnService_InstanceConfigurationProperty
Javasoftware.amazon.awscdk.services.apprunner.CfnService.InstanceConfigurationProperty
Pythonaws_cdk.aws_apprunner.CfnService.InstanceConfigurationProperty
TypeScript aws-cdk-lib » aws_apprunner » CfnService » InstanceConfigurationProperty

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

Example

// 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',
};

Properties

NameTypeDescription
cpu?stringThe number of CPU units reserved for each instance of your App Runner service.
instanceRoleArn?stringThe Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service.
memory?stringThe amount of memory, in MB or GB, reserved for each instance of your App Runner service.

cpu?

Type: string (optional)

The number of CPU units reserved for each instance of your App Runner service.

Default: 1 vCPU


instanceRoleArn?

Type: string (optional)

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?

Type: string (optional)

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

Default: 2 GB