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

export interface Ec2TransitGatewayPolicyTableArgs extends core.ResourceArgs {
  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  transitGatewayId: string | core.StringOut;
}

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

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

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

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

  constructor(name: string, args?: Ec2TransitGatewayPolicyTableArgs) {
    super(name, "aws_ec2_transit_gateway_policy_table", args);
  }

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