@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Amazon Augmented AI Runtime
@version 2019-11-07
@auth AWS SigV4
@endpoints 5
@toc human-loops(5)

@endpoint DELETE /human-loops/{HumanLoopName}
@required {HumanLoopName: str}

@endpoint GET /human-loops/{HumanLoopName}
@required {HumanLoopName: str}
@returns(200) {CreationTime: str(timestamp), FailureReason: str?, FailureCode: str?, HumanLoopStatus: str, HumanLoopName: str, HumanLoopArn: str, FlowDefinitionArn: str, HumanLoopOutput: HumanLoopOutput?{OutputS3Uri: str}}

@endpoint GET /human-loops
@required {FlowDefinitionArn: str}
@optional {CreationTimeAfter: str(timestamp), CreationTimeBefore: str(timestamp), SortOrder: str, NextToken: str, MaxResults: int}
@returns(200) {HumanLoopSummaries: [HumanLoopSummary], NextToken: str?}

@endpoint POST /human-loops
@required {HumanLoopName: str, FlowDefinitionArn: str, HumanLoopInput: HumanLoopInput}
@optional {DataAttributes: HumanLoopDataAttributes}
@returns(200) {HumanLoopArn: str?}

@endpoint POST /human-loops/stop
@required {HumanLoopName: str}

@end
