interface InstanceConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppRunner.CfnService.InstanceConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapprunner#CfnService_InstanceConfigurationProperty |
![]() | software.amazon.awscdk.services.apprunner.CfnService.InstanceConfigurationProperty |
![]() | aws_cdk.aws_apprunner.CfnService.InstanceConfigurationProperty |
![]() | 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
Name | Type | Description |
---|---|---|
cpu? | string | The number of CPU units reserved for each instance of your App Runner service. |
instance | string | The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service. |
memory? | string | The 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