Class CfnService.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService>
- Enclosing class:
CfnService
CfnService
.-
Method Summary
Modifier and TypeMethodDescriptionautoScalingConfigurationArn
(String autoScalingConfigurationArn) The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service.build()
static CfnService.Builder
encryptionConfiguration
(IResolvable 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.encryptionConfiguration
(CfnService.EncryptionConfigurationProperty 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.healthCheckConfiguration
(IResolvable healthCheckConfiguration) The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.healthCheckConfiguration
(CfnService.HealthCheckConfigurationProperty healthCheckConfiguration) The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.instanceConfiguration
(IResolvable instanceConfiguration) The runtime configuration of instances (scaling units) of your service.instanceConfiguration
(CfnService.InstanceConfigurationProperty instanceConfiguration) The runtime configuration of instances (scaling units) of your service.networkConfiguration
(IResolvable networkConfiguration) Configuration settings related to network traffic of the web application that the App Runner service runs.networkConfiguration
(CfnService.NetworkConfigurationProperty networkConfiguration) Configuration settings related to network traffic of the web application that the App Runner service runs.observabilityConfiguration
(IResolvable observabilityConfiguration) The observability configuration of your service.observabilityConfiguration
(CfnService.ServiceObservabilityConfigurationProperty observabilityConfiguration) The observability configuration of your service.serviceName
(String serviceName) A name for the App Runner service.sourceConfiguration
(IResolvable sourceConfiguration) The source to deploy to the App Runner service.sourceConfiguration
(CfnService.SourceConfigurationProperty sourceConfiguration) The source to deploy to the App Runner service.An optional list of metadata items that you can associate with the App Runner service resource.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnService.Builder
.
-
sourceConfiguration
The source to deploy to the App Runner service.It can be a code or an image repository.
- Parameters:
sourceConfiguration
- The source to deploy to the App Runner service. This parameter is required.- Returns:
this
-
sourceConfiguration
@Stability(Stable) public CfnService.Builder sourceConfiguration(CfnService.SourceConfigurationProperty sourceConfiguration) The source to deploy to the App Runner service.It can be a code or an image repository.
- Parameters:
sourceConfiguration
- The source to deploy to the App Runner service. This parameter is required.- Returns:
this
-
autoScalingConfigurationArn
@Stability(Stable) public CfnService.Builder autoScalingConfigurationArn(String 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
- Parameters:
autoScalingConfigurationArn
- The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service. This parameter is required.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnService.Builder encryptionConfiguration(IResolvable 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 .
- 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. This parameter is required.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnService.Builder encryptionConfiguration(CfnService.EncryptionConfigurationProperty 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 .
- 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. This parameter is required.- Returns:
this
-
healthCheckConfiguration
@Stability(Stable) public CfnService.Builder healthCheckConfiguration(IResolvable healthCheckConfiguration) The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.- Parameters:
healthCheckConfiguration
- The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service. This parameter is required.- Returns:
this
-
healthCheckConfiguration
@Stability(Stable) public CfnService.Builder healthCheckConfiguration(CfnService.HealthCheckConfigurationProperty healthCheckConfiguration) The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service.- Parameters:
healthCheckConfiguration
- The settings for the health check that AWS App Runner performs to monitor the health of the App Runner service. This parameter is required.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnService.Builder instanceConfiguration(IResolvable instanceConfiguration) The runtime configuration of instances (scaling units) of your service.- Parameters:
instanceConfiguration
- The runtime configuration of instances (scaling units) of your service. This parameter is required.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnService.Builder instanceConfiguration(CfnService.InstanceConfigurationProperty instanceConfiguration) The runtime configuration of instances (scaling units) of your service.- Parameters:
instanceConfiguration
- The runtime configuration of instances (scaling units) of your service. This parameter is required.- Returns:
this
-
networkConfiguration
Configuration settings related to network traffic of the web application that the App Runner service runs.- Parameters:
networkConfiguration
- Configuration settings related to network traffic of the web application that the App Runner service runs. This parameter is required.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnService.Builder networkConfiguration(CfnService.NetworkConfigurationProperty networkConfiguration) Configuration settings related to network traffic of the web application that the App Runner service runs.- Parameters:
networkConfiguration
- Configuration settings related to network traffic of the web application that the App Runner service runs. This parameter is required.- Returns:
this
-
observabilityConfiguration
@Stability(Stable) public CfnService.Builder observabilityConfiguration(IResolvable observabilityConfiguration) The observability configuration of your service.- Parameters:
observabilityConfiguration
- The observability configuration of your service. This parameter is required.- Returns:
this
-
observabilityConfiguration
@Stability(Stable) public CfnService.Builder observabilityConfiguration(CfnService.ServiceObservabilityConfigurationProperty observabilityConfiguration) The observability configuration of your service.- Parameters:
observabilityConfiguration
- The observability configuration of your service. This parameter is required.- Returns:
this
-
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.
- Parameters:
serviceName
- A name for the App Runner service. This parameter is required.- Returns:
this
-
tags
An optional list of metadata items that you can associate with the App Runner service resource.A tag is a key-value pair.
- Parameters:
tags
- An optional list of metadata items that you can associate with the App Runner service resource. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService>
- Returns:
- a newly built instance of
CfnService
.
-