Class GitHubSourceCodeProvider

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.amplify.alpha.GitHubSourceCodeProvider
All Implemented Interfaces:
ISourceCodeProvider, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)", date="2023-12-01T19:06:40.583Z") @Stability(Experimental) public class GitHubSourceCodeProvider extends software.amazon.jsii.JsiiObject implements ISourceCodeProvider
(experimental) GitHub source code provider.

Example:

 App amplifyApp = App.Builder.create(this, "MyApp")
         .sourceCodeProvider(GitHubSourceCodeProvider.Builder.create()
                 .owner("<user>")
                 .repository("<repo>")
                 .oauthToken(SecretValue.secretsManager("my-github-token"))
                 .build())
         .autoBranchCreation(AutoBranchCreation.builder() // Automatically connect branches that match a pattern set
                 .patterns(List.of("feature/*", "test/*")).build())
         .autoBranchDeletion(true)
         .build();
 
  • Constructor Details

    • GitHubSourceCodeProvider

      protected GitHubSourceCodeProvider(software.amazon.jsii.JsiiObjectRef objRef)
    • GitHubSourceCodeProvider

      protected GitHubSourceCodeProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • GitHubSourceCodeProvider

      @Stability(Experimental) public GitHubSourceCodeProvider(@NotNull GitHubSourceCodeProviderProps props)
      Parameters:
      props - This parameter is required.
  • Method Details

    • bind

      @Stability(Experimental) @NotNull public SourceCodeProviderConfig bind(@NotNull App _app)
      (experimental) Binds the source code provider to an app.

      Specified by:
      bind in interface ISourceCodeProvider
      Parameters:
      _app - This parameter is required.