Class CfnServicePropsMixin.SourceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apprunner.CfnServicePropsMixin.SourceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.SourceConfigurationProperty>
- Enclosing interface:
CfnServicePropsMixin.SourceConfigurationProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.SourceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.SourceConfigurationProperty>
A builder for
CfnServicePropsMixin.SourceConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationConfiguration(CfnServicePropsMixin.AuthenticationConfigurationProperty authenticationConfiguration) authenticationConfiguration(IResolvable authenticationConfiguration) autoDeploymentsEnabled(Boolean autoDeploymentsEnabled) autoDeploymentsEnabled(IResolvable autoDeploymentsEnabled) build()Builds the configured instance.codeRepository(CfnServicePropsMixin.CodeRepositoryProperty codeRepository) Sets the value ofCfnServicePropsMixin.SourceConfigurationProperty.getCodeRepository()codeRepository(IResolvable codeRepository) Sets the value ofCfnServicePropsMixin.SourceConfigurationProperty.getCodeRepository()imageRepository(CfnServicePropsMixin.ImageRepositoryProperty imageRepository) Sets the value ofCfnServicePropsMixin.SourceConfigurationProperty.getImageRepository()imageRepository(IResolvable imageRepository) Sets the value ofCfnServicePropsMixin.SourceConfigurationProperty.getImageRepository()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationConfiguration
@Stability(Stable) public CfnServicePropsMixin.SourceConfigurationProperty.Builder authenticationConfiguration(IResolvable authenticationConfiguration) - Parameters:
authenticationConfiguration- Describes the resources that are needed to authenticate access to some source repositories.- Returns:
this
-
authenticationConfiguration
@Stability(Stable) public CfnServicePropsMixin.SourceConfigurationProperty.Builder authenticationConfiguration(CfnServicePropsMixin.AuthenticationConfigurationProperty authenticationConfiguration) - Parameters:
authenticationConfiguration- Describes the resources that are needed to authenticate access to some source repositories.- Returns:
this
-
autoDeploymentsEnabled
@Stability(Stable) public CfnServicePropsMixin.SourceConfigurationProperty.Builder autoDeploymentsEnabled(Boolean autoDeploymentsEnabled) - 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
falsefor 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 totruein 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 CfnServicePropsMixin.SourceConfigurationProperty.Builder autoDeploymentsEnabled(IResolvable autoDeploymentsEnabled) - 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
falsefor 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 totruein 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 CfnServicePropsMixin.SourceConfigurationProperty.Builder codeRepository(IResolvable codeRepository) Sets the value ofCfnServicePropsMixin.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 CfnServicePropsMixin.SourceConfigurationProperty.Builder codeRepository(CfnServicePropsMixin.CodeRepositoryProperty codeRepository) Sets the value ofCfnServicePropsMixin.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 CfnServicePropsMixin.SourceConfigurationProperty.Builder imageRepository(IResolvable imageRepository) Sets the value ofCfnServicePropsMixin.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 CfnServicePropsMixin.SourceConfigurationProperty.Builder imageRepository(CfnServicePropsMixin.ImageRepositoryProperty imageRepository) Sets the value ofCfnServicePropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.SourceConfigurationProperty>- Returns:
- a new instance of
CfnServicePropsMixin.SourceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-