/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.apprunner.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the basic configuration needed for building and running an App Runner service. This type doesn't support
* the full set of possible configuration options. Fur full configuration capabilities, use a
* apprunner.yaml
file in the source code repository.
*
* A runtime environment type for building and running an App Runner service. It represents a programming language * runtime. *
*/ private String runtime; /** ** The command App Runner runs to build your application. *
*/ private String buildCommand; /** ** The command App Runner runs to start your application. *
*/ private String startCommand; /** ** The port that your application listens to in the container. *
*
* Default: 8080
*
* The environment variables that are available to your running App Runner service. An array of key-value pairs. *
*/ private java.util.Map* 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 Secrets Manager * secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store. *
** If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services * 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 Amazon Web Services Systems Manager Parameter Store parameter is not * supported. *
** A runtime environment type for building and running an App Runner service. It represents a programming language * runtime. *
* * @param runtime * A runtime environment type for building and running an App Runner service. It represents a programming * language runtime. * @see Runtime */ public void setRuntime(String runtime) { this.runtime = runtime; } /** ** A runtime environment type for building and running an App Runner service. It represents a programming language * runtime. *
* * @return A runtime environment type for building and running an App Runner service. It represents a programming * language runtime. * @see Runtime */ public String getRuntime() { return this.runtime; } /** ** A runtime environment type for building and running an App Runner service. It represents a programming language * runtime. *
* * @param runtime * A runtime environment type for building and running an App Runner service. It represents a programming * language runtime. * @return Returns a reference to this object so that method calls can be chained together. * @see Runtime */ public CodeConfigurationValues withRuntime(String runtime) { setRuntime(runtime); return this; } /** ** A runtime environment type for building and running an App Runner service. It represents a programming language * runtime. *
* * @param runtime * A runtime environment type for building and running an App Runner service. It represents a programming * language runtime. * @return Returns a reference to this object so that method calls can be chained together. * @see Runtime */ public CodeConfigurationValues withRuntime(Runtime runtime) { this.runtime = runtime.toString(); return this; } /** ** The command App Runner runs to build your application. *
* * @param buildCommand * The command App Runner runs to build your application. */ public void setBuildCommand(String buildCommand) { this.buildCommand = buildCommand; } /** ** The command App Runner runs to build your application. *
* * @return The command App Runner runs to build your application. */ public String getBuildCommand() { return this.buildCommand; } /** ** The command App Runner runs to build your application. *
* * @param buildCommand * The command App Runner runs to build your application. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeConfigurationValues withBuildCommand(String buildCommand) { setBuildCommand(buildCommand); return this; } /** ** The command App Runner runs to start your application. *
* * @param startCommand * The command App Runner runs to start your application. */ public void setStartCommand(String startCommand) { this.startCommand = startCommand; } /** ** The command App Runner runs to start your application. *
* * @return The command App Runner runs to start your application. */ public String getStartCommand() { return this.startCommand; } /** ** The command App Runner runs to start your application. *
* * @param startCommand * The command App Runner runs to start your application. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeConfigurationValues withStartCommand(String startCommand) { setStartCommand(startCommand); return this; } /** ** The port that your application listens to in the container. *
*
* Default: 8080
*
* Default: 8080
*/
public void setPort(String port) {
this.port = port;
}
/**
*
* The port that your application listens to in the container. *
*
* Default: 8080
*
* Default: 8080
*/
public String getPort() {
return this.port;
}
/**
*
* The port that your application listens to in the container. *
*
* Default: 8080
*
* Default: 8080
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CodeConfigurationValues withPort(String port) {
setPort(port);
return this;
}
/**
*
* The environment variables that are available to your running App Runner service. An array of key-value pairs. *
* * @return The environment variables that are available to your running App Runner service. An array of key-value * pairs. */ public java.util.Map* The environment variables that are available to your running App Runner service. An array of key-value pairs. *
* * @param runtimeEnvironmentVariables * The environment variables that are available to your running App Runner service. An array of key-value * pairs. */ public void setRuntimeEnvironmentVariables(java.util.Map* The environment variables that are available to your running App Runner service. An array of key-value pairs. *
* * @param runtimeEnvironmentVariables * The environment variables that are available to your running App Runner service. An array of key-value * pairs. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeConfigurationValues withRuntimeEnvironmentVariables(java.util.Map* 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 Secrets Manager * secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store. *
** If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services * 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 Amazon Web Services Systems Manager Parameter Store parameter is not * supported. *
** If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web * Services 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 Amazon Web Services Systems Manager Parameter Store parameter is * not supported. *
** 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 Secrets Manager * secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store. *
** If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services * 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 Amazon Web Services Systems Manager Parameter Store parameter is not * supported. *
** If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web * Services 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 Amazon Web Services Systems Manager Parameter Store parameter is * not supported. *
** 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 Secrets Manager * secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store. *
** If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services * 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 Amazon Web Services Systems Manager Parameter Store parameter is not * supported. *
** If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web * Services 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 Amazon Web Services Systems Manager Parameter Store parameter is * not supported. *
*