class CfnHealthCheckPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Route53.Mixins.CfnHealthCheckPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsroute53/mixins#CfnHealthCheckPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.route53.mixins.CfnHealthCheckPropsMixin |
Python | aws_cdk.mixins_preview.aws_route53.mixins.CfnHealthCheckPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_route53 » mixins » CfnHealthCheckPropsMixin |
Implements
IMixin
Extends
Mixin
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 .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-healthcheck.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as route53_mixins } from '@aws-cdk/mixins-preview/aws-route53';
const cfnHealthCheckPropsMixin = new route53_mixins.CfnHealthCheckPropsMixin({
healthCheckConfig: {
alarmIdentifier: {
name: 'name',
region: 'region',
},
childHealthChecks: ['childHealthChecks'],
enableSni: false,
failureThreshold: 123,
fullyQualifiedDomainName: 'fullyQualifiedDomainName',
healthThreshold: 123,
insufficientDataHealthStatus: 'insufficientDataHealthStatus',
inverted: false,
ipAddress: 'ipAddress',
measureLatency: false,
port: 123,
regions: ['regions'],
requestInterval: 123,
resourcePath: 'resourcePath',
routingControlArn: 'routingControlArn',
searchString: 'searchString',
type: 'type',
},
healthCheckTags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnHealthCheckPropsMixin(props: CfnHealthCheckMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Health Check Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Route53::HealthCheck.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript