Class GitHubSourceCodeProvider

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.156Z") @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.