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

export interface FilterArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  values: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Filter extends core.Schema<FilterArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

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

export interface DsResourceShareArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  name: string | core.StringOut;

  resourceOwner: string | core.StringOut;

  resourceShareStatus?: string | core.StringOut;

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

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

  @core.attr(Filter, { kind: "array" })
  public filter?: core.Array<Filter> | core.ArrayOut<Filter>;

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

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

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

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

  @core.attr(String)
  public resourceShareStatus?: string | core.StringOut;

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

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

  constructor(name: string, args?: DsResourceShareArgs) {
    super(name, "aws_ram_resource_share", args);
  }

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