@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Redshift Data API Service
@version 2019-12-20
@auth AWS SigV4
@endpoints 10
@toc root(10)

@endpoint POST /
@required {Sqls: [str]}
@optional {ClientToken: str, ClusterIdentifier: str, Database: str, DbUser: str, SecretArn: str, SessionId: str, SessionKeepAliveSeconds: int, StatementName: str, WithEvent: bool, WorkgroupName: str}
@returns(200) {ClusterIdentifier: str?, CreatedAt: str(timestamp)?, Database: str?, DbGroups: [str]?, DbUser: str?, Id: str?, SecretArn: str?, SessionId: str?, WorkgroupName: str?}

@endpoint POST /
@required {Id: str}
@returns(200) {Status: bool?}

@endpoint POST /
@required {Id: str}
@returns(200) {ClusterIdentifier: str?, CreatedAt: str(timestamp)?, Database: str?, DbUser: str?, Duration: int(i64)?, Error: str?, HasResultSet: bool?, Id: str, QueryParameters: [SqlParameter]?, QueryString: str?, RedshiftPid: int(i64)?, RedshiftQueryId: int(i64)?, ResultRows: int(i64)?, ResultSize: int(i64)?, SecretArn: str?, SessionId: str?, Status: str?, SubStatements: [SubStatementData]?, UpdatedAt: str(timestamp)?, WorkgroupName: str?}

@endpoint POST /
@required {Database: str}
@optional {ClusterIdentifier: str, ConnectedDatabase: str, DbUser: str, MaxResults: int, NextToken: str, Schema: str, SecretArn: str, Table: str, WorkgroupName: str}
@returns(200) {ColumnList: [ColumnMetadata]?, NextToken: str?, TableName: str?}

@endpoint POST /
@required {Sql: str}
@optional {ClientToken: str, ClusterIdentifier: str, Database: str, DbUser: str, Parameters: [SqlParameter], SecretArn: str, SessionId: str, SessionKeepAliveSeconds: int, StatementName: str, WithEvent: bool, WorkgroupName: str}
@returns(200) {ClusterIdentifier: str?, CreatedAt: str(timestamp)?, Database: str?, DbGroups: [str]?, DbUser: str?, Id: str?, SecretArn: str?, SessionId: str?, WorkgroupName: str?}

@endpoint POST /
@required {Id: str}
@optional {NextToken: str}
@returns(200) {ColumnMetadata: [ColumnMetadata]?, NextToken: str?, Records: [[Field]], TotalNumRows: int(i64)?}

@endpoint POST /
@required {Database: str}
@optional {ClusterIdentifier: str, DbUser: str, MaxResults: int, NextToken: str, SecretArn: str, WorkgroupName: str}
@returns(200) {Databases: [str]?, NextToken: str?}

@endpoint POST /
@required {Database: str}
@optional {ClusterIdentifier: str, ConnectedDatabase: str, DbUser: str, MaxResults: int, NextToken: str, SchemaPattern: str, SecretArn: str, WorkgroupName: str}
@returns(200) {NextToken: str?, Schemas: [str]?}

@endpoint POST /
@optional {MaxResults: int, NextToken: str, RoleLevel: bool, StatementName: str, Status: str}
@returns(200) {NextToken: str?, Statements: [StatementData]}

@endpoint POST /
@required {Database: str}
@optional {ClusterIdentifier: str, ConnectedDatabase: str, DbUser: str, MaxResults: int, NextToken: str, SchemaPattern: str, SecretArn: str, TablePattern: str, WorkgroupName: str}
@returns(200) {NextToken: str?, Tables: [TableMember]?}

@end
