[
{
"description": "Scalar members",
"metadata": {
"protocol": "ec2"
},
"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"
}
}
},
"StringType": {
"type": "string"
},
"IntegerType": {
"type": "integer"
},
"BooleanType": {
"type": "boolean"
},
"FloatType": {
"type": "float"
},
"DoubleType": {
"type": "double"
},
"LongType": {
"type": "long"
},
"CharType": {
"type": "character"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"Str": "myname",
"Num": 123,
"FalseBool": false,
"TrueBool": true,
"Float": 1.2,
"Double": 1.3,
"Long": 200,
"Char": "a"
},
"response": {
"status_code": 200,
"headers": {},
"body": "myname123falsetrue1.21.3200arequest-id"
}
}
]
},
{
"description": "Blob",
"metadata": {
"protocol": "ec2"
},
"shapes": {
"OutputShape": {
"type": "structure",
"members": {
"Blob": {
"shape": "BlobType"
}
}
},
"BlobType": {
"type": "blob"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"Blob": "value"
},
"response": {
"status_code": 200,
"headers": {},
"body": "dmFsdWU=requestid"
}
}
]
},
{
"description": "Lists",
"metadata": {
"protocol": "ec2"
},
"shapes": {
"OutputShape": {
"type": "structure",
"members": {
"ListMember": {
"shape": "ListShape"
}
}
},
"ListShape": {
"type": "list",
"member": {
"shape": "StringType"
}
},
"StringType": {
"type": "string"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"ListMember": ["abc", "123"]
},
"response": {
"status_code": 200,
"headers": {},
"body": "abc123requestid"
}
}
]
},
{
"description": "List with custom member name",
"metadata": {
"protocol": "ec2"
},
"shapes": {
"OutputShape": {
"type": "structure",
"members": {
"ListMember": {
"shape": "ListShape"
}
}
},
"ListShape": {
"type": "list",
"member": {
"shape": "StringType",
"locationName": "item"
}
},
"StringType": {
"type": "string"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"ListMember": ["abc", "123"]
},
"response": {
"status_code": 200,
"headers": {},
"body": "- abc
- 123
requestid"
}
}
]
},
{
"description": "Flattened List",
"metadata": {
"protocol": "ec2"
},
"shapes": {
"OutputShape": {
"type": "structure",
"members": {
"ListMember": {
"shape": "ListType",
"flattened": true
}
}
},
"ListType": {
"type": "list",
"member": {
"shape": "StringType"
}
},
"StringType": {
"type": "string"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"ListMember": ["abc", "123"]
},
"response": {
"status_code": 200,
"headers": {},
"body": "abc123requestid"
}
}
]
},
{
"description": "Normal map",
"metadata": {
"protocol": "ec2"
},
"shapes": {
"OutputShape": {
"type": "structure",
"members": {
"Map": {
"shape": "MapType"
}
}
},
"MapType": {
"type": "map",
"key": {
"shape": "StringType"
},
"value": {
"shape": "StructureType"
}
},
"StructureType": {
"type": "structure",
"members": {
"foo": {
"shape": "StringType"
}
}
},
"StringType": {
"type": "string"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"Map": {
"qux": {
"foo": "bar"
},
"baz": {
"foo": "bam"
}
}
},
"response": {
"status_code": 200,
"headers": {},
"body": "requestid"
}
}
]
},
{
"description": "Flattened map",
"metadata": {
"protocol": "ec2"
},
"shapes": {
"OutputShape": {
"type": "structure",
"members": {
"Map": {
"shape": "MapType",
"flattened": true
}
}
},
"MapType": {
"type": "map",
"key": {
"shape": "StringType"
},
"value": {
"shape": "StringType"
}
},
"StringType": {
"type": "string"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"Map": {
"qux": "bar",
"baz": "bam"
}
},
"response": {
"status_code": 200,
"headers": {},
"body": "requestid"
}
}
]
},
{
"description": "Named map",
"metadata": {
"protocol": "ec2"
},
"shapes": {
"OutputShape": {
"type": "structure",
"members": {
"Map": {
"shape": "MapType",
"flattened": true
}
}
},
"MapType": {
"type": "map",
"key": {
"shape": "StringType",
"locationName": "foo"
},
"value": {
"shape": "StringType",
"locationName": "bar"
}
},
"StringType": {
"type": "string"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"Map": {
"qux": "bar",
"baz": "bam"
}
},
"response": {
"status_code": 200,
"headers": {},
"body": "requestid"
}
}
]
},
{
"description": "Empty string",
"metadata": {
"protocol": "ec2"
},
"shapes": {
"OutputShape": {
"type": "structure",
"members": {
"Foo": {
"shape": "StringType"
}
}
},
"StringType": {
"type": "string"
}
},
"cases": [
{
"given": {
"output": {
"shape": "OutputShape"
},
"name": "OperationName"
},
"result": {
"Foo": ""
},
"response": {
"status_code": 200,
"headers": {},
"body": "requestid"
}
}
]
}
]