@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.021Z") @Stability(value=Stable) public interface CfnServiceProps extends software.amazon.jsii.JsiiSerializable
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.*;
CfnServiceProps cfnServiceProps = CfnServiceProps.builder()
.sourceConfiguration(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")
.runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.startCommand("startCommand")
.build())
.build())
.build())
.imageRepository(ImageRepositoryProperty.builder()
.imageIdentifier("imageIdentifier")
.imageRepositoryType("imageRepositoryType")
// the properties below are optional
.imageConfiguration(ImageConfigurationProperty.builder()
.port("port")
.runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.startCommand("startCommand")
.build())
.build())
.build())
// the properties below are optional
.autoScalingConfigurationArn("autoScalingConfigurationArn")
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.kmsKey("kmsKey")
.build())
.healthCheckConfiguration(HealthCheckConfigurationProperty.builder()
.healthyThreshold(123)
.interval(123)
.path("path")
.protocol("protocol")
.timeout(123)
.unhealthyThreshold(123)
.build())
.instanceConfiguration(InstanceConfigurationProperty.builder()
.cpu("cpu")
.instanceRoleArn("instanceRoleArn")
.memory("memory")
.build())
.serviceName("serviceName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnServiceProps.Builder
A builder for
CfnServiceProps |
static class |
CfnServiceProps.Jsii$Proxy
An implementation for
CfnServiceProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnServiceProps.Builder |
builder() |
default String |
getAutoScalingConfigurationArn()
`AWS::AppRunner::Service.AutoScalingConfigurationArn`.
|
default Object |
getEncryptionConfiguration()
`AWS::AppRunner::Service.EncryptionConfiguration`.
|
default Object |
getHealthCheckConfiguration()
`AWS::AppRunner::Service.HealthCheckConfiguration`.
|
default Object |
getInstanceConfiguration()
`AWS::AppRunner::Service.InstanceConfiguration`.
|
default String |
getServiceName()
`AWS::AppRunner::Service.ServiceName`.
|
Object |
getSourceConfiguration()
`AWS::AppRunner::Service.SourceConfiguration`.
|
default List<CfnTag> |
getTags()
`AWS::AppRunner::Service.Tags`.
|
@Stability(value=Stable) @Nullable default String getAutoScalingConfigurationArn()
@Stability(value=Stable) @Nullable default Object getEncryptionConfiguration()
@Stability(value=Stable) @Nullable default Object getHealthCheckConfiguration()
@Stability(value=Stable) @Nullable default Object getInstanceConfiguration()
@Stability(value=Stable) @Nullable default String getServiceName()
@Stability(value=Stable) @NotNull Object getSourceConfiguration()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnServiceProps.Builder builder()
CfnServiceProps.Builder of CfnServicePropsCopyright © 2021. All rights reserved.