All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.apprunner.alpha.HealthCheck Maven / Gradle / Ivy

There is a newer version: 2.173.2-alpha.0
Show newest version
package software.amazon.awscdk.services.apprunner.alpha;

/**
 * (experimental) Contains static factory methods for creating health checks for different protocols.
 * 

* Example: *

*

 * Service.Builder.create(this, "Service")
 *         .source(Source.fromEcrPublic(EcrPublicProps.builder()
 *                 .imageConfiguration(ImageConfiguration.builder().port(8000).build())
 *                 .imageIdentifier("public.ecr.aws/aws-containers/hello-app-runner:latest")
 *                 .build()))
 *         .healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder()
 *                 .healthyThreshold(5)
 *                 .interval(Duration.seconds(10))
 *                 .path("/")
 *                 .timeout(Duration.seconds(10))
 *                 .unhealthyThreshold(10)
 *                 .build()))
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-11-22T02:24:11.366Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.apprunner.alpha.$Module.class, fqn = "@aws-cdk/aws-apprunner-alpha.HealthCheck") public class HealthCheck extends software.amazon.jsii.JsiiObject { protected HealthCheck(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected HealthCheck(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * (experimental) Construct a HTTP health check. *

* @param options */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.HealthCheck http(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.apprunner.alpha.HttpHealthCheckOptions options) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.HealthCheck.class, "http", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.HealthCheck.class), new Object[] { options }); } /** * (experimental) Construct a HTTP health check. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.HealthCheck http() { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.HealthCheck.class, "http", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.HealthCheck.class)); } /** * (experimental) Construct a TCP health check. *

* @param options */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.HealthCheck tcp(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.apprunner.alpha.TcpHealthCheckOptions options) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.HealthCheck.class, "tcp", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.HealthCheck.class), new Object[] { options }); } /** * (experimental) Construct a TCP health check. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.HealthCheck tcp() { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.apprunner.alpha.HealthCheck.class, "tcp", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.HealthCheck.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.CfnService.HealthCheckConfigurationProperty bind() { return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.CfnService.HealthCheckConfigurationProperty.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.apprunner.alpha.HealthCheckProtocolType getHealthCheckProtocolType() { return software.amazon.jsii.Kernel.get(this, "healthCheckProtocolType", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.apprunner.alpha.HealthCheckProtocolType.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getHealthyThreshold() { return software.amazon.jsii.Kernel.get(this, "healthyThreshold", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.Duration getInterval() { return software.amazon.jsii.Kernel.get(this, "interval", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Duration.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull software.amazon.awscdk.Duration getTimeout() { return software.amazon.jsii.Kernel.get(this, "timeout", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Duration.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.Number getUnhealthyThreshold() { return software.amazon.jsii.Kernel.get(this, "unhealthyThreshold", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable java.lang.String getPath() { return software.amazon.jsii.Kernel.get(this, "path", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy