aws_api_gateway_model

    0

    0

    lucycodes42

    Terraform snippets

    This code defines a resource called "user" which resides in the "aws_api_gateway_model" resource. The resource has the following properties:

    rest_api_id: This is the identifier for the REST API that this resource corresponds to.

    name: This is the name of the resource.

    description: This is a human-readable description of the resource.

    content_type: This is the MIME type of the data contained in this resource.

    schema: This is a JSON object that describes the structure of the data contained in this resource. The contents of this object are a schema for the data that this resource represents.

    Shortcut: tf_aws_api_gateway_model

    resource "aws_api_gateway_model|" "${MyDemoModel}" {
       rest_api_id = "\${aws_api_gateway_rest_api.MyDemoAPI.id}"
       name = "user"
       description = "a JSON schema"
       content_type = "application/json"
       schema = <<EOF
    {
       "type": "object"
    }
    EOF
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.