class CodeCommitSourceCodeProvider
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Amplify.CodeCommitSourceCodeProvider |
Java | software.amazon.awscdk.services.amplify.CodeCommitSourceCodeProvider |
Python | aws_cdk.aws_amplify.CodeCommitSourceCodeProvider |
TypeScript (source) | @aws-cdk/aws-amplify » CodeCommitSourceCodeProvider |
Implements
ISource
CodeCommit source code provider.
Example
import * as codecommit from '@aws-cdk/aws-codecommit';
const repository = new codecommit.Repository(this, 'Repo', {
repositoryName: 'my-repo',
});
const amplifyApp = new amplify.App(this, 'App', {
sourceCodeProvider: new amplify.CodeCommitSourceCodeProvider({ repository }),
});
Initializer
new CodeCommitSourceCodeProvider(props: CodeCommitSourceCodeProviderProps)
Parameters
Methods
Name | Description |
---|---|
bind(app) | Binds the source code provider to an app. |
bind(app)
public bind(app: App): SourceCodeProviderConfig
Parameters
- app
App
Returns
Binds the source code provider to an app.