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

export interface ServiceDiscoveryInstanceArgs extends core.ResourceArgs {
  attributes: core.Map<string, string> | core.MapOut<core.StringOut>;

  instanceId: string | core.StringOut;

  serviceId: string | core.StringOut;
}

export class ServiceDiscoveryInstance extends core.Resource<ServiceDiscoveryInstanceArgs> {
  @core.attr(String, { kind: "map" })
  public attributes!: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

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

  constructor(name: string, args?: ServiceDiscoveryInstanceArgs) {
    super(name, "aws_service_discovery_instance", args);
  }

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