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

export interface EndpointSecurityGroupAssociationArgs
  extends core.ResourceArgs {
  replaceDefaultAssociation?: boolean | core.BooleanOut;

  securityGroupId: string | core.StringOut;

  vpcEndpointId: string | core.StringOut;
}

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

  @core.attr(Boolean)
  public replaceDefaultAssociation?: boolean | core.BooleanOut;

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

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

  constructor(name: string, args?: EndpointSecurityGroupAssociationArgs) {
    super(name, "aws_vpc_endpoint_security_group_association", args);
  }

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