/*
* 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 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.
///
public partial class CodeConfigurationValues
{
private string _buildCommand;
private string _port;
private Runtime _runtime;
private Dictionary _runtimeEnvironmentSecrets = new Dictionary();
private Dictionary _runtimeEnvironmentVariables = new Dictionary();
private string _startCommand;
///
/// Gets and sets the property BuildCommand.
///
/// The command App Runner runs to build your application.
///
///
[AWSProperty(Sensitive=true)]
public string BuildCommand
{
get { return this._buildCommand; }
set { this._buildCommand = value; }
}
// Check to see if BuildCommand property is set
internal bool IsSetBuildCommand()
{
return this._buildCommand != null;
}
///
/// 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 Runtime.
///
/// A runtime environment type for building and running an App Runner service. It represents
/// a programming language runtime.
///
///
[AWSProperty(Required=true)]
public Runtime Runtime
{
get { return this._runtime; }
set { this._runtime = value; }
}
// Check to see if Runtime property is set
internal bool IsSetRuntime()
{
return this._runtime != 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.
///
/// The 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.
///
/// The command App Runner runs to start your application.
///
///
[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;
}
}
}