Interface CfnService.SourceConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnService.SourceConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnService
It can be a code or an image repository.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apprunner.*;
SourceConfigurationProperty sourceConfigurationProperty = SourceConfigurationProperty.builder()
.authenticationConfiguration(AuthenticationConfigurationProperty.builder()
.accessRoleArn("accessRoleArn")
.connectionArn("connectionArn")
.build())
.autoDeploymentsEnabled(false)
.codeRepository(CodeRepositoryProperty.builder()
.repositoryUrl("repositoryUrl")
.sourceCodeVersion(SourceCodeVersionProperty.builder()
.type("type")
.value("value")
.build())
// the properties below are optional
.codeConfiguration(CodeConfigurationProperty.builder()
.configurationSource("configurationSource")
// the properties below are optional
.codeConfigurationValues(CodeConfigurationValuesProperty.builder()
.runtime("runtime")
// the properties below are optional
.buildCommand("buildCommand")
.port("port")
.runtimeEnvironmentSecrets(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.startCommand("startCommand")
.build())
.build())
.sourceDirectory("sourceDirectory")
.build())
.imageRepository(ImageRepositoryProperty.builder()
.imageIdentifier("imageIdentifier")
.imageRepositoryType("imageRepositoryType")
// the properties below are optional
.imageConfiguration(ImageConfigurationProperty.builder()
.port("port")
.runtimeEnvironmentSecrets(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.startCommand("startCommand")
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnService.SourceConfigurationPropertystatic final classAn implementation forCfnService.SourceConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectDescribes the resources that are needed to authenticate access to some source repositories.default ObjectIftrue, continuous integration from the source repository is enabled for the App Runner service.default ObjectThe description of a source code repository.default ObjectThe description of a source image repository.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthenticationConfiguration
Describes the resources that are needed to authenticate access to some source repositories.Returns union: either
IResolvableorCfnService.AuthenticationConfigurationProperty- See Also:
-
getAutoDeploymentsEnabled
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 union: either
BooleanorIResolvable- See Also:
-
getCodeRepository
The description of a source code repository.You must provide either this member or
ImageRepository(but not both).Returns union: either
IResolvableorCfnService.CodeRepositoryProperty- See Also:
-
getImageRepository
The description of a source image repository.You must provide either this member or
CodeRepository(but not both).Returns union: either
IResolvableorCfnService.ImageRepositoryProperty- See Also:
-
builder
-