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

export interface AssociationsArgs extends core.SchemaArgs {
  subnetId: string | core.StringOut;

  transitGatewayAttachmentId: string | core.StringOut;
}

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

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

export interface MembersArgs extends core.SchemaArgs {
  groupIpAddress: string | core.StringOut;

  networkInterfaceId: string | core.StringOut;
}

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

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

export interface SourcesArgs extends core.SchemaArgs {
  groupIpAddress: string | core.StringOut;

  networkInterfaceId: string | core.StringOut;
}

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

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

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 DsEc2TransitGatewayMulticastDomainArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

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

  transitGatewayMulticastDomainId?: string | core.StringOut;
}

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

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

  @core.attr(String, { computed: true })
  public autoAcceptSharedAssociations!: 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, { computed: true })
  public igmpv2Support!: string | core.StringOut;

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsEc2TransitGatewayMulticastDomainArgs) {
    super(name, "aws_ec2_transit_gateway_multicast_domain", args);
  }

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