aws-cdk-lib.aws_codebuild.SourceConfig

interface SourceConfig

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.SourceConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#SourceConfig
Javasoftware.amazon.awscdk.services.codebuild.SourceConfig
Pythonaws_cdk.aws_codebuild.SourceConfig
TypeScript (source)aws-cdk-lib » aws_codebuild » SourceConfig

Obtainable from Source.bind()

The type returned from ISource#bind.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const sourceConfig: codebuild.SourceConfig = {
  sourceProperty: {
    type: 'type',

    // the properties below are optional
    auth: {
      type: 'type',

      // the properties below are optional
      resource: 'resource',
    },
    buildSpec: 'buildSpec',
    buildStatusConfig: {
      context: 'context',
      targetUrl: 'targetUrl',
    },
    gitCloneDepth: 123,
    gitSubmodulesConfig: {
      fetchSubmodules: false,
    },
    insecureSsl: false,
    location: 'location',
    reportBuildStatus: false,
    sourceIdentifier: 'sourceIdentifier',
  },

  // the properties below are optional
  buildTriggers: {
    buildType: 'buildType',
    filterGroups: [[{
      pattern: 'pattern',
      type: 'type',

      // the properties below are optional
      excludeMatchedPattern: false,
    }]],
    webhook: false,
  },
  sourceVersion: 'sourceVersion',
};

Properties

NameTypeDescription
sourcePropertySourceProperty
buildTriggers?ProjectTriggersProperty
sourceVersion?stringAWS::CodeBuild::Project.SourceVersion.

sourceProperty

Type: SourceProperty


buildTriggers?

Type: ProjectTriggersProperty (optional)


sourceVersion?

Type: string (optional, default: the latest version)

AWS::CodeBuild::Project.SourceVersion.

See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-sourceversion