codeguru-reviewer-2019-09-19.min.json 4.49 KB
{
  "version": "2.0",
  "metadata": {
    "apiVersion": "2019-09-19",
    "endpointPrefix": "codeguru-reviewer",
    "jsonVersion": "1.1",
    "protocol": "rest-json",
    "serviceAbbreviation": "CodeGuruReviewer",
    "serviceFullName": "Amazon CodeGuru Reviewer",
    "serviceId": "CodeGuru Reviewer",
    "signatureVersion": "v4",
    "signingName": "codeguru-reviewer",
    "uid": "codeguru-reviewer-2019-09-19"
  },
  "operations": {
    "AssociateRepository": {
      "http": {
        "requestUri": "/associations"
      },
      "input": {
        "type": "structure",
        "required": [
          "Repository"
        ],
        "members": {
          "Repository": {
            "type": "structure",
            "members": {
              "CodeCommit": {
                "type": "structure",
                "required": [
                  "Name"
                ],
                "members": {
                  "Name": {}
                }
              }
            }
          },
          "ClientRequestToken": {
            "idempotencyToken": true
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "RepositoryAssociation": {
            "shape": "S7"
          }
        }
      }
    },
    "DescribeRepositoryAssociation": {
      "http": {
        "method": "GET",
        "requestUri": "/associations/{AssociationArn}"
      },
      "input": {
        "type": "structure",
        "required": [
          "AssociationArn"
        ],
        "members": {
          "AssociationArn": {
            "location": "uri",
            "locationName": "AssociationArn"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "RepositoryAssociation": {
            "shape": "S7"
          }
        }
      }
    },
    "DisassociateRepository": {
      "http": {
        "method": "DELETE",
        "requestUri": "/associations/{AssociationArn}"
      },
      "input": {
        "type": "structure",
        "required": [
          "AssociationArn"
        ],
        "members": {
          "AssociationArn": {
            "location": "uri",
            "locationName": "AssociationArn"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "RepositoryAssociation": {
            "shape": "S7"
          }
        }
      }
    },
    "ListRepositoryAssociations": {
      "http": {
        "method": "GET",
        "requestUri": "/associations"
      },
      "input": {
        "type": "structure",
        "members": {
          "ProviderTypes": {
            "location": "querystring",
            "locationName": "ProviderType",
            "type": "list",
            "member": {}
          },
          "States": {
            "location": "querystring",
            "locationName": "State",
            "type": "list",
            "member": {}
          },
          "Names": {
            "location": "querystring",
            "locationName": "Name",
            "type": "list",
            "member": {}
          },
          "Owners": {
            "location": "querystring",
            "locationName": "Owner",
            "type": "list",
            "member": {}
          },
          "MaxResults": {
            "location": "querystring",
            "locationName": "MaxResults",
            "type": "integer"
          },
          "NextToken": {
            "location": "querystring",
            "locationName": "NextToken"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "RepositoryAssociationSummaries": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "AssociationArn": {},
                "LastUpdatedTimeStamp": {
                  "type": "timestamp"
                },
                "AssociationId": {},
                "Name": {},
                "Owner": {},
                "ProviderType": {},
                "State": {}
              }
            }
          },
          "NextToken": {}
        }
      }
    }
  },
  "shapes": {
    "S7": {
      "type": "structure",
      "members": {
        "AssociationId": {},
        "AssociationArn": {},
        "Name": {},
        "Owner": {},
        "ProviderType": {},
        "State": {},
        "StateReason": {},
        "LastUpdatedTimeStamp": {
          "type": "timestamp"
        },
        "CreatedTimeStamp": {
          "type": "timestamp"
        }
      }
    }
  }
}