[ { "description": "Scalar members", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "Str": { "shape": "StringType" }, "Num": { "shape": "IntegerType", "locationName": "FooNum" }, "FalseBool": { "shape": "BooleanType" }, "TrueBool": { "shape": "BooleanType" }, "Float": { "shape": "FloatType" }, "Double": { "shape": "DoubleType" }, "Long": { "shape": "LongType" }, "Char": { "shape": "CharType" }, "Timestamp": { "shape": "TimestampType" } } }, "StringType": { "type": "string" }, "IntegerType": { "type": "integer" }, "BooleanType": { "type": "boolean" }, "FloatType": { "type": "float" }, "DoubleType": { "type": "double" }, "LongType": { "type": "long" }, "CharType": { "type": "character" }, "TimestampType": { "type": "timestamp" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "Str": "myname", "Num": 123, "FalseBool": false, "TrueBool": true, "Float": 1.2, "Double": 1.3, "Long": 200, "Char": "a", "Timestamp": 1422172800 }, "response": { "status_code": 200, "headers": {}, "body": "myname123falsetrue1.21.3200a2015-01-25T08:00:00Zrequest-id" } } ] }, { "description": "Not all members in response", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "Str": { "shape": "StringType" }, "Num": { "shape": "IntegerType" } } }, "StringType": { "type": "string" }, "IntegerType": { "type": "integer" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "Str": "myname" }, "response": { "status_code": 200, "headers": {}, "body": "mynamerequest-id" } } ] }, { "description": "Blob", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "Blob": { "shape": "BlobType" } } }, "BlobType": { "type": "blob" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "Blob": "value" }, "response": { "status_code": 200, "headers": {}, "body": "dmFsdWU=requestid" } } ] }, { "description": "Lists", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "ListMember": { "shape": "ListShape" } } }, "ListShape": { "type": "list", "member": { "shape": "StringType" } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "ListMember": ["abc", "123"] }, "response": { "status_code": 200, "headers": {}, "body": "abc123requestid" } } ] }, { "description": "List with custom member name", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "ListMember": { "shape": "ListShape" } } }, "ListShape": { "type": "list", "member": { "shape": "StringType", "locationName": "item" } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "ListMember": ["abc", "123"] }, "response": { "status_code": 200, "headers": {}, "body": "abc123requestid" } } ] }, { "description": "Flattened List", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "ListMember": { "shape": "ListType" } } }, "ListType": { "type": "list", "flattened": true, "member": { "shape": "StringType" } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "ListMember": ["abc", "123"] }, "response": { "status_code": 200, "headers": {}, "body": "abc123requestid" } } ] }, { "description": "Flattened single element list", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "ListMember": { "shape": "ListType" } } }, "ListType": { "type": "list", "flattened": true, "member": { "shape": "StringType" } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "ListMember": ["abc"] }, "response": { "status_code": 200, "headers": {}, "body": "abcrequestid" } } ] }, { "description": "List of structures", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "List": { "shape": "ListOfStructs" } } }, "ListOfStructs": { "type": "list", "member": { "shape": "StructureShape" } }, "StructureShape": { "type": "structure", "members": { "Foo": { "shape": "StringShape" }, "Bar": { "shape": "StringShape" }, "Baz": { "shape": "StringShape" } } }, "StringShape": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "List": [{"Foo": "firstfoo", "Bar": "firstbar", "Baz": "firstbaz"}, {"Foo": "secondfoo", "Bar": "secondbar", "Baz": "secondbaz"}] }, "response": { "status_code": 200, "headers": {}, "body": "firstfoofirstbarfirstbazsecondfoosecondbarsecondbazrequestid" } } ] }, { "description": "Flattened list of structures", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "resultWrapper": "OperationNameResult", "members": { "List": { "shape": "ListOfStructs" } } }, "ListOfStructs": { "type": "list", "flattened": true, "member": { "shape": "StructureShape" } }, "StructureShape": { "type": "structure", "members": { "Foo": { "shape": "StringShape" }, "Bar": { "shape": "StringShape" }, "Baz": { "shape": "StringShape" } } }, "StringShape": { "type": "string" } }, "cases": [ { "given": { "output": { "shape": "OutputShape" }, "name": "OperationName" }, "result": { "List": [{"Foo": "firstfoo", "Bar": "firstbar", "Baz": "firstbaz"}, {"Foo": "secondfoo", "Bar": "secondbar", "Baz": "secondbaz"}] }, "response": { "status_code": 200, "headers": {}, "body": "firstfoofirstbarfirstbazsecondfoosecondbarsecondbazrequestid" } } ] }, { "description": "Flattened list with location name", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "List": { "shape": "ListType" } } }, "ListType": { "type": "list", "flattened": true, "member": { "shape": "StringShape", "locationName": "NamedList" } }, "StringShape": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "List": ["a", "b"] }, "response": { "status_code": 200, "headers": {}, "body": "abrequestid" } } ] }, { "description": "Normal map", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "Map": { "shape": "StringMap" } } }, "StringMap": { "type": "map", "key": { "shape": "StringType" }, "value": { "shape": "StructType" } }, "StringType": { "type": "string" }, "StructType": { "type": "structure", "members": { "foo": { "shape": "StringType" } } } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "Map": { "qux": { "foo": "bar" }, "baz": { "foo": "bam" } } }, "response": { "status_code": 200, "headers": {}, "body": "quxbarbazbamrequestid" } } ] }, { "description": "Flattened map", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "Map": { "shape": "StringMap", "flattened": true } } }, "StringMap": { "type": "map", "key": { "shape": "StringType" }, "value": { "shape": "StringType" } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "Map": { "qux": "bar", "baz": "bam" } }, "response": { "status_code": 200, "headers": {}, "body": "quxbarbazbamrequestid" } } ] }, { "description": "Flattened map in shape definition", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "Map": { "shape": "StringMap", "locationName": "Attribute" } } }, "StringMap": { "type": "map", "key": { "shape": "StringType", "locationName": "Name" }, "value": { "shape": "StringType", "locationName": "Value" }, "flattened": true, "locationName": "Attribute" }, "StringType": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "Map": { "qux": "bar" } }, "response": { "status_code": 200, "headers": {}, "body": "quxbarrequestid" } } ] }, { "description": "Named map", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "Map": { "shape": "MapType" } } }, "MapType": { "type": "map", "flattened": true, "key": { "locationName": "foo", "shape": "StringType" }, "value": { "locationName": "bar", "shape": "StringType" } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "Map": { "qux": "bar", "baz": "bam" } }, "response": { "status_code": 200, "headers": {}, "body": "quxbarbazbamrequestid" } } ] }, { "description": "Empty string", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "Foo": { "shape": "StringType" } } }, "StringType": { "type": "string" } }, "cases": [ { "given": { "output": { "resultWrapper": "OperationNameResult", "shape": "OutputShape" }, "name": "OperationName" }, "result": { "Foo": "" }, "response": { "status_code": 200, "headers": {}, "body": "requestid" } } ] }, { "description": "Timestamp members", "metadata": { "protocol": "query" }, "shapes": { "OutputShape": { "type": "structure", "members": { "TimeArg": { "shape": "TimestampType" }, "TimeCustom": { "timestampFormat": "rfc822", "shape": "TimestampType" }, "TimeFormat": { "shape": "TimestampFormatType" }, "StructMember": { "shape": "TimeContainer" } } }, "TimeContainer": { "type": "structure", "members": { "foo": { "shape": "TimestampType" }, "bar": { "shape": "TimestampFormatType" } } }, "TimestampFormatType": { "timestampFormat": "unixTimestamp", "type": "timestamp" }, "TimestampType": { "type": "timestamp" } }, "cases": [ { "given": { "output": { "shape": "OutputShape" }, "name": "OperationName" }, "result": { "TimeArg": 1398796238, "TimeCustom": 1398796238, "TimeFormat": 1398796238, "StructMember": { "foo": 1398796238, "bar": 1398796238 } }, "response": { "status_code": 200, "headers": {}, "body": "2014-04-29T18:30:38+00:0013987962382014-04-29T18:30:38+00:00Tue, 29 Apr 2014 18:30:38 GMT1398796238requestid" } } ] } ]