updatePrivateDnsNamespace
inline suspend fun ServiceDiscoveryClient.updatePrivateDnsNamespace(crossinline block: UpdatePrivateDnsNamespaceRequest.Builder.() -> Unit): UpdatePrivateDnsNamespaceResponse
Updates a private DNS namespace.
Samples
import aws.sdk.kotlin.services.servicediscovery.model.PrivateDnsNamespaceChange
fun main() {
//sampleStart
// The following example updates the description of a private DNS namespace.
val resp = serviceDiscoveryClient.updatePrivateDnsNamespace {
id = "ns-bk3aEXAMPLE"
updaterRequestId = ""
namespace = PrivateDnsNamespaceChange {
description = "The updated namespace description."
}
}
//sampleEnd
}
import aws.sdk.kotlin.services.servicediscovery.model.PrivateDnsNamespaceChange
fun main() {
//sampleStart
// The following example updates the description of a public DNS namespace.
val resp = serviceDiscoveryClient.updatePrivateDnsNamespace {
id = "ns-bk3aEXAMPLE"
updaterRequestId = ""
namespace = PrivateDnsNamespaceChange {
description = "The updated namespace description."
}
}
//sampleEnd
}