Class CfnService.CodeConfigurationValuesProperty
Describes the basic configuration needed for building and running an AWS App Runner service.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CodeConfigurationValuesProperty : Object, CfnService.ICodeConfigurationValuesProperty
Syntax (vb)
Public Class CodeConfigurationValuesProperty
Inherits Object
Implements CfnService.ICodeConfigurationValuesProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;
var codeConfigurationValuesProperty = new CodeConfigurationValuesProperty {
Runtime = "runtime",
// the properties below are optional
BuildCommand = "buildCommand",
Port = "port",
RuntimeEnvironmentSecrets = new [] { new KeyValuePairProperty {
Name = "name",
Value = "value"
} },
RuntimeEnvironmentVariables = new [] { new KeyValuePairProperty {
Name = "name",
Value = "value"
} },
StartCommand = "startCommand"
};
Synopsis
Constructors
CodeConfigurationValuesProperty() |
Properties
BuildCommand | The command App Runner runs to build your application. |
Port | The port that your application listens to in the container. |
Runtime | A runtime environment type for building and running an App Runner service. |
RuntimeEnvironmentSecrets | An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable. |
RuntimeEnvironmentVariables | The environment variables that are available to your running AWS App Runner service. |
StartCommand | The command App Runner runs to start your application. |
Constructors
CodeConfigurationValuesProperty()
public CodeConfigurationValuesProperty()
Properties
BuildCommand
The command App Runner runs to build your application.
public string BuildCommand { get; set; }
Property Value
System.String
Remarks
Port
The port that your application listens to in the container.
public string Port { get; set; }
Property Value
System.String
Remarks
Runtime
A runtime environment type for building and running an App Runner service.
public string Runtime { get; set; }
Property Value
System.String
Remarks
It represents a programming language runtime.
RuntimeEnvironmentSecrets
An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable.
public object RuntimeEnvironmentSecrets { get; set; }
Property Value
System.Object
Remarks
The supported values are either the full Amazon Resource Name (ARN) of the AWS Secrets Manager secret or the full ARN of the parameter in the AWS Systems Manager Parameter Store.
RuntimeEnvironmentVariables
The environment variables that are available to your running AWS App Runner service.
public object RuntimeEnvironmentVariables { get; set; }
Property Value
System.Object
Remarks
StartCommand
The command App Runner runs to start your application.
public string StartCommand { get; set; }
Property Value
System.String