/* * 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 configuration that App Runner uses to run an App Runner service using an image pulled from a source * image repository. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ImageConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** Environment variables that are available to your running App Runner service. An array of key-value pairs. *
*/ private java.util.Map* An optional command that App Runner runs to start the application in the source image. If specified, this command * overrides the Docker image’s default start command. *
*/ private String startCommand; /** ** The port that your application listens to in the container. *
*
* Default: 8080
*
* 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. *
** Environment variables that are available to your running App Runner service. An array of key-value pairs. *
* * @return Environment variables that are available to your running App Runner service. An array of key-value pairs. */ public java.util.Map* Environment variables that are available to your running App Runner service. An array of key-value pairs. *
* * @param runtimeEnvironmentVariables * Environment variables that are available to your running App Runner service. An array of key-value pairs. */ public void setRuntimeEnvironmentVariables(java.util.Map* Environment variables that are available to your running App Runner service. An array of key-value pairs. *
* * @param runtimeEnvironmentVariables * 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 ImageConfiguration withRuntimeEnvironmentVariables(java.util.Map* An optional command that App Runner runs to start the application in the source image. If specified, this command * overrides the Docker image’s default start command. *
* * @param startCommand * An optional command that App Runner runs to start the application in the source image. If specified, this * command overrides the Docker image’s default start command. */ public void setStartCommand(String startCommand) { this.startCommand = startCommand; } /** ** An optional command that App Runner runs to start the application in the source image. If specified, this command * overrides the Docker image’s default start command. *
* * @return An optional command that App Runner runs to start the application in the source image. If specified, this * command overrides the Docker image’s default start command. */ public String getStartCommand() { return this.startCommand; } /** ** An optional command that App Runner runs to start the application in the source image. If specified, this command * overrides the Docker image’s default start command. *
* * @param startCommand * An optional command that App Runner runs to start the application in the source image. If specified, this * command overrides the Docker image’s default start command. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageConfiguration 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 ImageConfiguration withPort(String port) {
setPort(port);
return this;
}
/**
*
* 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. *
*