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

export interface EndpointServiceAllowedPrincipalArgs extends core.ResourceArgs {
  principalArn: string | core.StringOut;

  vpcEndpointServiceId: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: EndpointServiceAllowedPrincipalArgs) {
    super(name, "aws_vpc_endpoint_service_allowed_principal", args);
  }

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