Class GithubSource.Builder

java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.GithubSource.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<GithubSource>
Enclosing class:
GithubSource

@Stability(Experimental) public static final class GithubSource.Builder extends Object implements software.amazon.jsii.Builder<GithubSource>
(experimental) A fluent builder for GithubSource.
  • Method Details

    • create

      @Stability(Experimental) public static GithubSource.Builder create()
      Returns:
      a new instance of GithubSource.Builder.
    • configurationSource

      @Stability(Experimental) public GithubSource.Builder configurationSource(ConfigurationSourceType configurationSource)
      (experimental) The source of the App Runner configuration.

      Parameters:
      configurationSource - The source of the App Runner configuration. This parameter is required.
      Returns:
      this
    • connection

      @Stability(Experimental) public GithubSource.Builder connection(GitHubConnection connection)
      (experimental) ARN of the connection to Github.

      Only required for Github source.

      Parameters:
      connection - ARN of the connection to Github. This parameter is required.
      Returns:
      this
    • repositoryUrl

      @Stability(Experimental) public GithubSource.Builder repositoryUrl(String repositoryUrl)
      (experimental) The location of the repository that contains the source code.

      Parameters:
      repositoryUrl - The location of the repository that contains the source code. This parameter is required.
      Returns:
      this
    • branch

      @Stability(Experimental) public GithubSource.Builder branch(String branch)
      (experimental) The branch name that represents a specific version for the repository.

      Default: main

      Parameters:
      branch - The branch name that represents a specific version for the repository. This parameter is required.
      Returns:
      this
    • codeConfigurationValues

      @Stability(Experimental) public GithubSource.Builder codeConfigurationValues(CodeConfigurationValues codeConfigurationValues)
      (experimental) The code configuration values.

      Will be ignored if configurationSource is REPOSITORY.

      Default: - no values will be passed. The `apprunner.yaml` from the github reopsitory will be used instead.

      Parameters:
      codeConfigurationValues - The code configuration values. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public GithubSource build()
      Specified by:
      build in interface software.amazon.jsii.Builder<GithubSource>
      Returns:
      a newly built instance of GithubSource.