Class CfnServiceProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnServiceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceProps>
- Enclosing interface:
CfnServiceProps
@Stability(Stable)
public static final class CfnServiceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceProps>
A builder for
CfnServiceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingConfigurationArn
(String autoScalingConfigurationArn) Sets the value ofCfnServiceProps.getAutoScalingConfigurationArn()
build()
Builds the configured instance.encryptionConfiguration
(IResolvable encryptionConfiguration) Sets the value ofCfnServiceProps.getEncryptionConfiguration()
encryptionConfiguration
(CfnService.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnServiceProps.getEncryptionConfiguration()
healthCheckConfiguration
(IResolvable healthCheckConfiguration) Sets the value ofCfnServiceProps.getHealthCheckConfiguration()
healthCheckConfiguration
(CfnService.HealthCheckConfigurationProperty healthCheckConfiguration) Sets the value ofCfnServiceProps.getHealthCheckConfiguration()
instanceConfiguration
(IResolvable instanceConfiguration) Sets the value ofCfnServiceProps.getInstanceConfiguration()
instanceConfiguration
(CfnService.InstanceConfigurationProperty instanceConfiguration) Sets the value ofCfnServiceProps.getInstanceConfiguration()
networkConfiguration
(IResolvable networkConfiguration) Sets the value ofCfnServiceProps.getNetworkConfiguration()
networkConfiguration
(CfnService.NetworkConfigurationProperty networkConfiguration) Sets the value ofCfnServiceProps.getNetworkConfiguration()
observabilityConfiguration
(IResolvable observabilityConfiguration) Sets the value ofCfnServiceProps.getObservabilityConfiguration()
observabilityConfiguration
(CfnService.ServiceObservabilityConfigurationProperty observabilityConfiguration) Sets the value ofCfnServiceProps.getObservabilityConfiguration()
serviceName
(String serviceName) Sets the value ofCfnServiceProps.getServiceName()
sourceConfiguration
(IResolvable sourceConfiguration) Sets the value ofCfnServiceProps.getSourceConfiguration()
sourceConfiguration
(CfnService.SourceConfigurationProperty sourceConfiguration) Sets the value ofCfnServiceProps.getSourceConfiguration()
Sets the value ofCfnServiceProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceConfiguration
@Stability(Stable) public CfnServiceProps.Builder sourceConfiguration(IResolvable sourceConfiguration) Sets the value ofCfnServiceProps.getSourceConfiguration()
- Parameters:
sourceConfiguration
- The source to deploy to the App Runner service. This parameter is required. It can be a code or an image repository.- Returns:
this
-
sourceConfiguration
@Stability(Stable) public CfnServiceProps.Builder sourceConfiguration(CfnService.SourceConfigurationProperty sourceConfiguration) Sets the value ofCfnServiceProps.getSourceConfiguration()
- Parameters:
sourceConfiguration
- The source to deploy to the App Runner service. This parameter is required. It can be a code or an image repository.- Returns:
this
-
autoScalingConfigurationArn
@Stability(Stable) public CfnServiceProps.Builder autoScalingConfigurationArn(String autoScalingConfigurationArn) Sets the value ofCfnServiceProps.getAutoScalingConfigurationArn()
- Parameters:
autoScalingConfigurationArn
- The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service. 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
- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnServiceProps.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnServiceProps.getEncryptionConfiguration()
- Parameters:
encryptionConfiguration
- An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an AWS managed key .- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnServiceProps.Builder encryptionConfiguration(CfnService.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnServiceProps.getEncryptionConfiguration()
- Parameters:
encryptionConfiguration
- An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an AWS managed key .- Returns:
this
-
healthCheckConfiguration
@Stability(Stable) public CfnServiceProps.Builder healthCheckConfiguration(IResolvable healthCheckConfiguration) Sets the value ofCfnServiceProps.getHealthCheckConfiguration()
- Parameters:
healthCheckConfiguration
- The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.- Returns:
this
-
healthCheckConfiguration
@Stability(Stable) public CfnServiceProps.Builder healthCheckConfiguration(CfnService.HealthCheckConfigurationProperty healthCheckConfiguration) Sets the value ofCfnServiceProps.getHealthCheckConfiguration()
- Parameters:
healthCheckConfiguration
- The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnServiceProps.Builder instanceConfiguration(IResolvable instanceConfiguration) Sets the value ofCfnServiceProps.getInstanceConfiguration()
- Parameters:
instanceConfiguration
- The runtime configuration of instances (scaling units) of your service.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnServiceProps.Builder instanceConfiguration(CfnService.InstanceConfigurationProperty instanceConfiguration) Sets the value ofCfnServiceProps.getInstanceConfiguration()
- Parameters:
instanceConfiguration
- The runtime configuration of instances (scaling units) of your service.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnServiceProps.Builder networkConfiguration(IResolvable networkConfiguration) Sets the value ofCfnServiceProps.getNetworkConfiguration()
- Parameters:
networkConfiguration
- Configuration settings related to network traffic of the web application that the App Runner service runs.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnServiceProps.Builder networkConfiguration(CfnService.NetworkConfigurationProperty networkConfiguration) Sets the value ofCfnServiceProps.getNetworkConfiguration()
- Parameters:
networkConfiguration
- Configuration settings related to network traffic of the web application that the App Runner service runs.- Returns:
this
-
observabilityConfiguration
@Stability(Stable) public CfnServiceProps.Builder observabilityConfiguration(IResolvable observabilityConfiguration) Sets the value ofCfnServiceProps.getObservabilityConfiguration()
- Parameters:
observabilityConfiguration
- The observability configuration of your service.- Returns:
this
-
observabilityConfiguration
@Stability(Stable) public CfnServiceProps.Builder observabilityConfiguration(CfnService.ServiceObservabilityConfigurationProperty observabilityConfiguration) Sets the value ofCfnServiceProps.getObservabilityConfiguration()
- Parameters:
observabilityConfiguration
- The observability configuration of your service.- Returns:
this
-
serviceName
Sets the value ofCfnServiceProps.getServiceName()
- Parameters:
serviceName
- A name for the App Runner service. 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.
- Returns:
this
-
tags
Sets the value ofCfnServiceProps.getTags()
- Parameters:
tags
- An optional list of metadata items that you can associate with the App Runner service resource. A tag is a key-value pair.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServiceProps>
- Returns:
- a new instance of
CfnServiceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-