aws-cdk-lib.aws_apprunner.CfnService.CodeRepositoryProperty

interface CodeRepositoryProperty

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.CfnService.CodeRepositoryProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapprunner#CfnService_CodeRepositoryProperty
Javasoftware.amazon.awscdk.services.apprunner.CfnService.CodeRepositoryProperty
Pythonaws_cdk.aws_apprunner.CfnService.CodeRepositoryProperty
TypeScript aws-cdk-lib » aws_apprunner » CfnService » CodeRepositoryProperty

Describes a source code repository.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apprunner as apprunner } from 'aws-cdk-lib';
const codeRepositoryProperty: apprunner.CfnService.CodeRepositoryProperty = {
  repositoryUrl: 'repositoryUrl',
  sourceCodeVersion: {
    type: 'type',
    value: 'value',
  },

  // the properties below are optional
  codeConfiguration: {
    configurationSource: 'configurationSource',

    // the properties below are optional
    codeConfigurationValues: {
      runtime: 'runtime',

      // the properties below are optional
      buildCommand: 'buildCommand',
      port: 'port',
      runtimeEnvironmentSecrets: [{
        name: 'name',
        value: 'value',
      }],
      runtimeEnvironmentVariables: [{
        name: 'name',
        value: 'value',
      }],
      startCommand: 'startCommand',
    },
  },
};

Properties

NameTypeDescription
repositoryUrlstringThe location of the repository that contains the source code.
sourceCodeVersionIResolvable | SourceCodeVersionPropertyThe version that should be used within the source code repository.
codeConfiguration?IResolvable | CodeConfigurationPropertyConfiguration for building and running the service from a source code repository.

repositoryUrl

Type: string

The location of the repository that contains the source code.


sourceCodeVersion

Type: IResolvable | SourceCodeVersionProperty

The version that should be used within the source code repository.


codeConfiguration?

Type: IResolvable | CodeConfigurationProperty (optional)

Configuration for building and running the service from a source code repository.

CodeConfiguration is required only for CreateService request.