import * as core from "@terrascript/core"; export interface ServiceDiscoveryInstanceArgs extends core.ResourceArgs { /** * (Required) A map contains the attributes of the instance. Check the [doc](https://docs.aws.amazon.co * m/cloud-map/latest/api/API_RegisterInstance.html#API_RegisterInstance_RequestSyntax) for the support * ed attributes and syntax. */ attributes: core.Map | core.MapOut; /** * (Required, ForceNew) The ID of the service instance. */ instanceId: string | core.StringOut; /** * (Required, ForceNew) The ID of the service that you want to use to create the instance. */ serviceId: string | core.StringOut; } export class ServiceDiscoveryInstance extends core.Resource { /** * (Required) A map contains the attributes of the instance. Check the [doc](https://docs.aws.amazon.co * m/cloud-map/latest/api/API_RegisterInstance.html#API_RegisterInstance_RequestSyntax) for the support * ed attributes and syntax. */ @core.attr(String, { kind: "map" }) public attributes!: core.Map | core.MapOut; /** * The ID of the instance. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required, ForceNew) The ID of the service instance. */ @core.attr(String) public instanceId!: string | core.StringOut; /** * (Required, ForceNew) The ID of the service that you want to use to create the instance. */ @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"; } }