Interface SourceConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SourceConfiguration.Builder,SourceConfiguration>, SdkBuilder<SourceConfiguration.Builder,SourceConfiguration>, SdkPojo
Enclosing class:
SourceConfiguration

public static interface SourceConfiguration.Builder extends SdkPojo, CopyableBuilder<SourceConfiguration.Builder,SourceConfiguration>
  • Method Details

    • codeRepository

      SourceConfiguration.Builder codeRepository(CodeRepository codeRepository)

      The description of a source code repository.

      You must provide either this member or ImageRepository (but not both).

      Parameters:
      codeRepository - The description of a source code repository.

      You must provide either this member or ImageRepository (but not both).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeRepository

      default SourceConfiguration.Builder codeRepository(Consumer<CodeRepository.Builder> codeRepository)

      The description of a source code repository.

      You must provide either this member or ImageRepository (but not both).

      This is a convenience method that creates an instance of the CodeRepository.Builder avoiding the need to create one manually via CodeRepository.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to codeRepository(CodeRepository).

      Parameters:
      codeRepository - a consumer that will call methods on CodeRepository.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • imageRepository

      SourceConfiguration.Builder imageRepository(ImageRepository imageRepository)

      The description of a source image repository.

      You must provide either this member or CodeRepository (but not both).

      Parameters:
      imageRepository - The description of a source image repository.

      You must provide either this member or CodeRepository (but not both).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageRepository

      default SourceConfiguration.Builder imageRepository(Consumer<ImageRepository.Builder> imageRepository)

      The description of a source image repository.

      You must provide either this member or CodeRepository (but not both).

      This is a convenience method that creates an instance of the ImageRepository.Builder avoiding the need to create one manually via ImageRepository.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to imageRepository(ImageRepository).

      Parameters:
      imageRepository - a consumer that will call methods on ImageRepository.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • autoDeploymentsEnabled

      SourceConfiguration.Builder autoDeploymentsEnabled(Boolean autoDeploymentsEnabled)

      If true, continuous integration from the source repository is enabled for the App Runner service. Each repository change (including any source code commit or new image version) starts a deployment.

      Default: App Runner sets to false for a source image that uses an ECR Public repository or an ECR repository that's in an Amazon Web Services account other than the one that the service is in. App Runner sets to true in all other cases (which currently include a source code repository or a source image using a same-account ECR repository).

      Parameters:
      autoDeploymentsEnabled - If true, continuous integration from the source repository is enabled for the App Runner service. Each repository change (including any source code commit or new image version) starts a deployment.

      Default: App Runner sets to false for a source image that uses an ECR Public repository or an ECR repository that's in an Amazon Web Services account other than the one that the service is in. App Runner sets to true in all other cases (which currently include a source code repository or a source image using a same-account ECR repository).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authenticationConfiguration

      SourceConfiguration.Builder authenticationConfiguration(AuthenticationConfiguration authenticationConfiguration)

      Describes the resources that are needed to authenticate access to some source repositories.

      Parameters:
      authenticationConfiguration - Describes the resources that are needed to authenticate access to some source repositories.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authenticationConfiguration

      default SourceConfiguration.Builder authenticationConfiguration(Consumer<AuthenticationConfiguration.Builder> authenticationConfiguration)

      Describes the resources that are needed to authenticate access to some source repositories.

      This is a convenience method that creates an instance of the AuthenticationConfiguration.Builder avoiding the need to create one manually via AuthenticationConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to authenticationConfiguration(AuthenticationConfiguration).

      Parameters:
      authenticationConfiguration - a consumer that will call methods on AuthenticationConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: