/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the apprunner-2020-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppRunner.Model
{
///
/// Describes the configuration that App Runner uses to run an App Runner service using
/// an image pulled from a source image repository.
///
public partial class ImageConfiguration
{
private string _port;
private Dictionary _runtimeEnvironmentSecrets = new Dictionary();
private Dictionary _runtimeEnvironmentVariables = new Dictionary();
private string _startCommand;
///
/// Gets and sets the property Port.
///
/// The port that your application listens to in the container.
///
///
///
/// Default: 8080
///
///
[AWSProperty(Min=0, Max=51200)]
public string Port
{
get { return this._port; }
set { this._port = value; }
}
// Check to see if Port property is set
internal bool IsSetPort()
{
return this._port != null;
}
///
/// Gets and sets the property 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 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.
///
///
///
public Dictionary RuntimeEnvironmentSecrets
{
get { return this._runtimeEnvironmentSecrets; }
set { this._runtimeEnvironmentSecrets = value; }
}
// Check to see if RuntimeEnvironmentSecrets property is set
internal bool IsSetRuntimeEnvironmentSecrets()
{
return this._runtimeEnvironmentSecrets != null && this._runtimeEnvironmentSecrets.Count > 0;
}
///
/// Gets and sets the property RuntimeEnvironmentVariables.
///
/// Environment variables that are available to your running App Runner service. An array
/// of key-value pairs.
///
///
public Dictionary RuntimeEnvironmentVariables
{
get { return this._runtimeEnvironmentVariables; }
set { this._runtimeEnvironmentVariables = value; }
}
// Check to see if RuntimeEnvironmentVariables property is set
internal bool IsSetRuntimeEnvironmentVariables()
{
return this._runtimeEnvironmentVariables != null && this._runtimeEnvironmentVariables.Count > 0;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Sensitive=true)]
public string StartCommand
{
get { return this._startCommand; }
set { this._startCommand = value; }
}
// Check to see if StartCommand property is set
internal bool IsSetStartCommand()
{
return this._startCommand != null;
}
}
}