Class CfnHealthCheckPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.route53.CfnHealthCheckPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:04.541Z")
@Stability(Stable)
public class CfnHealthCheckPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::Route53::HealthCheck resource is a Route 53 resource type that contains settings for a Route 53 health check.
For information about associating health checks with records, see HealthCheckId in ChangeResourceRecordSets .
You can't create a health check with simple routing.
ELB Load Balancers
If you're registering EC2 instances with an Elastic Load Balancing (ELB) load balancer, do not create Amazon Route 53 health checks for the EC2 instances. When you register an EC2 instance with a load balancer, you configure settings for an ELB health check, which performs a similar function to a Route 53 health check.
Private Hosted Zones
You can associate health checks with failover records in a private hosted zone. Note the following:
- Route 53 health checkers are outside the VPC. To check the health of an endpoint within a VPC by IP address, you must assign a public IP address to the instance in the VPC.
- You can configure a health checker to check the health of an external resource that the instance relies on, such as a database server.
- You can create a CloudWatch metric, associate an alarm with the metric, and then create a health check that is based on the state of the alarm. For example, you might create a CloudWatch metric that checks the status of the Amazon EC2
StatusCheckFailedmetric, add an alarm to the metric, and then create a health check that is based on the state of the alarm. For information about creating CloudWatch metrics and alarms by using the CloudWatch console, see the Amazon CloudWatch User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.route53.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnHealthCheckPropsMixin cfnHealthCheckPropsMixin = CfnHealthCheckPropsMixin.Builder.create(CfnHealthCheckMixinProps.builder()
.healthCheckConfig(HealthCheckConfigProperty.builder()
.alarmIdentifier(AlarmIdentifierProperty.builder()
.name("name")
.region("region")
.build())
.childHealthChecks(List.of("childHealthChecks"))
.enableSni(false)
.failureThreshold(123)
.fullyQualifiedDomainName("fullyQualifiedDomainName")
.healthThreshold(123)
.insufficientDataHealthStatus("insufficientDataHealthStatus")
.inverted(false)
.ipAddress("ipAddress")
.measureLatency(false)
.port(123)
.regions(List.of("regions"))
.requestInterval(123)
.resourcePath("resourcePath")
.routingControlArn("routingControlArn")
.searchString("searchString")
.type("type")
.build())
.healthCheckTags(List.of(HealthCheckTagProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether the specified health check is healthy.static final classA fluent builder forCfnHealthCheckPropsMixin.static interfaceA complex type that contains information about the health check.static interfaceTheHealthCheckTagproperty describes one key-value pair that is associated with anAWS::Route53::HealthCheckresource.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Route53::HealthCheck.CfnHealthCheckPropsMixin(CfnHealthCheckMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Route53::HealthCheck.protectedCfnHealthCheckPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnHealthCheckPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnHealthCheckMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnHealthCheckPropsMixin
protected CfnHealthCheckPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnHealthCheckPropsMixin
protected CfnHealthCheckPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnHealthCheckPropsMixin
@Stability(Stable) public CfnHealthCheckPropsMixin(@NotNull CfnHealthCheckMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Route53::HealthCheck.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnHealthCheckPropsMixin
Create a mixin to apply properties toAWS::Route53::HealthCheck.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-