Interface CfnService.SourceConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.SourceConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.SourceConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Describes the source deployed to an AWS App Runner service.

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: