updateDataRetention
abstract suspend fun updateDataRetention(input: UpdateDataRetentionRequest): UpdateDataRetentionResponse
Updates the data retention bot settings, allowing you to enable or disable the data retention service, or acknowledge the public key message.
Samples
import aws.sdk.kotlin.services.wickr.model.DataRetentionActionType
fun main() {
//sampleStart
// Update data retention enable service
val resp = wickrClient.updateDataRetention {
networkId = "12345678"
actionType = DataRetentionActionType.fromValue("ENABLE")
}
//sampleEnd
}import aws.sdk.kotlin.services.wickr.model.DataRetentionActionType
fun main() {
//sampleStart
// Update data retention disable service
val resp = wickrClient.updateDataRetention {
networkId = "12345678"
actionType = DataRetentionActionType.fromValue("DISABLE")
}
//sampleEnd
}import aws.sdk.kotlin.services.wickr.model.DataRetentionActionType
fun main() {
//sampleStart
// Update data retention acknowledge pubkey message
val resp = wickrClient.updateDataRetention {
networkId = "12345678"
actionType = DataRetentionActionType.fromValue("PUBKEY_MSG_ACK")
}
//sampleEnd
}