Interface CreateServiceRequest.Builder
- All Superinterfaces:
AppRunnerRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateServiceRequest.Builder,
,CreateServiceRequest> SdkBuilder<CreateServiceRequest.Builder,
,CreateServiceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateServiceRequest
-
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.default CreateServiceRequest.Builder
encryptionConfiguration
(Consumer<EncryptionConfiguration.Builder> 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
(EncryptionConfiguration 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.default CreateServiceRequest.Builder
healthCheckConfiguration
(Consumer<HealthCheckConfiguration.Builder> healthCheckConfiguration) The settings for the health check that App Runner performs to monitor the health of the App Runner service.healthCheckConfiguration
(HealthCheckConfiguration healthCheckConfiguration) The settings for the health check that App Runner performs to monitor the health of the App Runner service.default CreateServiceRequest.Builder
instanceConfiguration
(Consumer<InstanceConfiguration.Builder> instanceConfiguration) The runtime configuration of instances (scaling units) of your service.instanceConfiguration
(InstanceConfiguration instanceConfiguration) The runtime configuration of instances (scaling units) of your service.default CreateServiceRequest.Builder
networkConfiguration
(Consumer<NetworkConfiguration.Builder> networkConfiguration) Configuration settings related to network traffic of the web application that the App Runner service runs.networkConfiguration
(NetworkConfiguration networkConfiguration) Configuration settings related to network traffic of the web application that the App Runner service runs.default CreateServiceRequest.Builder
observabilityConfiguration
(Consumer<ServiceObservabilityConfiguration.Builder> observabilityConfiguration) The observability configuration of your service.observabilityConfiguration
(ServiceObservabilityConfiguration observabilityConfiguration) The observability configuration of your service.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serviceName
(String serviceName) A name for the App Runner service.default CreateServiceRequest.Builder
sourceConfiguration
(Consumer<SourceConfiguration.Builder> sourceConfiguration) The source to deploy to the App Runner service.sourceConfiguration
(SourceConfiguration sourceConfiguration) The source to deploy to the App Runner service.tags
(Collection<Tag> tags) An optional list of metadata items that you can associate with the App Runner service resource.tags
(Consumer<Tag.Builder>... tags) An optional list of metadata items that you can associate with the App Runner service resource.An optional list of metadata items that you can associate with the App Runner service resource.Methods inherited from interface software.amazon.awssdk.services.apprunner.model.AppRunnerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
serviceName
A name for the App Runner service. It must be unique across all the running App Runner services in your Amazon Web Services account in the Amazon Web Services Region.
- Parameters:
serviceName
- A name for the App Runner service. It must be unique across all the running App Runner services in your Amazon Web Services account in the Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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. It can be a code or an image repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceConfiguration
default CreateServiceRequest.Builder sourceConfiguration(Consumer<SourceConfiguration.Builder> sourceConfiguration) The source to deploy to the App Runner service. It can be a code or an image repository.
This is a convenience method that creates an instance of theSourceConfiguration.Builder
avoiding the need to create one manually viaSourceConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceConfiguration(SourceConfiguration)
.- Parameters:
sourceConfiguration
- a consumer that will call methods onSourceConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceConfiguration
The runtime configuration of instances (scaling units) of your service.
- Parameters:
instanceConfiguration
- The runtime configuration of instances (scaling units) of your service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceConfiguration
default CreateServiceRequest.Builder instanceConfiguration(Consumer<InstanceConfiguration.Builder> instanceConfiguration) The runtime configuration of instances (scaling units) of your service.
This is a convenience method that creates an instance of theInstanceConfiguration.Builder
avoiding the need to create one manually viaInstanceConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceConfiguration(InstanceConfiguration)
.- Parameters:
instanceConfiguration
- a consumer that will call methods onInstanceConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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. A tag is a key-value pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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. A tag is a key-value pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An optional list of metadata items that you can associate with the App Runner service resource. A tag is a key-value pair.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
encryptionConfiguration
CreateServiceRequest.Builder encryptionConfiguration(EncryptionConfiguration 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 Amazon Web Services 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. By default, App Runner uses an Amazon Web Services managed key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionConfiguration
default CreateServiceRequest.Builder encryptionConfiguration(Consumer<EncryptionConfiguration.Builder> 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 Amazon Web Services managed key.
This is a convenience method that creates an instance of theEncryptionConfiguration.Builder
avoiding the need to create one manually viaEncryptionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toencryptionConfiguration(EncryptionConfiguration)
.- Parameters:
encryptionConfiguration
- a consumer that will call methods onEncryptionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
healthCheckConfiguration
CreateServiceRequest.Builder healthCheckConfiguration(HealthCheckConfiguration healthCheckConfiguration) The settings for the health check that App Runner performs to monitor the health of the App Runner service.
- Parameters:
healthCheckConfiguration
- The settings for the health check that App Runner performs to monitor the health of the App Runner service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheckConfiguration
default CreateServiceRequest.Builder healthCheckConfiguration(Consumer<HealthCheckConfiguration.Builder> healthCheckConfiguration) The settings for the health check that App Runner performs to monitor the health of the App Runner service.
This is a convenience method that creates an instance of theHealthCheckConfiguration.Builder
avoiding the need to create one manually viaHealthCheckConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheckConfiguration(HealthCheckConfiguration)
.- Parameters:
healthCheckConfiguration
- a consumer that will call methods onHealthCheckConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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. 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default CreateServiceRequest.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration) Configuration settings related to network traffic of the web application that the App Runner service runs.
This is a convenience method that creates an instance of theNetworkConfiguration.Builder
avoiding the need to create one manually viaNetworkConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkConfiguration(NetworkConfiguration)
.- Parameters:
networkConfiguration
- a consumer that will call methods onNetworkConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
observabilityConfiguration
CreateServiceRequest.Builder observabilityConfiguration(ServiceObservabilityConfiguration observabilityConfiguration) The observability configuration of your service.
- Parameters:
observabilityConfiguration
- The observability configuration of your service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
observabilityConfiguration
default CreateServiceRequest.Builder observabilityConfiguration(Consumer<ServiceObservabilityConfiguration.Builder> observabilityConfiguration) The observability configuration of your service.
This is a convenience method that creates an instance of theServiceObservabilityConfiguration.Builder
avoiding the need to create one manually viaServiceObservabilityConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toobservabilityConfiguration(ServiceObservabilityConfiguration)
.- Parameters:
observabilityConfiguration
- a consumer that will call methods onServiceObservabilityConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateServiceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateServiceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-