@aws-cdk_aws-apprunner-alpha.CodeConfiguration

interface CodeConfiguration ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.CodeConfiguration
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#CodeConfiguration
Javasoftware.amazon.awscdk.services.apprunner.alpha.CodeConfiguration
Pythonaws_cdk.aws_apprunner_alpha.CodeConfiguration
TypeScript (source)@aws-cdk/aws-apprunner-alpha ยป CodeConfiguration

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

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

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apprunner_alpha from '@aws-cdk/aws-apprunner-alpha';

declare const runtime: apprunner_alpha.Runtime;
declare const secret: apprunner_alpha.Secret;
const codeConfiguration: apprunner_alpha.CodeConfiguration = {
  configurationSource: apprunner_alpha.ConfigurationSourceType.REPOSITORY,

  // the properties below are optional
  configurationValues: {
    runtime: runtime,

    // the properties below are optional
    buildCommand: 'buildCommand',
    environment: {
      environmentKey: 'environment',
    },
    environmentSecrets: {
      environmentSecretsKey: secret,
    },
    environmentVariables: {
      environmentVariablesKey: 'environmentVariables',
    },
    port: 'port',
    startCommand: 'startCommand',
  },
};

Properties

NameTypeDescription
configurationSource๐Ÿ”นConfigurationSourceTypeThe source of the App Runner configuration.
configurationValues?๐Ÿ”นCodeConfigurationValuesThe basic configuration for building and running the App Runner service.

configurationSource๐Ÿ”น

Type: ConfigurationSourceType

The source of the App Runner configuration.


configurationValues?๐Ÿ”น

Type: CodeConfigurationValues (optional, default: not specified. Use apprunner.yaml instead.)

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

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