Show / Hide Table of Contents

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
object
CodeConfiguration
Implements
ICodeConfiguration
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class CodeConfiguration : ICodeConfiguration
Syntax (vb)
Public Class CodeConfiguration Implements ICodeConfiguration
Remarks

Stability: Experimental

See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfiguration.html

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()

(experimental) Describes the configuration that AWS App Runner uses to build and run an App Runner service from a source code repository.

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()

(experimental) Describes the configuration that AWS App Runner uses to build and run an App Runner service from a source code repository.

public CodeConfiguration()
Remarks

Stability: Experimental

See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfiguration.html

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"
                 }
             };

Properties

ConfigurationSource

(experimental) The source of the App Runner configuration.

public ConfigurationSourceType ConfigurationSource { get; set; }
Property Value

ConfigurationSourceType

Remarks

Stability: Experimental

ConfigurationValues

(experimental) The basic configuration for building and running the App Runner service.

public ICodeConfigurationValues? ConfigurationValues { get; set; }
Property Value

ICodeConfigurationValues

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

Implements

ICodeConfiguration
Back to top Generated by DocFX