redshift-data-2019-12-20.min.json 8.07 KB
{
  "version": "2.0",
  "metadata": {
    "apiVersion": "2019-12-20",
    "endpointPrefix": "redshift-data",
    "jsonVersion": "1.1",
    "protocol": "json",
    "serviceFullName": "Redshift Data API Service",
    "serviceId": "Redshift Data",
    "signatureVersion": "v4",
    "signingName": "redshift-data",
    "targetPrefix": "RedshiftData",
    "uid": "redshift-data-2019-12-20"
  },
  "operations": {
    "CancelStatement": {
      "input": {
        "type": "structure",
        "required": [
          "Id"
        ],
        "members": {
          "Id": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Status": {
            "type": "boolean"
          }
        }
      }
    },
    "DescribeStatement": {
      "input": {
        "type": "structure",
        "required": [
          "Id"
        ],
        "members": {
          "Id": {}
        }
      },
      "output": {
        "type": "structure",
        "required": [
          "Id"
        ],
        "members": {
          "ClusterIdentifier": {},
          "CreatedAt": {
            "type": "timestamp"
          },
          "Database": {},
          "DbUser": {},
          "Duration": {
            "type": "long"
          },
          "Error": {},
          "Id": {},
          "QueryString": {},
          "RedshiftPid": {
            "type": "long"
          },
          "RedshiftQueryId": {
            "type": "long"
          },
          "ResultRows": {
            "type": "long"
          },
          "ResultSize": {
            "type": "long"
          },
          "SecretArn": {},
          "Status": {},
          "UpdatedAt": {
            "type": "timestamp"
          }
        }
      }
    },
    "DescribeTable": {
      "input": {
        "type": "structure",
        "required": [
          "ClusterIdentifier"
        ],
        "members": {
          "ClusterIdentifier": {},
          "Database": {},
          "DbUser": {},
          "MaxResults": {
            "type": "integer"
          },
          "NextToken": {},
          "Schema": {},
          "SecretArn": {},
          "Table": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "ColumnList": {
            "type": "list",
            "member": {
              "shape": "Si"
            }
          },
          "NextToken": {},
          "TableName": {}
        }
      }
    },
    "ExecuteStatement": {
      "input": {
        "type": "structure",
        "required": [
          "ClusterIdentifier",
          "Sql"
        ],
        "members": {
          "ClusterIdentifier": {},
          "Database": {},
          "DbUser": {},
          "SecretArn": {},
          "Sql": {},
          "StatementName": {},
          "WithEvent": {
            "type": "boolean"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "ClusterIdentifier": {},
          "CreatedAt": {
            "type": "timestamp"
          },
          "Database": {},
          "DbUser": {},
          "Id": {},
          "SecretArn": {}
        }
      }
    },
    "GetStatementResult": {
      "input": {
        "type": "structure",
        "required": [
          "Id"
        ],
        "members": {
          "Id": {},
          "NextToken": {}
        }
      },
      "output": {
        "type": "structure",
        "required": [
          "Records"
        ],
        "members": {
          "ColumnMetadata": {
            "type": "list",
            "member": {
              "shape": "Si"
            }
          },
          "NextToken": {},
          "Records": {
            "type": "list",
            "member": {
              "type": "list",
              "member": {
                "type": "structure",
                "members": {
                  "blobValue": {
                    "type": "blob"
                  },
                  "booleanValue": {
                    "type": "boolean"
                  },
                  "doubleValue": {
                    "type": "double"
                  },
                  "isNull": {
                    "type": "boolean"
                  },
                  "longValue": {
                    "type": "long"
                  },
                  "stringValue": {}
                }
              }
            }
          },
          "TotalNumRows": {
            "type": "long"
          }
        }
      }
    },
    "ListDatabases": {
      "input": {
        "type": "structure",
        "required": [
          "ClusterIdentifier"
        ],
        "members": {
          "ClusterIdentifier": {},
          "Database": {},
          "DbUser": {},
          "MaxResults": {
            "type": "integer"
          },
          "NextToken": {},
          "SecretArn": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Databases": {
            "type": "list",
            "member": {}
          },
          "NextToken": {}
        }
      }
    },
    "ListSchemas": {
      "input": {
        "type": "structure",
        "required": [
          "ClusterIdentifier",
          "Database"
        ],
        "members": {
          "ClusterIdentifier": {},
          "Database": {},
          "DbUser": {},
          "MaxResults": {
            "type": "integer"
          },
          "NextToken": {},
          "SchemaPattern": {},
          "SecretArn": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "NextToken": {},
          "Schemas": {
            "type": "list",
            "member": {}
          }
        }
      }
    },
    "ListStatements": {
      "input": {
        "type": "structure",
        "members": {
          "MaxResults": {
            "type": "integer"
          },
          "NextToken": {},
          "StatementName": {},
          "Status": {}
        }
      },
      "output": {
        "type": "structure",
        "required": [
          "Statements"
        ],
        "members": {
          "NextToken": {},
          "Statements": {
            "type": "list",
            "member": {
              "type": "structure",
              "required": [
                "Id"
              ],
              "members": {
                "CreatedAt": {
                  "type": "timestamp"
                },
                "Id": {},
                "QueryString": {},
                "SecretArn": {},
                "StatementName": {},
                "Status": {},
                "UpdatedAt": {
                  "type": "timestamp"
                }
              }
            }
          }
        }
      }
    },
    "ListTables": {
      "input": {
        "type": "structure",
        "required": [
          "ClusterIdentifier",
          "Database"
        ],
        "members": {
          "ClusterIdentifier": {},
          "Database": {},
          "DbUser": {},
          "MaxResults": {
            "type": "integer"
          },
          "NextToken": {},
          "SchemaPattern": {},
          "SecretArn": {},
          "TablePattern": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "NextToken": {},
          "Tables": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "name": {},
                "schema": {},
                "type": {}
              }
            }
          }
        }
      }
    }
  },
  "shapes": {
    "Si": {
      "type": "structure",
      "members": {
        "columnDefault": {},
        "isCaseSensitive": {
          "type": "boolean"
        },
        "isCurrency": {
          "type": "boolean"
        },
        "isSigned": {
          "type": "boolean"
        },
        "label": {},
        "length": {
          "type": "integer"
        },
        "name": {},
        "nullable": {
          "type": "integer"
        },
        "precision": {
          "type": "integer"
        },
        "scale": {
          "type": "integer"
        },
        "schemaName": {},
        "tableName": {},
        "typeName": {}
      }
    }
  }
}