Smaws_Client_ServiceDiscovery.CreateService
val request :
Smaws_Lib.Context.t ->
create_service_request ->
(create_service_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidInput of invalid_input
| `NamespaceNotFound of namespace_not_found
| `ResourceLimitExceeded of resource_limit_exceeded
| `ServiceAlreadyExists of service_already_exists
| `TooManyTagsException of too_many_tags_exception ])
Stdlib.result
Creates a service. This action defines the configuration for the following entities:
For public and private DNS namespaces, one of the following combinations of DNS records in Amazon Route 53:
A
AAAA
A
and AAAA
SRV
CNAME
After you create the service, you can submit a RegisterInstance request, and Cloud Map uses the values in the configuration to create the specified entities.
For the current quota on the number of instances that you can register using the same namespace and using the same service, see Cloud Map quotas in the Cloud Map Developer Guide.