GitHubSourceCodeProvider
- class aws_cdk.aws_amplify.GitHubSourceCodeProvider(*, oauth_token, owner, repository)
Bases:
object
(experimental) GitHub source code provider.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
amplify_app = amplify.App(self, "MyApp", source_code_provider=amplify.GitHubSourceCodeProvider( owner="<user>", repository="<repo>", oauth_token=SecretValue.secrets_manager("my-github-token") ), auto_branch_creation=amplify.AutoBranchCreation( # Automatically connect branches that match a pattern set patterns=["feature/*", "test/*"]), auto_branch_deletion=True )
- Parameters:
oauth_token (
SecretValue
) – (experimental) A personal access token with therepo
scope.owner (
str
) – (experimental) The user or organization owning the repository.repository (
str
) – (experimental) The name of the repository.
- Stability:
experimental
Methods