Class CfnService.SourceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.SourceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.SourceConfigurationProperty>
- Enclosing interface:
CfnService.SourceConfigurationProperty
@Stability(Stable)
public static final class CfnService.SourceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.SourceConfigurationProperty>
A builder for
CfnService.SourceConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationConfiguration
(IResolvable authenticationConfiguration) Sets the value ofCfnService.SourceConfigurationProperty.getAuthenticationConfiguration()
authenticationConfiguration
(CfnService.AuthenticationConfigurationProperty authenticationConfiguration) Sets the value ofCfnService.SourceConfigurationProperty.getAuthenticationConfiguration()
autoDeploymentsEnabled
(Boolean autoDeploymentsEnabled) Sets the value ofCfnService.SourceConfigurationProperty.getAutoDeploymentsEnabled()
autoDeploymentsEnabled
(IResolvable autoDeploymentsEnabled) Sets the value ofCfnService.SourceConfigurationProperty.getAutoDeploymentsEnabled()
build()
Builds the configured instance.codeRepository
(IResolvable codeRepository) Sets the value ofCfnService.SourceConfigurationProperty.getCodeRepository()
codeRepository
(CfnService.CodeRepositoryProperty codeRepository) Sets the value ofCfnService.SourceConfigurationProperty.getCodeRepository()
imageRepository
(IResolvable imageRepository) Sets the value ofCfnService.SourceConfigurationProperty.getImageRepository()
imageRepository
(CfnService.ImageRepositoryProperty imageRepository) Sets the value ofCfnService.SourceConfigurationProperty.getImageRepository()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationConfiguration
@Stability(Stable) public CfnService.SourceConfigurationProperty.Builder authenticationConfiguration(IResolvable authenticationConfiguration) Sets the value ofCfnService.SourceConfigurationProperty.getAuthenticationConfiguration()
- Parameters:
authenticationConfiguration
- Describes the resources that are needed to authenticate access to some source repositories.- Returns:
this
-
authenticationConfiguration
@Stability(Stable) public CfnService.SourceConfigurationProperty.Builder authenticationConfiguration(CfnService.AuthenticationConfigurationProperty authenticationConfiguration) Sets the value ofCfnService.SourceConfigurationProperty.getAuthenticationConfiguration()
- Parameters:
authenticationConfiguration
- Describes the resources that are needed to authenticate access to some source repositories.- Returns:
this
-
autoDeploymentsEnabled
@Stability(Stable) public CfnService.SourceConfigurationProperty.Builder autoDeploymentsEnabled(Boolean autoDeploymentsEnabled) Sets the value ofCfnService.SourceConfigurationProperty.getAutoDeploymentsEnabled()
- Parameters:
autoDeploymentsEnabled
- Iftrue
, 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 AWS account other than the one that the service is in. App Runner sets totrue
in all other cases (which currently include a source code repository or a source image using a same-account ECR repository).- Returns:
this
-
autoDeploymentsEnabled
@Stability(Stable) public CfnService.SourceConfigurationProperty.Builder autoDeploymentsEnabled(IResolvable autoDeploymentsEnabled) Sets the value ofCfnService.SourceConfigurationProperty.getAutoDeploymentsEnabled()
- Parameters:
autoDeploymentsEnabled
- Iftrue
, 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 AWS account other than the one that the service is in. App Runner sets totrue
in all other cases (which currently include a source code repository or a source image using a same-account ECR repository).- Returns:
this
-
codeRepository
@Stability(Stable) public CfnService.SourceConfigurationProperty.Builder codeRepository(IResolvable codeRepository) Sets the value ofCfnService.SourceConfigurationProperty.getCodeRepository()
- Parameters:
codeRepository
- The description of a source code repository. You must provide either this member orImageRepository
(but not both).- Returns:
this
-
codeRepository
@Stability(Stable) public CfnService.SourceConfigurationProperty.Builder codeRepository(CfnService.CodeRepositoryProperty codeRepository) Sets the value ofCfnService.SourceConfigurationProperty.getCodeRepository()
- Parameters:
codeRepository
- The description of a source code repository. You must provide either this member orImageRepository
(but not both).- Returns:
this
-
imageRepository
@Stability(Stable) public CfnService.SourceConfigurationProperty.Builder imageRepository(IResolvable imageRepository) Sets the value ofCfnService.SourceConfigurationProperty.getImageRepository()
- Parameters:
imageRepository
- The description of a source image repository. You must provide either this member orCodeRepository
(but not both).- Returns:
this
-
imageRepository
@Stability(Stable) public CfnService.SourceConfigurationProperty.Builder imageRepository(CfnService.ImageRepositoryProperty imageRepository) Sets the value ofCfnService.SourceConfigurationProperty.getImageRepository()
- Parameters:
imageRepository
- The description of a source image repository. You must provide either this member orCodeRepository
(but not both).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.SourceConfigurationProperty>
- Returns:
- a new instance of
CfnService.SourceConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-