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

export interface EndpointSubnetAssociationArgs extends core.ResourceArgs {
  subnetId: string | core.StringOut;

  vpcEndpointId: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: EndpointSubnetAssociationArgs) {
    super(name, "aws_vpc_endpoint_subnet_association", args);
  }

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