getService

abstract suspend fun getService(input: GetServiceRequest): GetServiceResponse

Gets the settings for a specified service.

Samples


fun main() { 
   //sampleStart 
   // Gets service settings using a service ARN instead of service ID, useful when working with shared
// namespaces. Shows a service created by a sharee
// (111122223333) in a namespace owned by another account (123456789012).
val resp = serviceDiscoveryClient.getService {
    id = "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678"
} 
   //sampleEnd
}