Skip to content

(aws-route53): HealthCheckConfigProperty missing RoutingControlArn #18570

@gjmveloso

Description

@gjmveloso

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

No one assigned

    Labels

    @aws-cdk/aws-route53Related to Amazon Route 53bugThis issue is a bug.effort/smallSmall work item – less than a day of effortin-progressThis issue is being actively worked on.p1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions