---
type: resource-type
title: ServiceDiscoveryService
description: aws resource type AWS::ServiceDiscovery::Service
name: ServiceDiscoveryService
lexicon: aws
resource_type: AWS::ServiceDiscovery::Service
---
`AWS::ServiceDiscovery::Service`, a resource type of the aws lexicon.

## Properties

- `Arn` (`string`, optional): The Amazon Resource Name (ARN) of the service.
- `Description` (`string`, optional): A description for the service.
- `DnsConfig` (`ServiceDiscoveryService_DnsConfig`, optional): DNS-related configurations for the service.
- `HealthCheckConfig` (`ServiceDiscoveryService_HealthCheckConfig`, optional): Settings for health checks. Used when routing is DNS-based.
- `HealthCheckCustomConfig` (`ServiceDiscoveryService_HealthCheckCustomConfig`, optional): Settings for custom health checks.
- `Id` (`string`, optional): The unique identifier for the service.
- `Name` (`string`, optional): The name of the service.
- `NamespaceId` (`string`, optional): The ID of the namespace in which the service is created.
- `ServiceAttributes` (`Record<string, unknown>`, optional): A string map that contains attributes and values for the service. You can specify a maximum of 30 key-value pairs.
- `Tags` (`ServiceDiscoveryService_Tag[]`, optional): An array of key-value pairs to associate with the service.
- `Type` (`string`, optional): The type of service. Supported values are HTTP or DNS.

## Attributes

- `Arn`
- `Id`
