Data Source: awsServiceDiscoveryService
Retrieves information about a Service Discovery Service.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsServiceDiscoveryService.DataAwsServiceDiscoveryService(
this,
"test",
{
name: "example",
namespaceId: "NAMESPACE_ID_VALUE",
}
);
Argument Reference
The following arguments are supported:
name
- (Required) Name of the service.namespaceId
- (Required) ID of the namespace that the service belongs to.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- ID of the service.arn
- ARN of the service.description
- Description of the service.dnsConfig
- Complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance.healthCheckConfig
- Complex type that contains settings for an optional health check. Only for Public DNS namespaces.healthCheckCustomConfig
- A complex type that contains settings for ECS managed health checks.tags
- Map of tags to assign to the service. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.tagsAll
- Map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
dnsConfig
The following arguments are supported:
namespaceId
- ID of the namespace to use for DNS configuration.dnsRecords
- An array that contains one DnsRecord object for each resource record set.routingPolicy
- Routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify the service. Valid Values: MULTIVALUE, WEIGHTED
dnsRecords
The following arguments are supported:
ttl
- Amount of time, in seconds, that you want DNS resolvers to cache the settings for this resource record set.type
- Type of the resource, which indicates the value that Amazon Route 53 returns in response to DNS queries. Valid Values: A, AAAA, SRV, CNAME
healthCheckConfig
The following arguments are supported:
failureThreshold
- Number of consecutive health checks. Maximum value of 10.resourcePath
- Path that you want Route 53 to request when performing health checks. Route 53 automatically adds the DNS name for the service. If you don't specify a value, the default value is /.type
- The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy. Valid Values: HTTP, HTTPS, TCP
healthCheckCustomConfig
The following arguments are supported:
failureThreshold
- The number of 30-second intervals that you want service discovery to wait before it changes the health status of a service instance. Maximum value of 10.