import * as core from "@terrascript/core";

export interface HumanLoopActivationConditionsConfigArgs
  extends core.SchemaArgs {
  humanLoopActivationConditions: string | core.StringOut;
}

export class HumanLoopActivationConditionsConfig extends core.Schema<HumanLoopActivationConditionsConfigArgs> {
  @core.attr(String)
  public humanLoopActivationConditions!: string | core.StringOut;
}

export interface HumanLoopActivationConfigArgs extends core.SchemaArgs {
  humanLoopActivationConditionsConfig?: HumanLoopActivationConditionsConfig;
}

export class HumanLoopActivationConfig extends core.Schema<HumanLoopActivationConfigArgs> {
  @core.attr(HumanLoopActivationConditionsConfig)
  public humanLoopActivationConditionsConfig?: HumanLoopActivationConditionsConfig;
}

export interface HumanLoopRequestSourceArgs extends core.SchemaArgs {
  awsManagedHumanLoopRequestSource: string | core.StringOut;
}

export class HumanLoopRequestSource extends core.Schema<HumanLoopRequestSourceArgs> {
  @core.attr(String)
  public awsManagedHumanLoopRequestSource!: string | core.StringOut;
}

export interface OutputConfigArgs extends core.SchemaArgs {
  kmsKeyId?: string | core.StringOut;

  s3OutputPath: string | core.StringOut;
}

export class OutputConfig extends core.Schema<OutputConfigArgs> {
  @core.attr(String)
  public kmsKeyId?: string | core.StringOut;

  @core.attr(String)
  public s3OutputPath!: string | core.StringOut;
}

export interface AmountInUsdArgs extends core.SchemaArgs {
  cents?: number | core.NumberOut;

  dollars?: number | core.NumberOut;

  tenthFractionsOfACent?: number | core.NumberOut;
}

export class AmountInUsd extends core.Schema<AmountInUsdArgs> {
  @core.attr(Number)
  public cents?: number | core.NumberOut;

  @core.attr(Number)
  public dollars?: number | core.NumberOut;

  @core.attr(Number)
  public tenthFractionsOfACent?: number | core.NumberOut;
}

export interface PublicWorkforceTaskPriceArgs extends core.SchemaArgs {
  amountInUsd?: AmountInUsd;
}

export class PublicWorkforceTaskPrice extends core.Schema<PublicWorkforceTaskPriceArgs> {
  @core.attr(AmountInUsd)
  public amountInUsd?: AmountInUsd;
}

export interface HumanLoopConfigArgs extends core.SchemaArgs {
  humanTaskUiArn: string | core.StringOut;

  publicWorkforceTaskPrice?: PublicWorkforceTaskPrice;

  taskAvailabilityLifetimeInSeconds?: number | core.NumberOut;

  taskCount: number | core.NumberOut;

  taskDescription: string | core.StringOut;

  taskKeywords?: core.Array<string> | core.ArrayOut<core.StringOut>;

  taskTimeLimitInSeconds?: number | core.NumberOut;

  taskTitle: string | core.StringOut;

  workteamArn: string | core.StringOut;
}

export class HumanLoopConfig extends core.Schema<HumanLoopConfigArgs> {
  @core.attr(String)
  public humanTaskUiArn!: string | core.StringOut;

  @core.attr(PublicWorkforceTaskPrice)
  public publicWorkforceTaskPrice?: PublicWorkforceTaskPrice;

  @core.attr(Number)
  public taskAvailabilityLifetimeInSeconds?: number | core.NumberOut;

  @core.attr(Number)
  public taskCount!: number | core.NumberOut;

  @core.attr(String)
  public taskDescription!: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public taskKeywords?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(Number)
  public taskTimeLimitInSeconds?: number | core.NumberOut;

  @core.attr(String)
  public taskTitle!: string | core.StringOut;

  @core.attr(String)
  public workteamArn!: string | core.StringOut;
}

export interface FlowDefinitionArgs extends core.ResourceArgs {
  flowDefinitionName: string | core.StringOut;

  humanLoopActivationConfig?: HumanLoopActivationConfig;

  humanLoopConfig: HumanLoopConfig;

  humanLoopRequestSource?: HumanLoopRequestSource;

  outputConfig: OutputConfig;

  roleArn: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class FlowDefinition extends core.Resource<FlowDefinitionArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String)
  public flowDefinitionName!: string | core.StringOut;

  @core.attr(HumanLoopActivationConfig)
  public humanLoopActivationConfig?: HumanLoopActivationConfig;

  @core.attr(HumanLoopConfig)
  public humanLoopConfig!: HumanLoopConfig;

  @core.attr(HumanLoopRequestSource)
  public humanLoopRequestSource?: HumanLoopRequestSource;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(OutputConfig)
  public outputConfig!: OutputConfig;

  @core.attr(String)
  public roleArn!: string | core.StringOut;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: FlowDefinitionArgs) {
    super(name, "aws_sagemaker_flow_definition", args);
  }

  public override getNamespace(): string {
    return "aws_sagemaker";
  }
}
