Class CodeConfiguration
(experimental) Describes the configuration that AWS App Runner uses to build and run an App Runner service from a source code repository.
Inheritance
System.Object
CodeConfiguration
Implements
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class CodeConfiguration : Object, ICodeConfiguration
Syntax (vb)
Public Class CodeConfiguration
Inherits Object
Implements ICodeConfiguration
Remarks
Stability: Experimental
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.Alpha;
Runtime runtime;
Secret secret;
var codeConfiguration = new CodeConfiguration {
ConfigurationSource = ConfigurationSourceType.REPOSITORY,
// the properties below are optional
ConfigurationValues = new CodeConfigurationValues {
Runtime = runtime,
// the properties below are optional
BuildCommand = "buildCommand",
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
EnvironmentSecrets = new Dictionary<string, Secret> {
{ "environmentSecretsKey", secret }
},
EnvironmentVariables = new Dictionary<string, string> {
{ "environmentVariablesKey", "environmentVariables" }
},
Port = "port",
StartCommand = "startCommand"
}
};
Synopsis
Constructors
CodeConfiguration() |
Properties
ConfigurationSource | (experimental) The source of the App Runner configuration. |
ConfigurationValues | (experimental) The basic configuration for building and running the App Runner service. |
Constructors
CodeConfiguration()
public CodeConfiguration()
Properties
ConfigurationSource
(experimental) The source of the App Runner configuration.
public ConfigurationSourceType ConfigurationSource { get; set; }
Property Value
Remarks
Stability: Experimental
ConfigurationValues
(experimental) The basic configuration for building and running the App Runner service.
public ICodeConfigurationValues ConfigurationValues { get; set; }
Property Value
Remarks
Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists).
Default: - not specified. Use apprunner.yaml
instead.
Stability: Experimental