{
  "version": "2.0",
  "metadata": {
    "apiVersion": "2013-04-15",
    "endpointPrefix": "support",
    "jsonVersion": "1.1",
    "protocol": "json",
    "serviceFullName": "AWS Support",
    "signatureVersion": "v4",
    "targetPrefix": "AWSSupport_20130415"
  },
  "operations": {
    "AddAttachmentsToSet": {
      "input": {
        "type": "structure",
        "required": [
          "attachments"
        ],
        "members": {
          "attachmentSetId": {},
          "attachments": {
            "type": "list",
            "member": {
              "shape": "S4"
            }
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "attachmentSetId": {},
          "expiryTime": {}
        }
      }
    },
    "AddCommunicationToCase": {
      "input": {
        "type": "structure",
        "required": [
          "communicationBody"
        ],
        "members": {
          "caseId": {},
          "communicationBody": {},
          "ccEmailAddresses": {
            "shape": "Sc"
          },
          "attachmentSetId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "result": {
            "type": "boolean"
          }
        }
      }
    },
    "CreateCase": {
      "input": {
        "type": "structure",
        "required": [
          "subject",
          "communicationBody"
        ],
        "members": {
          "subject": {},
          "serviceCode": {},
          "severityCode": {},
          "categoryCode": {},
          "communicationBody": {},
          "ccEmailAddresses": {
            "shape": "Sc"
          },
          "language": {},
          "issueType": {},
          "attachmentSetId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "caseId": {}
        }
      }
    },
    "DescribeAttachment": {
      "input": {
        "type": "structure",
        "required": [
          "attachmentId"
        ],
        "members": {
          "attachmentId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "attachment": {
            "shape": "S4"
          }
        }
      }
    },
    "DescribeCases": {
      "input": {
        "type": "structure",
        "members": {
          "caseIdList": {
            "type": "list",
            "member": {}
          },
          "displayId": {},
          "afterTime": {},
          "beforeTime": {},
          "includeResolvedCases": {
            "type": "boolean"
          },
          "nextToken": {},
          "maxResults": {
            "type": "integer"
          },
          "language": {},
          "includeCommunications": {
            "type": "boolean"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "cases": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "caseId": {},
                "displayId": {},
                "subject": {},
                "status": {},
                "serviceCode": {},
                "categoryCode": {},
                "severityCode": {},
                "submittedBy": {},
                "timeCreated": {},
                "recentCommunications": {
                  "type": "structure",
                  "members": {
                    "communications": {
                      "shape": "S17"
                    },
                    "nextToken": {}
                  }
                },
                "ccEmailAddresses": {
                  "shape": "Sc"
                },
                "language": {}
              }
            }
          },
          "nextToken": {}
        }
      }
    },
    "DescribeCommunications": {
      "input": {
        "type": "structure",
        "required": [
          "caseId"
        ],
        "members": {
          "caseId": {},
          "beforeTime": {},
          "afterTime": {},
          "nextToken": {},
          "maxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "communications": {
            "shape": "S17"
          },
          "nextToken": {}
        }
      }
    },
    "DescribeServices": {
      "input": {
        "type": "structure",
        "members": {
          "serviceCodeList": {
            "type": "list",
            "member": {}
          },
          "language": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "services": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "code": {},
                "name": {},
                "categories": {
                  "type": "list",
                  "member": {
                    "type": "structure",
                    "members": {
                      "code": {},
                      "name": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "DescribeSeverityLevels": {
      "input": {
        "type": "structure",
        "members": {
          "language": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "severityLevels": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "code": {},
                "name": {}
              }
            }
          }
        }
      }
    },
    "DescribeTrustedAdvisorCheckRefreshStatuses": {
      "input": {
        "type": "structure",
        "required": [
          "checkIds"
        ],
        "members": {
          "checkIds": {
            "shape": "S1t"
          }
        }
      },
      "output": {
        "type": "structure",
        "required": [
          "statuses"
        ],
        "members": {
          "statuses": {
            "type": "list",
            "member": {
              "shape": "S1x"
            }
          }
        }
      }
    },
    "DescribeTrustedAdvisorCheckResult": {
      "input": {
        "type": "structure",
        "required": [
          "checkId"
        ],
        "members": {
          "checkId": {},
          "language": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "result": {
            "type": "structure",
            "required": [
              "checkId",
              "timestamp",
              "status",
              "resourcesSummary",
              "categorySpecificSummary",
              "flaggedResources"
            ],
            "members": {
              "checkId": {},
              "timestamp": {},
              "status": {},
              "resourcesSummary": {
                "shape": "S22"
              },
              "categorySpecificSummary": {
                "shape": "S23"
              },
              "flaggedResources": {
                "type": "list",
                "member": {
                  "type": "structure",
                  "required": [
                    "status",
                    "resourceId",
                    "metadata"
                  ],
                  "members": {
                    "status": {},
                    "region": {},
                    "resourceId": {},
                    "isSuppressed": {
                      "type": "boolean"
                    },
                    "metadata": {
                      "shape": "S1t"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "DescribeTrustedAdvisorCheckSummaries": {
      "input": {
        "type": "structure",
        "required": [
          "checkIds"
        ],
        "members": {
          "checkIds": {
            "shape": "S1t"
          }
        }
      },
      "output": {
        "type": "structure",
        "required": [
          "summaries"
        ],
        "members": {
          "summaries": {
            "type": "list",
            "member": {
              "type": "structure",
              "required": [
                "checkId",
                "timestamp",
                "status",
                "resourcesSummary",
                "categorySpecificSummary"
              ],
              "members": {
                "checkId": {},
                "timestamp": {},
                "status": {},
                "hasFlaggedResources": {
                  "type": "boolean"
                },
                "resourcesSummary": {
                  "shape": "S22"
                },
                "categorySpecificSummary": {
                  "shape": "S23"
                }
              }
            }
          }
        }
      }
    },
    "DescribeTrustedAdvisorChecks": {
      "input": {
        "type": "structure",
        "required": [
          "language"
        ],
        "members": {
          "language": {}
        }
      },
      "output": {
        "type": "structure",
        "required": [
          "checks"
        ],
        "members": {
          "checks": {
            "type": "list",
            "member": {
              "type": "structure",
              "required": [
                "id",
                "name",
                "description",
                "category",
                "metadata"
              ],
              "members": {
                "id": {},
                "name": {},
                "description": {},
                "category": {},
                "metadata": {
                  "shape": "S1t"
                }
              }
            }
          }
        }
      }
    },
    "RefreshTrustedAdvisorCheck": {
      "input": {
        "type": "structure",
        "required": [
          "checkId"
        ],
        "members": {
          "checkId": {}
        }
      },
      "output": {
        "type": "structure",
        "required": [
          "status"
        ],
        "members": {
          "status": {
            "shape": "S1x"
          }
        }
      }
    },
    "ResolveCase": {
      "input": {
        "type": "structure",
        "members": {
          "caseId": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "initialCaseStatus": {},
          "finalCaseStatus": {}
        }
      }
    }
  },
  "shapes": {
    "S4": {
      "type": "structure",
      "members": {
        "fileName": {},
        "data": {
          "type": "blob"
        }
      }
    },
    "Sc": {
      "type": "list",
      "member": {}
    },
    "S17": {
      "type": "list",
      "member": {
        "type": "structure",
        "members": {
          "caseId": {},
          "body": {},
          "submittedBy": {},
          "timeCreated": {},
          "attachmentSet": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "attachmentId": {},
                "fileName": {}
              }
            }
          }
        }
      }
    },
    "S1t": {
      "type": "list",
      "member": {}
    },
    "S1x": {
      "type": "structure",
      "required": [
        "checkId",
        "status",
        "millisUntilNextRefreshable"
      ],
      "members": {
        "checkId": {},
        "status": {},
        "millisUntilNextRefreshable": {
          "type": "long"
        }
      }
    },
    "S22": {
      "type": "structure",
      "required": [
        "resourcesProcessed",
        "resourcesFlagged",
        "resourcesIgnored",
        "resourcesSuppressed"
      ],
      "members": {
        "resourcesProcessed": {
          "type": "long"
        },
        "resourcesFlagged": {
          "type": "long"
        },
        "resourcesIgnored": {
          "type": "long"
        },
        "resourcesSuppressed": {
          "type": "long"
        }
      }
    },
    "S23": {
      "type": "structure",
      "members": {
        "costOptimizing": {
          "type": "structure",
          "required": [
            "estimatedMonthlySavings",
            "estimatedPercentMonthlySavings"
          ],
          "members": {
            "estimatedMonthlySavings": {
              "type": "double"
            },
            "estimatedPercentMonthlySavings": {
              "type": "double"
            }
          }
        }
      }
    }
  }
}