Class CfnServiceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apprunner.CfnServiceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceMixinProps>
- Enclosing interface:
CfnServiceMixinProps
@Stability(Stable)
public static final class CfnServiceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceMixinProps>
A builder for
CfnServiceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingConfigurationArn(String autoScalingConfigurationArn) Sets the value ofCfnServiceMixinProps.getAutoScalingConfigurationArn()build()Builds the configured instance.encryptionConfiguration(CfnServicePropsMixin.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnServiceMixinProps.getEncryptionConfiguration()encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnServiceMixinProps.getEncryptionConfiguration()healthCheckConfiguration(CfnServicePropsMixin.HealthCheckConfigurationProperty healthCheckConfiguration) Sets the value ofCfnServiceMixinProps.getHealthCheckConfiguration()healthCheckConfiguration(IResolvable healthCheckConfiguration) Sets the value ofCfnServiceMixinProps.getHealthCheckConfiguration()instanceConfiguration(CfnServicePropsMixin.InstanceConfigurationProperty instanceConfiguration) Sets the value ofCfnServiceMixinProps.getInstanceConfiguration()instanceConfiguration(IResolvable instanceConfiguration) Sets the value ofCfnServiceMixinProps.getInstanceConfiguration()networkConfiguration(CfnServicePropsMixin.NetworkConfigurationProperty networkConfiguration) Sets the value ofCfnServiceMixinProps.getNetworkConfiguration()networkConfiguration(IResolvable networkConfiguration) Sets the value ofCfnServiceMixinProps.getNetworkConfiguration()observabilityConfiguration(CfnServicePropsMixin.ServiceObservabilityConfigurationProperty observabilityConfiguration) Sets the value ofCfnServiceMixinProps.getObservabilityConfiguration()observabilityConfiguration(IResolvable observabilityConfiguration) Sets the value ofCfnServiceMixinProps.getObservabilityConfiguration()serviceName(String serviceName) Sets the value ofCfnServiceMixinProps.getServiceName()sourceConfiguration(CfnServicePropsMixin.SourceConfigurationProperty sourceConfiguration) Sets the value ofCfnServiceMixinProps.getSourceConfiguration()sourceConfiguration(IResolvable sourceConfiguration) Sets the value ofCfnServiceMixinProps.getSourceConfiguration()Sets the value ofCfnServiceMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingConfigurationArn
@Stability(Stable) public CfnServiceMixinProps.Builder autoScalingConfigurationArn(String autoScalingConfigurationArn) Sets the value ofCfnServiceMixinProps.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/3Specify 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 CfnServiceMixinProps.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnServiceMixinProps.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 CfnServiceMixinProps.Builder encryptionConfiguration(CfnServicePropsMixin.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnServiceMixinProps.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 CfnServiceMixinProps.Builder healthCheckConfiguration(IResolvable healthCheckConfiguration) Sets the value ofCfnServiceMixinProps.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 CfnServiceMixinProps.Builder healthCheckConfiguration(CfnServicePropsMixin.HealthCheckConfigurationProperty healthCheckConfiguration) Sets the value ofCfnServiceMixinProps.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 CfnServiceMixinProps.Builder instanceConfiguration(IResolvable instanceConfiguration) Sets the value ofCfnServiceMixinProps.getInstanceConfiguration()- Parameters:
instanceConfiguration- The runtime configuration of instances (scaling units) of your service.- Returns:
this
-
instanceConfiguration
@Stability(Stable) public CfnServiceMixinProps.Builder instanceConfiguration(CfnServicePropsMixin.InstanceConfigurationProperty instanceConfiguration) Sets the value ofCfnServiceMixinProps.getInstanceConfiguration()- Parameters:
instanceConfiguration- The runtime configuration of instances (scaling units) of your service.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnServiceMixinProps.Builder networkConfiguration(IResolvable networkConfiguration) Sets the value ofCfnServiceMixinProps.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 CfnServiceMixinProps.Builder networkConfiguration(CfnServicePropsMixin.NetworkConfigurationProperty networkConfiguration) Sets the value ofCfnServiceMixinProps.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 CfnServiceMixinProps.Builder observabilityConfiguration(IResolvable observabilityConfiguration) Sets the value ofCfnServiceMixinProps.getObservabilityConfiguration()- Parameters:
observabilityConfiguration- The observability configuration of your service.- Returns:
this
-
observabilityConfiguration
@Stability(Stable) public CfnServiceMixinProps.Builder observabilityConfiguration(CfnServicePropsMixin.ServiceObservabilityConfigurationProperty observabilityConfiguration) Sets the value ofCfnServiceMixinProps.getObservabilityConfiguration()- Parameters:
observabilityConfiguration- The observability configuration of your service.- Returns:
this
-
serviceName
Sets the value ofCfnServiceMixinProps.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, CloudFormation generates a name for your service.
- Returns:
this
-
sourceConfiguration
@Stability(Stable) public CfnServiceMixinProps.Builder sourceConfiguration(IResolvable sourceConfiguration) Sets the value ofCfnServiceMixinProps.getSourceConfiguration()- Parameters:
sourceConfiguration- The source to deploy to the App Runner service. It can be a code or an image repository.- Returns:
this
-
sourceConfiguration
@Stability(Stable) public CfnServiceMixinProps.Builder sourceConfiguration(CfnServicePropsMixin.SourceConfigurationProperty sourceConfiguration) Sets the value ofCfnServiceMixinProps.getSourceConfiguration()- Parameters:
sourceConfiguration- The source to deploy to the App Runner service. It can be a code or an image repository.- Returns:
this
-
tags
Sets the value ofCfnServiceMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceMixinProps>- Returns:
- a new instance of
CfnServiceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-