detective-2018-10-26.min.json 6.39 KB
{
  "version": "2.0",
  "metadata": {
    "apiVersion": "2018-10-26",
    "endpointPrefix": "api.detective",
    "jsonVersion": "1.1",
    "protocol": "rest-json",
    "serviceFullName": "Amazon Detective",
    "serviceId": "Detective",
    "signatureVersion": "v4",
    "signingName": "detective",
    "uid": "detective-2018-10-26"
  },
  "operations": {
    "AcceptInvitation": {
      "http": {
        "method": "PUT",
        "requestUri": "/invitation"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn"
        ],
        "members": {
          "GraphArn": {}
        }
      }
    },
    "CreateGraph": {
      "http": {
        "requestUri": "/graph"
      },
      "output": {
        "type": "structure",
        "members": {
          "GraphArn": {}
        }
      }
    },
    "CreateMembers": {
      "http": {
        "requestUri": "/graph/members"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn",
          "Accounts"
        ],
        "members": {
          "GraphArn": {},
          "Message": {},
          "Accounts": {
            "type": "list",
            "member": {
              "type": "structure",
              "required": [
                "AccountId",
                "EmailAddress"
              ],
              "members": {
                "AccountId": {},
                "EmailAddress": {}
              }
            }
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Members": {
            "shape": "Sb"
          },
          "UnprocessedAccounts": {
            "shape": "Sh"
          }
        }
      }
    },
    "DeleteGraph": {
      "http": {
        "requestUri": "/graph/removal"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn"
        ],
        "members": {
          "GraphArn": {}
        }
      }
    },
    "DeleteMembers": {
      "http": {
        "requestUri": "/graph/members/removal"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn",
          "AccountIds"
        ],
        "members": {
          "GraphArn": {},
          "AccountIds": {
            "shape": "Sm"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "AccountIds": {
            "shape": "Sm"
          },
          "UnprocessedAccounts": {
            "shape": "Sh"
          }
        }
      }
    },
    "DisassociateMembership": {
      "http": {
        "requestUri": "/membership/removal"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn"
        ],
        "members": {
          "GraphArn": {}
        }
      }
    },
    "GetMembers": {
      "http": {
        "requestUri": "/graph/members/get"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn",
          "AccountIds"
        ],
        "members": {
          "GraphArn": {},
          "AccountIds": {
            "shape": "Sm"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "MemberDetails": {
            "shape": "Sb"
          },
          "UnprocessedAccounts": {
            "shape": "Sh"
          }
        }
      }
    },
    "ListGraphs": {
      "http": {
        "requestUri": "/graphs/list"
      },
      "input": {
        "type": "structure",
        "members": {
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "GraphList": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "Arn": {},
                "CreatedTime": {
                  "type": "timestamp"
                }
              }
            }
          },
          "NextToken": {}
        }
      }
    },
    "ListInvitations": {
      "http": {
        "requestUri": "/invitations/list"
      },
      "input": {
        "type": "structure",
        "members": {
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Invitations": {
            "shape": "Sb"
          },
          "NextToken": {}
        }
      }
    },
    "ListMembers": {
      "http": {
        "requestUri": "/graph/members/list"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn"
        ],
        "members": {
          "GraphArn": {},
          "NextToken": {},
          "MaxResults": {
            "type": "integer"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "MemberDetails": {
            "shape": "Sb"
          },
          "NextToken": {}
        }
      }
    },
    "RejectInvitation": {
      "http": {
        "requestUri": "/invitation/removal"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn"
        ],
        "members": {
          "GraphArn": {}
        }
      }
    },
    "StartMonitoringMember": {
      "http": {
        "requestUri": "/graph/member/monitoringstate"
      },
      "input": {
        "type": "structure",
        "required": [
          "GraphArn",
          "AccountId"
        ],
        "members": {
          "GraphArn": {},
          "AccountId": {}
        }
      }
    }
  },
  "shapes": {
    "Sb": {
      "type": "list",
      "member": {
        "type": "structure",
        "members": {
          "AccountId": {},
          "EmailAddress": {},
          "GraphArn": {},
          "MasterId": {},
          "Status": {},
          "DisabledReason": {},
          "InvitedTime": {
            "type": "timestamp"
          },
          "UpdatedTime": {
            "type": "timestamp"
          },
          "PercentOfGraphUtilization": {
            "type": "double"
          },
          "PercentOfGraphUtilizationUpdatedTime": {
            "type": "timestamp"
          }
        }
      }
    },
    "Sh": {
      "type": "list",
      "member": {
        "type": "structure",
        "members": {
          "AccountId": {},
          "Reason": {}
        }
      }
    },
    "Sm": {
      "type": "list",
      "member": {}
    }
  }
}