class GitHubSourceCodeProvider
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Amplify.GitHubSourceCodeProvider |
Java | software.amazon.awscdk.services.amplify.GitHubSourceCodeProvider |
Python | aws_cdk.aws_amplify.GitHubSourceCodeProvider |
TypeScript (source) | @aws-cdk/aws-amplify » GitHubSourceCodeProvider |
Implements
ISource
GitHub source code provider.
Example
const amplifyApp = new amplify.App(this, 'MyApp', {
sourceCodeProvider: new amplify.GitHubSourceCodeProvider({
owner: '<user>',
repository: '<repo>',
oauthToken: SecretValue.secretsManager('my-github-token'),
}),
autoBranchCreation: { // Automatically connect branches that match a pattern set
patterns: ['feature/*', 'test/*'],
},
autoBranchDeletion: true, // Automatically disconnect a branch when you delete a branch from your repository
});
Initializer
new GitHubSourceCodeProvider(props: GitHubSourceCodeProviderProps)
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.