class CfnSourceCredentialPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CodeBuild.Mixins.CfnSourceCredentialPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscodebuild/mixins#CfnSourceCredentialPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.codebuild.mixins.CfnSourceCredentialPropsMixin |
Python | aws_cdk.mixins_preview.aws_codebuild.mixins.CfnSourceCredentialPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_codebuild » mixins » CfnSourceCredentialPropsMixin |
Implements
IMixin
Extends
Mixin
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 .
For security purposes, do not use plain text in your CloudFormation template to store your credentials.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as codebuild_mixins } from '@aws-cdk/mixins-preview/aws-codebuild';
const cfnSourceCredentialPropsMixin = new codebuild_mixins.CfnSourceCredentialPropsMixin({
authType: 'authType',
serverType: 'serverType',
token: 'token',
username: 'username',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnSourceCredentialPropsMixin(props: CfnSourceCredentialMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Source Credential Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::CodeBuild::SourceCredential.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript