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

export interface Ec2TransitGatewayPolicyTableAssociationArgs
  extends core.ResourceArgs {
  transitGatewayAttachmentId: string | core.StringOut;

  transitGatewayPolicyTableId: string | core.StringOut;
}

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

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

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

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

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

  constructor(
    name: string,
    args?: Ec2TransitGatewayPolicyTableAssociationArgs
  ) {
    super(name, "aws_ec2_transit_gateway_policy_table_association", args);
  }

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