Class CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apprunner.CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.CodeConfigurationValuesProperty>
- Enclosing interface:
CfnServicePropsMixin.CodeConfigurationValuesProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.CodeConfigurationValuesProperty>
A builder for
CfnServicePropsMixin.CodeConfigurationValuesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.buildCommand(String buildCommand) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getBuildCommand()Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getPort()Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getRuntime()runtimeEnvironmentSecrets(List<? extends Object> runtimeEnvironmentSecrets) runtimeEnvironmentSecrets(IResolvable runtimeEnvironmentSecrets) runtimeEnvironmentVariables(List<? extends Object> runtimeEnvironmentVariables) runtimeEnvironmentVariables(IResolvable runtimeEnvironmentVariables) startCommand(String startCommand) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getStartCommand()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
buildCommand
@Stability(Stable) public CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder buildCommand(String buildCommand) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getBuildCommand()- Parameters:
buildCommand- The command App Runner runs to build your application.- Returns:
this
-
port
@Stability(Stable) public CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder port(String port) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getPort()- Parameters:
port- The port that your application listens to in the container. Default:8080- Returns:
this
-
runtime
@Stability(Stable) public CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder runtime(String runtime) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getRuntime()- Parameters:
runtime- A runtime environment type for building and running an App Runner service. It represents a programming language runtime.- Returns:
this
-
runtimeEnvironmentSecrets
@Stability(Stable) public CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder runtimeEnvironmentSecrets(IResolvable runtimeEnvironmentSecrets) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getRuntimeEnvironmentSecrets()- Parameters:
runtimeEnvironmentSecrets- An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable. The supported values are either the full Amazon Resource Name (ARN) of the AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.- If the AWS Systems Manager Parameter Store parameter exists in the same AWS Region as the service that you're launching, you can use either the full ARN or name of the secret. If the parameter exists in a different Region, then the full ARN must be specified.
- Currently, cross account referencing of AWS Systems Manager Parameter Store parameter is not supported.
- Returns:
this
-
runtimeEnvironmentSecrets
@Stability(Stable) public CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder runtimeEnvironmentSecrets(List<? extends Object> runtimeEnvironmentSecrets) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getRuntimeEnvironmentSecrets()- Parameters:
runtimeEnvironmentSecrets- An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable. The supported values are either the full Amazon Resource Name (ARN) of the AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.- If the AWS Systems Manager Parameter Store parameter exists in the same AWS Region as the service that you're launching, you can use either the full ARN or name of the secret. If the parameter exists in a different Region, then the full ARN must be specified.
- Currently, cross account referencing of AWS Systems Manager Parameter Store parameter is not supported.
- Returns:
this
-
runtimeEnvironmentVariables
@Stability(Stable) public CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder runtimeEnvironmentVariables(IResolvable runtimeEnvironmentVariables) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getRuntimeEnvironmentVariables()- Parameters:
runtimeEnvironmentVariables- The environment variables that are available to your running AWS App Runner service. An array of key-value pairs.- Returns:
this
-
runtimeEnvironmentVariables
@Stability(Stable) public CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder runtimeEnvironmentVariables(List<? extends Object> runtimeEnvironmentVariables) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getRuntimeEnvironmentVariables()- Parameters:
runtimeEnvironmentVariables- The environment variables that are available to your running AWS App Runner service. An array of key-value pairs.- Returns:
this
-
startCommand
@Stability(Stable) public CfnServicePropsMixin.CodeConfigurationValuesProperty.Builder startCommand(String startCommand) Sets the value ofCfnServicePropsMixin.CodeConfigurationValuesProperty.getStartCommand()- Parameters:
startCommand- The command App Runner runs to start your application.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.CodeConfigurationValuesProperty>- Returns:
- a new instance of
CfnServicePropsMixin.CodeConfigurationValuesProperty - Throws:
NullPointerException- if any required attribute was not provided
-