@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.614Z") @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())
.networkConfiguration(NetworkConfigurationProperty.builder()
.egressConfiguration(EgressConfigurationProperty.builder()
.egressType("egressType")
// the properties below are optional
.vpcConnectorArn("vpcConnectorArn")
.build())
.build())
.observabilityConfiguration(ServiceObservabilityConfigurationProperty.builder()
.observabilityEnabled(false)
// the properties below are optional
.observabilityConfigurationArn("observabilityConfigurationArn")
.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()
The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service.
|
default Object |
getEncryptionConfiguration()
An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs.
|
default Object |
getHealthCheckConfiguration()
The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.
|
default Object |
getInstanceConfiguration()
The runtime configuration of instances (scaling units) of your service.
|
default Object |
getNetworkConfiguration()
Configuration settings related to network traffic of the web application that the App Runner service runs.
|
default Object |
getObservabilityConfiguration()
The observability configuration of your service.
|
default String |
getServiceName()
A name for the App Runner service.
|
Object |
getSourceConfiguration()
The source to deploy to the App Runner service.
|
default List<CfnTag> |
getTags()
An optional list of metadata items that you can associate with the App Runner service resource.
|
@Stability(value=Stable) @NotNull Object getSourceConfiguration()
It can be a code or an image repository.
@Stability(value=Stable) @Nullable default String getAutoScalingConfigurationArn()
If not provided, App Runner associates the latest revision of a default auto scaling configuration.
Specify an ARN with a name and a revision number to associate that revision. For example: arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability/3
Specify just the name to associate the latest revision. For example: arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability
@Stability(value=Stable) @Nullable default Object getEncryptionConfiguration()
By default, App Runner uses an AWS managed key .
@Stability(value=Stable) @Nullable default Object getHealthCheckConfiguration()
@Stability(value=Stable) @Nullable default Object getInstanceConfiguration()
@Stability(value=Stable) @Nullable default Object getNetworkConfiguration()
@Stability(value=Stable) @Nullable default Object getObservabilityConfiguration()
@Stability(value=Stable) @Nullable default String getServiceName()
It must be unique across all the running App Runner services in your AWS account in the AWS Region .
If you don't specify a name, AWS CloudFormation generates a name for your service.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
A tag is a key-value pair.
@Stability(value=Stable) static CfnServiceProps.Builder builder()
CfnServiceProps.Builder of CfnServicePropsCopyright © 2022. All rights reserved.