DocumentationPart Property Cloudformation example

0

I am having hard time understanding how to pass Property in TypeAWS::ApiGateway::DocumentationPart.

Here is the sample CF template:-

  DocumentationPart:
    Type: AWS::ApiGateway::DocumentationPart
    Properties:
      Location:
        Type: "RESOURCE"
        Path: "/path"
      RestApiId: !Ref RestApiGateway
      Property: "{\"description\":\"Testing\"}"

The Property is wrong and errors out. Any idea how do i pass it in my CF template? AWS docs have no example showing how to pass it.

1 Answer
0
Accepted Answer

Hi! Good question, this is slightly confusing. There's no "Property" under Properties for AWS::ApiGateway::DocumentationPart. Try it with "Properties": https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-documentationpart.html

jsonc
answered 2 years ago
  • They should correct the documentation. @AWS guys, if you are reading this please correct the example mentioned in above linked doc!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions