# SourceAuthProperty

`SourceAuth` is a property of the [AWS CodeBuild Project Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html) property type that specifies authorization settings for AWS CodeBuild to access the source code to be built.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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

- `resource`: string — The resource value that applies to the specified authorization type.

- `type`: string (required) — The authorization type to use.

  Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.
