aws-cloudformation-user-guide icon indicating copy to clipboard operation
aws-cloudformation-user-guide copied to clipboard

Documentation for aws-properties-apigatewayv2-stage-routesettings.md is incorrect

Open joshhoegen opened this issue 2 years ago • 0 comments

The docs mention one data type, but CloudFormation says {Object} is needed...

Docs

  DataTraceEnabled: Boolean
  DetailedMetricsEnabled: Boolean
  LoggingLevel: String
  ThrottlingBurstLimit: Integer
  ThrottlingRateLimit: Double

Our Template

LiveStage:
  Type: AWS::ApiGatewayV2::Stage
    Properties:
      AccessLogSettings:
        DestinationArn: !Ref MyArn
        Format: '{ "requestId"  #....JSON formatted stuff
      RouteSettings:
        DataTraceEnabled: true
        DetailedMetricsEnabled: true
        LoggingLevel: INFO

:warning: Errors

Property validation failure: [Value of property {/RouteSettings/LoggingLevel} does not match type {Object}, Value of property {/RouteSettings/DataTraceEnabled} does not match type {Object}, Value of property {/RouteSettings/DetailedMetricsEnabled} does not match type {Object}]

joshhoegen avatar May 10 '22 16:05 joshhoegen