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

export interface PrivateDnsNameConfigurationArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  state: string | core.StringOut;

  type: string | core.StringOut;

  value: string | core.StringOut;
}

export class PrivateDnsNameConfiguration extends core.Schema<PrivateDnsNameConfigurationArgs> {
  @core.attr(String, { computed: true })
  public name!: string | core.StringOut;

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

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

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

export interface EndpointServiceArgs extends core.ResourceArgs {
  acceptanceRequired: boolean | core.BooleanOut;

  allowedPrincipals?: core.Array<string> | core.ArrayOut<core.StringOut>;

  gatewayLoadBalancerArns?: core.Array<string> | core.ArrayOut<core.StringOut>;

  networkLoadBalancerArns?: core.Array<string> | core.ArrayOut<core.StringOut>;

  privateDnsName?: string | core.StringOut;

  supportedIpAddressTypes?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

export class EndpointService extends core.Resource<EndpointServiceArgs> {
  @core.attr(Boolean)
  public acceptanceRequired!: boolean | core.BooleanOut;

  @core.attr(String, { computed: true, kind: "array" })
  public allowedPrincipals?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  @core.attr(String, { computed: true, kind: "array" })
  public availabilityZones!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "array" })
  public baseEndpointDnsNames!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public gatewayLoadBalancerArns?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

  @core.attr(Boolean, { computed: true })
  public managesVpcEndpoints!: boolean | core.BooleanOut;

  @core.attr(String, { kind: "array" })
  public networkLoadBalancerArns?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

  @core.attr(PrivateDnsNameConfiguration, { computed: true, kind: "array" })
  public privateDnsNameConfiguration!:
    | core.Array<PrivateDnsNameConfiguration>
    | core.ArrayOut<PrivateDnsNameConfiguration>;

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public supportedIpAddressTypes?:
    | core.Array<string>
    | core.ArrayOut<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>;

  constructor(name: string, args?: EndpointServiceArgs) {
    super(name, "aws_vpc_endpoint_service", args);
  }

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