@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImageConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Describes the configuration that App Runner uses to run an App Runner service using an image pulled from a source image repository.
Constructor and Description |
---|
ImageConfiguration() |
Modifier and Type | Method and Description |
---|---|
ImageConfiguration |
addRuntimeEnvironmentVariablesEntry(String key,
String value)
Add a single RuntimeEnvironmentVariables entry
|
ImageConfiguration |
clearRuntimeEnvironmentVariablesEntries()
Removes all the entries added into RuntimeEnvironmentVariables.
|
ImageConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getPort()
The port that your application listens to in the container.
|
Map<String,String> |
getRuntimeEnvironmentVariables()
Environment variables that are available to your running App Runner service.
|
String |
getStartCommand()
An optional command that App Runner runs to start the application in the source image.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPort(String port)
The port that your application listens to in the container.
|
void |
setRuntimeEnvironmentVariables(Map<String,String> runtimeEnvironmentVariables)
Environment variables that are available to your running App Runner service.
|
void |
setStartCommand(String startCommand)
An optional command that App Runner runs to start the application in the source image.
|
String |
toString()
Returns a string representation of this object.
|
ImageConfiguration |
withPort(String port)
The port that your application listens to in the container.
|
ImageConfiguration |
withRuntimeEnvironmentVariables(Map<String,String> runtimeEnvironmentVariables)
Environment variables that are available to your running App Runner service.
|
ImageConfiguration |
withStartCommand(String startCommand)
An optional command that App Runner runs to start the application in the source image.
|
public Map<String,String> getRuntimeEnvironmentVariables()
Environment variables that are available to your running App Runner service. An array of key-value pairs. Keys
with a prefix of AWSAPPRUNNER
are reserved for system use and aren't valid.
AWSAPPRUNNER
are reserved for system use and aren't valid.public void setRuntimeEnvironmentVariables(Map<String,String> runtimeEnvironmentVariables)
Environment variables that are available to your running App Runner service. An array of key-value pairs. Keys
with a prefix of AWSAPPRUNNER
are reserved for system use and aren't valid.
runtimeEnvironmentVariables
- Environment variables that are available to your running App Runner service. An array of key-value pairs.
Keys with a prefix of AWSAPPRUNNER
are reserved for system use and aren't valid.public ImageConfiguration withRuntimeEnvironmentVariables(Map<String,String> runtimeEnvironmentVariables)
Environment variables that are available to your running App Runner service. An array of key-value pairs. Keys
with a prefix of AWSAPPRUNNER
are reserved for system use and aren't valid.
runtimeEnvironmentVariables
- Environment variables that are available to your running App Runner service. An array of key-value pairs.
Keys with a prefix of AWSAPPRUNNER
are reserved for system use and aren't valid.public ImageConfiguration addRuntimeEnvironmentVariablesEntry(String key, String value)
public ImageConfiguration clearRuntimeEnvironmentVariablesEntries()
public void setStartCommand(String 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.
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 String getStartCommand()
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 ImageConfiguration withStartCommand(String 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.
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 setPort(String port)
The port that your application listens to in the container.
Default: 8080
port
- The port that your application listens to in the container.
Default: 8080
public String getPort()
The port that your application listens to in the container.
Default: 8080
Default: 8080
public ImageConfiguration withPort(String port)
The port that your application listens to in the container.
Default: 8080
port
- The port that your application listens to in the container.
Default: 8080
public String toString()
toString
in class Object
Object.toString()
public ImageConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.