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

export interface ConstraintSummariesArgs extends core.SchemaArgs {
  description: string | core.StringOut;

  type: string | core.StringOut;
}

export class ConstraintSummaries extends core.Schema<ConstraintSummariesArgs> {
  @core.attr(String, { computed: true })
  public description!: string | core.StringOut;

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

export interface SummariesArgs extends core.SchemaArgs {
  constraintSummaries:
    | core.Array<ConstraintSummaries>
    | core.ArrayOut<ConstraintSummaries>;

  name: string | core.StringOut;

  pathId: string | core.StringOut;

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

export class Summaries extends core.Schema<SummariesArgs> {
  @core.attr(ConstraintSummaries, { computed: true, kind: "array" })
  public constraintSummaries!:
    | core.Array<ConstraintSummaries>
    | core.ArrayOut<ConstraintSummaries>;

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

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

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

export interface DsLaunchPathsArgs {
  acceptLanguage?: string | core.StringOut;

  productId: string | core.StringOut;
}

export class DsLaunchPaths extends core.Data<DsLaunchPathsArgs> {
  @core.attr(String)
  public acceptLanguage?: string | core.StringOut;

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

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

  @core.attr(Summaries, { computed: true, kind: "array" })
  public summaries!: core.Array<Summaries> | core.ArrayOut<Summaries>;

  constructor(name: string, args?: DsLaunchPathsArgs) {
    super(name, "aws_servicecatalog_launch_paths", args);
  }

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