Interface CfnService.InstanceConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.InstanceConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.InstanceConfigurationProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.apprunner.*;
 InstanceConfigurationProperty instanceConfigurationProperty = InstanceConfigurationProperty.builder()
         .cpu("cpu")
         .instanceRoleArn("instanceRoleArn")
         .memory("memory")
         .build();
 
  • Method Details

    • getCpu

      @Stability(Stable) @Nullable default String getCpu()
      The number of CPU units reserved for each instance of your App Runner service.

      Default: 1 vCPU

    • getInstanceRoleArn

      @Stability(Stable) @Nullable default String getInstanceRoleArn()
      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.

    • getMemory

      @Stability(Stable) @Nullable default String getMemory()
      The amount of memory, in MB or GB, reserved for each instance of your App Runner service.

      Default: 2 GB

    • builder

      @Stability(Stable) static CfnService.InstanceConfigurationProperty.Builder builder()
      Returns:
      a CfnService.InstanceConfigurationProperty.Builder of CfnService.InstanceConfigurationProperty