Class CfnService.InstanceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.InstanceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.InstanceConfigurationProperty>
- Enclosing interface:
CfnService.InstanceConfigurationProperty
@Stability(Stable)
public static final class CfnService.InstanceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.InstanceConfigurationProperty>
A builder for
CfnService.InstanceConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnService.InstanceConfigurationProperty.getCpu()
instanceRoleArn
(String instanceRoleArn) Sets the value ofCfnService.InstanceConfigurationProperty.getInstanceRoleArn()
Sets the value ofCfnService.InstanceConfigurationProperty.getMemory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpu
Sets the value ofCfnService.InstanceConfigurationProperty.getCpu()
- Parameters:
cpu
- The number of CPU units reserved for each instance of your App Runner service. Default:1 vCPU
- Returns:
this
-
instanceRoleArn
@Stability(Stable) public CfnService.InstanceConfigurationProperty.Builder instanceRoleArn(String instanceRoleArn) Sets the value ofCfnService.InstanceConfigurationProperty.getInstanceRoleArn()
- Parameters:
instanceRoleArn
- 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.- Returns:
this
-
memory
Sets the value ofCfnService.InstanceConfigurationProperty.getMemory()
- Parameters:
memory
- The amount of memory, in MB or GB, reserved for each instance of your App Runner service. Default:2 GB
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.InstanceConfigurationProperty>
- Returns:
- a new instance of
CfnService.InstanceConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-