-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
@aws-cdk/aws-route53Related to Amazon Route 53Related to Amazon Route 53bugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortin-progressThis issue is being actively worked on.This issue is being actively worked on.p1
Description
What is the problem?
The CfnHealthCheck.HealthCheckConfigProperty
is missing the RoutingControlArn
property.
According to Route 53 docs, the HealthCheckConfig
contains a RoutingControlArn
property
Reproduction Steps
new r53.CfnHealthCheck(this, 'HealthCheck', {
healthCheckConfig: {
type: 'RECOVERY_CONTROL',
inverted: true,
routingControlArn: routingControl.attrRoutingControlArn // causes error
}
});
What did you expect to happen?
Cfn* constructs generated from CloudFormation directly should be always stable and updated accordingly.
What actually happened?
TSError: ⨯ Unable to compile TypeScript:
lib/route53-arc.ts:132:17 - error TS2322: Type '{ type: string; inverted: true; routingControlArn: string; }' is not assignable to type 'IResolvable | HealthCheckConfigProperty'.
Object literal may only specify known properties, and 'routingControlArn' does not exist in type 'IResolvable | HealthCheckConfigProperty'.
routingControlArn: routingControl.attrRoutingControlArn,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@aws-cdk/aws-route53/lib/route53.generated.d.ts:99:14
readonly healthCheckConfig: CfnHealthCheck.HealthCheckConfigProperty | cdk.IResolvable;
~~~~~~~~~~~~~~~~~
The expected type comes from property 'healthCheckConfig' which is declared here on type 'CfnHealthCheckProps'
CDK CLI Version
2.8.0 (build 8a5eb49)
Framework Version
1.139.0
Node.js Version
v16.13.2
OS
macOS 12.1
Language
Typescript
Language Version
4.5.5
Other information
No response
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-route53Related to Amazon Route 53Related to Amazon Route 53bugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortin-progressThis issue is being actively worked on.This issue is being actively worked on.p1