Interface CfnService.ICodeConfigurationValuesProperty
Describes the basic configuration needed for building and running an AWS App Runner service.
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICodeConfigurationValuesProperty
Syntax (vb)
Public Interface 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
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. |
Properties
BuildCommand
The command App Runner runs to build your application.
virtual string BuildCommand { get; }
Property Value
System.String
Remarks
Port
The port that your application listens to in the container.
virtual string Port { get; }
Property Value
System.String
Remarks
Runtime
A runtime environment type for building and running an App Runner service.
string Runtime { get; }
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.
virtual object RuntimeEnvironmentSecrets { get; }
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.
virtual object RuntimeEnvironmentVariables { get; }
Property Value
System.Object
Remarks
StartCommand
The command App Runner runs to start your application.
virtual string StartCommand { get; }
Property Value
System.String