interface GitHubSourceCodeProviderProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Amplify.Alpha.GitHubSourceCodeProviderProps |
![]() | github.com/aws/aws-cdk-go/awscdkamplifyalpha/v2#GitHubSourceCodeProviderProps |
![]() | software.amazon.awscdk.services.amplify.alpha.GitHubSourceCodeProviderProps |
![]() | aws_cdk.aws_amplify_alpha.GitHubSourceCodeProviderProps |
![]() | @aws-cdk/aws-amplify-alpha ยป GitHubSourceCodeProviderProps |
Properties for a 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
});
Properties
Name | Type | Description |
---|---|---|
oauth | Secret | A personal access token with the repo scope. |
owner | string | The user or organization owning the repository. |
repository | string | The name of the repository. |
oauthToken
Type:
Secret
A personal access token with the repo
scope.
owner
Type:
string
The user or organization owning the repository.
repository
Type:
string
The name of the repository.