# CfnSourceCredentialPropsMixin

Information about the credentials for a GitHub, GitHub Enterprise, or Bitbucket repository.

We strongly recommend that you use AWS Secrets Manager to store your credentials. If you use Secrets Manager , you must have secrets in your secrets manager. For more information, see [Using Dynamic References to Specify Template Values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html#dynamic-references-secretsmanager) .

> For security purposes, do not use plain text in your CloudFormation template to store your credentials.

Extends: [Mixin](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Mixin.html) › CfnSourceCredentialPropsMixin
Implements: [IMixin](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IMixin.html)

- CloudFormation: [`AWS::CodeBuild::SourceCredential`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-codebuild-sourcecredential.html)
- Source: Generated at build time
- Type last changed: v2.269.0 · 16 Sep 2026

## Initializer

TypeScript:

```ts
new CfnSourceCredentialPropsMixin(props: CfnSourceCredentialMixinProps, options?: CfnPropertyMixinOptions)
```

Python:

```python
CfnSourceCredentialPropsMixin(props: CfnSourceCredentialMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
```

Java:

```java
new CfnSourceCredentialPropsMixin(CfnSourceCredentialMixinProps props, CfnPropertyMixinOptions options)
```

C# / .NET:

```csharp
new CfnSourceCredentialPropsMixin(CfnSourceCredentialMixinProps props, CfnPropertyMixinOptions? options = null)
```

Golang:

```go
NewCfnSourceCredentialPropsMixin(Props CfnSourceCredentialMixinProps, Options CfnPropertyMixinOptions)
```

## Methods

- `applyTo(construct: IConstruct): void` — Apply the mixin properties to the construct.

- `isMixin(x: any): boolean` (static) — Checks if `x` is a Mixin.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Mixin`.

- `supports(construct: IConstruct): boolean` — Check if this mixin supports the given construct.
