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 réponse
0
Réponse acceptée

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
répondu il y a 2 ans
  • They should correct the documentation. @AWS guys, if you are reading this please correct the example mentioned in above linked doc!

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions