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

export interface EgressFilterArgs extends core.SchemaArgs {
  type: string | core.StringOut;
}

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

export interface SpecArgs extends core.SchemaArgs {
  egressFilter: core.Array<EgressFilter> | core.ArrayOut<EgressFilter>;
}

export class Spec extends core.Schema<SpecArgs> {
  @core.attr(EgressFilter, { computed: true, kind: "array" })
  public egressFilter!: core.Array<EgressFilter> | core.ArrayOut<EgressFilter>;
}

export interface DsMeshArgs {
  meshOwner?: string | core.StringOut;

  name: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsMeshArgs) {
    super(name, "aws_appmesh_mesh", args);
  }

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