Skip to content
v2.275.0

SourceAuthProperty Struct ​

SourceAuth is a property of the AWS CodeBuild Project Source property type that specifies authorization settings for AWS CodeBuild to access the source code to be built.

Example ​

ts
// 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 sourceAuthProperty: codebuild.CfnProject.SourceAuthProperty = {
  type: 'type',

  // the properties below are optional
  resource: 'resource',
};

Properties ​

resourceoptionalstringresourceoptionalstrresourceoptionalStringResourceoptionalstringResourceoptional*string#
The resource value that applies to the specified authorization type.
typestringtypestrtypeStringTypestringType*stringrequired#
The authorization type to use.

Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.