[
  {
    "description": "No parameters",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {},
    "cases": [
      {
        "description": "legacy rest-json No parameters",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/2014-01-01/jobs"
          },
          "name": "OperationName"
        },
        "serialized": {
          "body": "",
          "uri": "/2014-01-01/jobs",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "URI parameter only with no location name",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "PipelineId": {
            "shape": "StringType",
            "location": "uri"
          }
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json URI parameter only with no location name",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "PipelineId": "foo"
        },
        "serialized": {
          "body": "",
          "uri": "/2014-01-01/jobsByPipeline/foo",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "URI parameter only with location name",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "Foo": {
            "shape": "StringType",
            "location": "uri",
            "locationName": "PipelineId"
          }
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json URI parameter only with location name",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "Foo": "bar"
        },
        "serialized": {
          "body": "",
          "uri": "/2014-01-01/jobsByPipeline/bar",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "Querystring list of strings",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "Items": {
            "shape": "StringList",
            "location": "querystring",
            "locationName": "item"
          }
        }
      },
      "StringList": {
        "type": "list",
        "member": {
          "shape": "String"
        }
      },
      "String": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Querystring list of strings",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/path"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "Items": [
            "value1",
            "value2"
          ]
        },
        "serialized": {
          "body": "",
          "uri": "/path?item=value1&item=value2",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "String to string maps in querystring",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "PipelineId": {
            "shape": "StringType",
            "location": "uri"
          },
          "QueryDoc": {
            "shape": "MapStringStringType",
            "location": "querystring"
          }
        }
      },
      "MapStringStringType": {
        "type": "map",
        "key": {
          "shape": "StringType"
        },
        "value": {
          "shape": "StringType"
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json String to string maps in querystring",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "PipelineId": "foo",
          "QueryDoc": {
            "bar": "baz",
            "fizz": "buzz"
          }
        },
        "serialized": {
          "body": "",
          "uri": "/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "String to string list maps in querystring",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "PipelineId": {
            "shape": "StringType",
            "location": "uri"
          },
          "QueryDoc": {
            "shape": "MapStringStringListType",
            "location": "querystring"
          }
        }
      },
      "MapStringStringListType": {
        "type": "map",
        "key": {
          "shape": "StringType"
        },
        "value": {
          "shape": "StringListType"
        }
      },
      "StringListType": {
        "type": "list",
        "member": {
          "shape": "StringType"
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json String to string list maps in querystring",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "PipelineId": "id",
          "QueryDoc": {
            "foo": [
              "bar",
              "baz"
            ],
            "fizz": [
              "buzz",
              "pop"
            ]
          }
        },
        "serialized": {
          "body": "",
          "uri": "/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "Boolean in querystring",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "BoolQuery": {
            "shape": "BoolType",
            "location": "querystring",
            "locationName": "bool-query"
          }
        }
      },
      "BoolType": {
        "type": "boolean"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Boolean in querystring 1",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/path"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "BoolQuery": true
        },
        "serialized": {
          "body": "",
          "uri": "/path?bool-query=true",
          "headers": {}
        }
      },
      {
        "description": "legacy rest-json Boolean in querystring 2",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/path"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "BoolQuery": false
        },
        "serialized": {
          "body": "",
          "uri": "/path?bool-query=false",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "URI parameter and querystring params",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "PipelineId": {
            "shape": "StringType",
            "location": "uri",
            "locationName": "PipelineId"
          },
          "Ascending": {
            "shape": "StringType",
            "location": "querystring",
            "locationName": "Ascending"
          },
          "PageToken": {
            "shape": "StringType",
            "location": "querystring",
            "locationName": "PageToken"
          }
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json URI parameter and querystring params",
        "given": {
          "http": {
            "method": "GET",
            "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "PipelineId": "foo",
          "Ascending": "true",
          "PageToken": "bar"
        },
        "serialized": {
          "body": "",
          "uri": "/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "URI parameter, querystring params and JSON body",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "PipelineId": {
            "shape": "StringType",
            "location": "uri",
            "locationName": "PipelineId"
          },
          "Ascending": {
            "shape": "StringType",
            "location": "querystring",
            "locationName": "Ascending"
          },
          "PageToken": {
            "shape": "StringType",
            "location": "querystring",
            "locationName": "PageToken"
          },
          "Config": {
            "shape": "StructType"
          }
        }
      },
      "StringType": {
        "type": "string"
      },
      "StructType": {
        "type": "structure",
        "members": {
          "A": {
            "shape": "StringType"
          },
          "B": {
            "shape": "StringType"
          }
        }
      }
    },
    "cases": [
      {
        "description": "legacy rest-json URI parameter, querystring params and JSON body",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "PipelineId": "foo",
          "Ascending": "true",
          "PageToken": "bar",
          "Config": {
            "A": "one",
            "B": "two"
          }
        },
        "serialized": {
          "body": "{\"Config\": {\"A\": \"one\", \"B\": \"two\"}}",
          "uri": "/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar",
          "headers": {}
        }
      }
    ]
  },
  {
    "description": "URI parameter, querystring params, headers and JSON body",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "PipelineId": {
            "shape": "StringType",
            "location": "uri",
            "locationName": "PipelineId"
          },
          "Ascending": {
            "shape": "StringType",
            "location": "querystring",
            "locationName": "Ascending"
          },
          "Checksum": {
            "shape": "StringType",
            "location": "header",
            "locationName": "x-amz-checksum"
          },
          "PageToken": {
            "shape": "StringType",
            "location": "querystring",
            "locationName": "PageToken"
          },
          "Config": {
            "shape": "StructType"
          }
        }
      },
      "StringType": {
        "type": "string"
      },
      "StructType": {
        "type": "structure",
        "members": {
          "A": {
            "shape": "StringType"
          },
          "B": {
            "shape": "StringType"
          }
        }
      }
    },
    "cases": [
      {
        "description": "legacy rest-json URI parameter, querystring params, headers and JSON body",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "PipelineId": "foo",
          "Ascending": "true",
          "Checksum": "12345",
          "PageToken": "bar",
          "Config": {
            "A": "one",
            "B": "two"
          }
        },
        "serialized": {
          "body": "{\"Config\": {\"A\": \"one\", \"B\": \"two\"}}",
          "uri": "/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar",
          "headers": {
            "x-amz-checksum": "12345"
          }
        }
      }
    ]
  },
  {
    "description": "Streaming payload",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "vaultName": {
            "shape": "StringType",
            "location": "uri",
            "locationName": "vaultName"
          },
          "checksum": {
            "shape": "StringType",
            "location": "header",
            "locationName": "x-amz-sha256-tree-hash"
          },
          "body": {
            "shape": "Stream"
          }
        },
        "required": [
          "vaultName"
        ],
        "payload": "body"
      },
      "StringType": {
        "type": "string"
      },
      "Stream": {
        "type": "blob",
        "streaming": true
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Streaming payload",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/2014-01-01/vaults/{vaultName}/archives"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "vaultName": "name",
          "checksum": "foo",
          "body": "contents"
        },
        "serialized": {
          "body": "contents",
          "uri": "/2014-01-01/vaults/name/archives",
          "headers": {
            "x-amz-sha256-tree-hash": "foo"
          }
        }
      }
    ]
  },
  {
    "description": "Serialize blobs in body",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "Foo": {
            "shape": "StringType",
            "location": "uri",
            "locationName": "Foo"
          },
          "Bar": {
            "shape": "BlobType"
          }
        },
        "required": [
          "Foo"
        ]
      },
      "StringType": {
        "type": "string"
      },
      "BlobType": {
        "type": "blob"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Serialize blobs in body",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/2014-01-01/{Foo}"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "Foo": "foo_name",
          "Bar": "Blob param"
        },
        "serialized": {
          "body": "{\"Bar\": \"QmxvYiBwYXJhbQ==\"}",
          "uri": "/2014-01-01/foo_name"
        }
      }
    ]
  },
  {
    "description": "Blob payload",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "foo": {
            "shape": "FooShape"
          }
        }
      },
      "FooShape": {
        "type": "blob"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Blob payload 1",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/"
          },
          "input": {
            "shape": "InputShape",
            "payload": "foo"
          },
          "name": "OperationName"
        },
        "params": {
          "foo": "bar"
        },
        "serialized": {
          "method": "POST",
          "body": "bar",
          "uri": "/"
        }
      },
      {
        "description": "legacy rest-json Blob payload 2",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/"
          },
          "input": {
            "shape": "InputShape",
            "payload": "foo"
          },
          "name": "OperationName"
        },
        "params": {},
        "serialized": {
          "method": "POST",
          "body": "",
          "uri": "/"
        }
      }
    ]
  },
  {
    "description": "Structure payload",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "foo": {
            "shape": "FooShape"
          }
        }
      },
      "FooShape": {
        "locationName": "foo",
        "type": "structure",
        "members": {
          "baz": {
            "shape": "BazShape"
          }
        }
      },
      "BazShape": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Structure payload 1",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/"
          },
          "input": {
            "shape": "InputShape",
            "payload": "foo"
          },
          "name": "OperationName"
        },
        "params": {
          "foo": {
            "baz": "bar"
          }
        },
        "serialized": {
          "method": "POST",
          "body": "{\"baz\": \"bar\"}",
          "uri": "/"
        }
      },
      {
        "description": "legacy rest-json Structure payload 2",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/"
          },
          "input": {
            "shape": "InputShape",
            "payload": "foo"
          },
          "name": "OperationName"
        },
        "params": {},
        "serialized": {
          "method": "POST",
          "body": "{}",
          "uri": "/"
        }
      }
    ]
  },
  {
    "description": "Omits null query params, but serializes empty strings",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "foo": {
            "location": "querystring",
            "locationName": "param-name",
            "shape": "Foo"
          }
        }
      },
      "Foo": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Omits null query params, but serializes empty strings 1",
        "given": {
          "name": "OperationName",
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "input": {
            "shape": "InputShape"
          }
        },
        "params": {
          "foo": null
        },
        "serialized": {
          "method": "POST",
          "body": "",
          "uri": "/path"
        }
      },
      {
        "description": "legacy rest-json Omits null query params, but serializes empty strings 2",
        "given": {
          "name": "OperationName",
          "http": {
            "method": "POST",
            "requestUri": "/path?abc=mno"
          },
          "input": {
            "shape": "InputShape"
          }
        },
        "params": {
          "foo": ""
        },
        "serialized": {
          "method": "POST",
          "body": "",
          "uri": "/path?abc=mno&param-name="
        }
      }
    ]
  },
  {
    "description": "Recursive shapes",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "RecursiveStruct": {
            "shape": "RecursiveStructType"
          }
        }
      },
      "RecursiveStructType": {
        "type": "structure",
        "members": {
          "NoRecurse": {
            "shape": "StringType"
          },
          "RecursiveStruct": {
            "shape": "RecursiveStructType"
          },
          "RecursiveList": {
            "shape": "RecursiveListType"
          },
          "RecursiveMap": {
            "shape": "RecursiveMapType"
          }
        }
      },
      "RecursiveListType": {
        "type": "list",
        "member": {
          "shape": "RecursiveStructType"
        }
      },
      "RecursiveMapType": {
        "type": "map",
        "key": {
          "shape": "StringType"
        },
        "value": {
          "shape": "RecursiveStructType"
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Recursive shapes 1",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "RecursiveStruct": {
            "NoRecurse": "foo"
          }
        },
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}"
        }
      },
      {
        "description": "legacy rest-json Recursive shapes 2",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "RecursiveStruct": {
            "RecursiveStruct": {
              "NoRecurse": "foo"
            }
          }
        },
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"RecursiveStruct\": {\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}}"
        }
      },
      {
        "description": "legacy rest-json Recursive shapes 3",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "RecursiveStruct": {
            "RecursiveStruct": {
              "RecursiveStruct": {
                "RecursiveStruct": {
                  "NoRecurse": "foo"
                }
              }
            }
          }
        },
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"RecursiveStruct\": {\"RecursiveStruct\": {\"RecursiveStruct\": {\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}}}}"
        }
      },
      {
        "description": "legacy rest-json Recursive shapes 4",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "RecursiveStruct": {
            "RecursiveList": [
              {
                "NoRecurse": "foo"
              },
              {
                "NoRecurse": "bar"
              }
            ]
          }
        },
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"RecursiveStruct\": {\"RecursiveList\": [{\"NoRecurse\": \"foo\"}, {\"NoRecurse\": \"bar\"}]}}"
        }
      },
      {
        "description": "legacy rest-json Recursive shapes 5",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "RecursiveStruct": {
            "RecursiveList": [
              {
                "NoRecurse": "foo"
              },
              {
                "RecursiveStruct": {
                  "NoRecurse": "bar"
                }
              }
            ]
          }
        },
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"RecursiveStruct\": {\"RecursiveList\": [{\"NoRecurse\": \"foo\"}, {\"RecursiveStruct\": {\"NoRecurse\": \"bar\"}}]}}"
        }
      },
      {
        "description": "legacy rest-json Recursive shapes 6",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "RecursiveStruct": {
            "RecursiveMap": {
              "foo": {
                "NoRecurse": "foo"
              },
              "bar": {
                "NoRecurse": "bar"
              }
            }
          }
        },
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"RecursiveStruct\": {\"RecursiveMap\": {\"foo\": {\"NoRecurse\": \"foo\"}, \"bar\": {\"NoRecurse\": \"bar\"}}}}"
        }
      }
    ]
  },
  {
    "description": "Timestamp values",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "TimeArg": {
            "shape": "TimestampType"
          },
          "TimeArgInHeader": {
            "shape": "TimestampType",
            "location": "header",
            "locationName": "x-amz-timearg"
          },
          "TimeArgInQuery": {
            "shape": "TimestampType",
            "location": "querystring",
            "locationName": "TimeQuery"
          },
          "TimeCustom": {
            "timestampFormat": "iso8601",
            "shape": "TimestampType"
          },
          "TimeCustomInHeader": {
            "timestampFormat": "unixTimestamp",
            "shape": "TimestampType",
            "location": "header",
            "locationName": "x-amz-timecustom-header"
          },
          "TimeCustomInQuery": {
            "timestampFormat": "unixTimestamp",
            "shape": "TimestampType",
            "location": "querystring",
            "locationName": "TimeCustomQuery"
          },
          "TimeFormat": {
            "shape": "TimestampFormatRfcType"
          },
          "TimeFormatInHeader": {
            "shape": "TimestampFormatUnixType",
            "location": "header",
            "locationName": "x-amz-timeformat-header"
          },
          "TimeFormatInQuery": {
            "shape": "TimestampFormatUnixType",
            "location": "querystring",
            "locationName": "TimeFormatQuery"
          }
        }
      },
      "TimestampFormatRfcType": {
        "timestampFormat": "rfc822",
        "type": "timestamp"
      },
      "TimestampFormatUnixType": {
        "timestampFormat": "unixTimestamp",
        "type": "timestamp"
      },
      "TimestampType": {
        "type": "timestamp"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Timestamp values",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "TimeArg": 1422172800,
          "TimeArgInQuery": 1422172800,
          "TimeArgInHeader": 1422172800,
          "TimeCustom": 1422172800,
          "TimeCustomInQuery": 1422172800,
          "TimeCustomInHeader": 1422172800,
          "TimeFormat": 1422172800,
          "TimeFormatInQuery": 1422172800,
          "TimeFormatInHeader": 1422172800
        },
        "serialized": {
          "uri": "/path?TimeQuery=2015-01-25T08%3A00%3A00Z&TimeCustomQuery=1422172800&TimeFormatQuery=1422172800",
          "headers": {
            "x-amz-timearg": "Sun, 25 Jan 2015 08:00:00 GMT",
            "x-amz-timecustom-header": "1422172800",
            "x-amz-timeformat-header": "1422172800"
          },
          "body": "{\"TimeArg\": 1422172800, \"TimeCustom\": \"2015-01-25T08:00:00Z\", \"TimeFormat\": \"Sun, 25 Jan 2015 08:00:00 GMT\"}"
        }
      }
    ]
  },
  {
    "description": "Named locations in JSON body",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "TimeArg": {
            "shape": "TimestampType",
            "locationName": "timestamp_location"
          }
        }
      },
      "TimestampType": {
        "type": "timestamp"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Named locations in JSON body",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "TimeArg": 1422172800
        },
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"timestamp_location\": 1422172800}"
        }
      }
    ]
  },
  {
    "description": "String payload",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "foo": {
            "shape": "FooShape"
          }
        }
      },
      "FooShape": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json String payload",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/"
          },
          "input": {
            "shape": "InputShape",
            "payload": "foo"
          },
          "name": "OperationName"
        },
        "params": {
          "foo": "bar"
        },
        "serialized": {
          "method": "POST",
          "body": "bar",
          "uri": "/"
        }
      }
    ]
  },
  {
    "description": "Idempotency token auto fill",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "Token": {
            "shape": "StringType",
            "idempotencyToken": true
          }
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Idempotency token auto fill 1",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {
          "Token": "abc123"
        },
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"Token\": \"abc123\"}"
        }
      },
      {
        "description": "legacy rest-json Idempotency token auto fill 2",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "name": "OperationName"
        },
        "params": {},
        "serialized": {
          "uri": "/path",
          "headers": {},
          "body": "{\"Token\": \"00000000-0000-4000-8000-000000000000\"}"
        }
      }
    ]
  },
  {
    "description": "JSON value trait",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "Attr": {
            "shape": "StringType",
            "jsonvalue": true,
            "location": "header",
            "locationName": "X-Amz-Foo"
          }
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json JSON value trait 1",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST"
          },
          "name": "OperationName"
        },
        "params": {
          "Attr": {
            "Foo": "Bar"
          }
        },
        "serialized": {
          "uri": "/",
          "headers": {
            "X-Amz-Foo": "eyJGb28iOiJCYXIifQ=="
          },
          "body": ""
        }
      },
      {
        "description": "legacy rest-json JSON value trait 2",
        "given": {
          "input": {
            "shape": "InputShape"
          },
          "http": {
            "method": "POST"
          },
          "name": "OperationName"
        },
        "params": {},
        "serialized": {
          "uri": "/",
          "headers": {},
          "body": ""
        }
      }
    ]
  },
  {
    "description": "Endpoint host trait",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "clientEndpoint": "https://service.region.amazonaws.com",
    "shapes": {
      "StaticInputShape": {
        "type": "structure",
        "members": {
          "Name": {
            "shape": "StringType"
          }
        }
      },
      "MemberRefInputShape": {
        "type": "structure",
        "members": {
          "Name": {
            "shape": "StringType",
            "hostLabel": true
          }
        }
      },
      "StringType": {
        "type": "string"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Endpoint host trait 1",
        "given": {
          "name": "StaticOp",
          "input": {
            "shape": "StaticInputShape"
          },
          "http": {
            "method": "POST",
            "requestUri": "/path"
          },
          "endpoint": {
            "hostPrefix": "data-"
          }
        },
        "params": {
          "Name": "myname"
        },
        "serialized": {
          "uri": "/path",
          "body": "{\"Name\": \"myname\"}",
          "host": "data-service.region.amazonaws.com"
        }
      },
      {
        "description": "legacy rest-json Endpoint host trait 2",
        "given": {
          "name": "MemberRefOp",
          "input": {
            "shape": "MemberRefInputShape"
          },
          "http": {
            "method": "GET",
            "requestUri": "/path"
          },
          "endpoint": {
            "hostPrefix": "foo-{Name}."
          }
        },
        "params": {
          "Name": "myname"
        },
        "serialized": {
          "uri": "/path",
          "body": "{\"Name\": \"myname\"}",
          "host": "foo-myname.service.region.amazonaws.com"
        }
      }
    ]
  },
  {
    "description": "Serializes document with standalone primitive as part of the JSON request payload with no escaping.",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "documentValue": {
            "shape": "DocumentType"
          }
        }
      },
      "DocumentType": {
        "type": "structure",
        "document": true
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Serializes document with standalone primitive as part of the JSON request payload with no escaping. 1",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/InlineDocument"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "documentValue": "foo"
        },
        "serialized": {
          "body": "{\"documentValue\": \"foo\"}",
          "uri": "/InlineDocument"
        }
      },
      {
        "description": "legacy rest-json Serializes document with standalone primitive as part of the JSON request payload with no escaping. 2",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/InlineDocument"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "documentValue": 123
        },
        "serialized": {
          "body": "{\"documentValue\": 123}",
          "uri": "/InlineDocument"
        }
      },
      {
        "description": "legacy rest-json Serializes document with standalone primitive as part of the JSON request payload with no escaping. 3",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/InlineDocument"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "documentValue": true
        },
        "serialized": {
          "body": "{\"documentValue\": true}",
          "uri": "/InlineDocument"
        }
      },
      {
        "description": "legacy rest-json Serializes document with standalone primitive as part of the JSON request payload with no escaping. 4",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/InlineDocument"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "documentValue": ""
        },
        "serialized": {
          "body": "{\"documentValue\": \"\"}",
          "uri": "/InlineDocument"
        }
      }
    ]
  },
  {
    "description": "Serializes aggregate documents as part of the JSON request payload with no escaping.",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2014-01-01"
    },
    "shapes": {
      "InputShape": {
        "type": "structure",
        "members": {
          "documentValue": {
            "shape": "DocumentType"
          }
        }
      },
      "DocumentType": {
        "type": "structure",
        "document": true
      }
    },
    "cases": [
      {
        "description": "legacy rest-json Serializes aggregate documents as part of the JSON request payload with no escaping. 1",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/InlineDocument"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "documentValue": {
            "childDocument1": {
              "foo": "test"
            },
            "childDocument2": {
              "bar": true
            },
            "childDocument3": 123
          }
        },
        "serialized": {
          "body": "{\"documentValue\": {\"childDocument1\": {\"foo\": \"test\"}, \"childDocument2\": {\"bar\": true}, \"childDocument3\": 123}}",
          "uri": "/InlineDocument"
        }
      },
      {
        "description": "legacy rest-json Serializes aggregate documents as part of the JSON request payload with no escaping. 2",
        "given": {
          "http": {
            "method": "POST",
            "requestUri": "/InlineDocument"
          },
          "input": {
            "shape": "InputShape"
          },
          "name": "OperationName"
        },
        "params": {
          "documentValue": [
            {
              "foo": "test"
            },
            {
              "bar": true
            },
            123
          ]
        },
        "serialized": {
          "body": "{\"documentValue\": [{\"foo\": \"test\"}, {\"bar\": true}, 123]}",
          "uri": "/InlineDocument"
        }
      }
    ]
  },
  {
    "description": "rest-json Content-Type and body",
    "metadata": {
      "protocol": "rest-json",
      "apiVersion": "2021-05-13"
    },
    "clientEndpoint": "https://rest-test.amazonaws.com",
    "shapes": {
      "Integer": {
        "type": "integer"
      },
      "String": {
        "type": "string"
      },
      "Blob": {
        "type": "blob"
      },
      "NoPayloadRequest": {
        "type": "structure",
        "required": [],
        "members": {
          "testId": {
            "shape": "TestId",
            "documentation": "<p> The unique ID for a test. </p>",
            "location": "header",
            "locationName": "x-amz-test-id"
          }
        },
        "documentation": "<p> The request structure for a no payload request. </p>"
      },
      "TestId": {
        "type": "string",
        "max": 8,
        "min": 3,
        "pattern": "t-[a-z0-9-]+"
      },
      "TestConfig": {
        "type": "structure",
        "required": [],
        "members": {
          "timeout": {
            "shape": "Integer",
            "documentation": "<p> Timeout in seconds </p>"
          }
        }
      },
      "PayloadConfig": {
        "type": "structure",
        "required": [],
        "members": {
          "data": {
            "shape": "Integer",
            "documentation": "<p> Numerical data </p>"
          }
        }
      },
      "TestBodyRequest": {
        "type": "structure",
        "required": [],
        "members": {
          "testConfig": {
            "shape": "TestConfig",
            "documentation": "<p> Content to post </p>"
          },
          "testId": {
            "shape": "TestId",
            "documentation": "<p> Optional test identifier </p>",
            "location": "header",
            "locationName": "x-amz-test-id"
          }
        },
        "documentation": "<p> The request structure for a test body request. </p>"
      },
      "TestPayloadRequest": {
        "type": "structure",
        "required": [],
        "members": {
          "payloadConfig": {
            "shape": "PayloadConfig",
            "documentation": "<p> Payload to post </p>"
          },
          "testId": {
            "shape": "TestId",
            "documentation": "<p> Optional test identifier </p>",
            "location": "header",
            "locationName": "x-amz-test-id"
          }
        },
        "documentation": "<p> The request structure for a payload request. </p>",
        "payload": "payloadConfig"
      },
      "TestBlobPayloadRequest": {
        "type": "structure",
        "required": [],
        "members": {
          "data": {
            "shape": "Blob",
            "documentation": "<p> Blob payload to post </p>"
          },
          "contentType": {
            "shape": "String",
            "documentation": "<p> Optional content-type header </p>",
            "location": "header",
            "locationName": "Content-Type"
          }
        },
        "documentation": "<p> The request structure for a blob payload request. </p>",
        "payload": "data"
      }
    },
    "cases": [
      {
        "description": "legacy rest-json rest-json Content-Type and body 1",
        "given": {
          "name": "TestBody",
          "input": {
            "shape": "TestBodyRequest"
          },
          "http": {
            "method": "POST",
            "requestUri": "/body"
          }
        },
        "params": {
          "testConfig": {
            "timeout": 10
          },
          "testId": "t-12345"
        },
        "serialized": {
          "uri": "/body",
          "body": "{\"testConfig\": {\"timeout\": 10}}",
          "headers": {
            "x-amz-test-id": "t-12345",
            "Content-Type": "application/json"
          },
          "host": "rest-test.amazonaws.com"
        }
      },
      {
        "description": "legacy rest-json rest-json Content-Type and body 2",
        "given": {
          "name": "TestPayloadNoParams",
          "input": {
            "shape": "TestPayloadRequest"
          },
          "http": {
            "method": "POST",
            "requestUri": "/payload"
          }
        },
        "params": {},
        "serialized": {
          "uri": "/payload",
          "body": "{}",
          "headers": {
            "Content-Type": "application/json"
          },
          "host": "rest-test.amazonaws.com"
        }
      },
      {
        "description": "legacy rest-json rest-json Content-Type and body 3",
        "given": {
          "name": "TestPayload",
          "input": {
            "shape": "TestPayloadRequest"
          },
          "http": {
            "method": "POST",
            "requestUri": "/payload"
          }
        },
        "params": {
          "payloadConfig": {
            "data": 25
          },
          "testId": "t-12345"
        },
        "serialized": {
          "uri": "/payload",
          "body": "{\"data\": 25}",
          "headers": {
            "x-amz-test-id": "t-12345",
            "Content-Type": "application/json"
          },
          "host": "rest-test.amazonaws.com"
        }
      },
      {
        "description": "legacy rest-json rest-json Content-Type and body 4",
        "given": {
          "name": "TestPayloadNoBody",
          "input": {
            "shape": "TestPayloadRequest"
          },
          "http": {
            "method": "POST",
            "requestUri": "/payload"
          }
        },
        "params": {
          "testId": "t-12345"
        },
        "serialized": {
          "uri": "/payload",
          "body": "{}",
          "headers": {
            "x-amz-test-id": "t-12345",
            "Content-Type": "application/json"
          },
          "host": "rest-test.amazonaws.com"
        }
      },
      {
        "description": "legacy rest-json rest-json Content-Type and body 5",
        "given": {
          "name": "TestBlobPayload",
          "input": {
            "shape": "TestBlobPayloadRequest"
          },
          "http": {
            "method": "POST",
            "requestUri": "/blob-payload"
          }
        },
        "params": {
          "data": "1234",
          "contentType": "image/jpg"
        },
        "serialized": {
          "uri": "/blob-payload",
          "body": "1234",
          "headers": {
            "Content-Type": "image/jpg"
          },
          "host": "rest-test.amazonaws.com"
        }
      },
      {
        "description": "legacy rest-json rest-json Content-Type and body 6",
        "given": {
          "name": "TestBlobPayloadNoParams",
          "input": {
            "shape": "TestBlobPayloadRequest"
          },
          "http": {
            "method": "POST",
            "requestUri": "/blob-payload"
          }
        },
        "params": {},
        "serialized": {
          "uri": "/blob-payload",
          "body": "",
          "headers": {},
          "forbidHeaders": [
            "Content-Type"
          ],
          "host": "rest-test.amazonaws.com"
        }
      },
      {
        "description": "legacy rest-json rest-json Content-Type and body 7",
        "given": {
          "name": "NoPayload",
          "input": {
            "shape": "NoPayloadRequest"
          },
          "http": {
            "method": "GET",
            "requestUri": "/no-payload"
          }
        },
        "params": {},
        "serialized": {
          "uri": "/no-payload",
          "body": "",
          "forbidHeaders": [
            "Content-Type",
            "Content-Length"
          ],
          "host": "rest-test.amazonaws.com"
        }
      },
      {
        "description": "legacy rest-json rest-json Content-Type and body 8",
        "given": {
          "name": "NoPayloadWithHeader",
          "input": {
            "shape": "NoPayloadRequest"
          },
          "http": {
            "method": "GET",
            "requestUri": "/no-payload"
          }
        },
        "params": {
          "testId": "t-12345"
        },
        "serialized": {
          "uri": "/no-payload",
          "body": "",
          "headers": {
            "x-amz-test-id": "t-12345"
          },
          "forbidHeaders": [
            "Content-Type",
            "Content-Length"
          ],
          "host": "rest-test.amazonaws.com"
        }
      }
    ]
  }
]
