updateConnectionRecordingPreferences
inline suspend fun SsmGuiConnectClient.updateConnectionRecordingPreferences(crossinline block: UpdateConnectionRecordingPreferencesRequest.Builder.() -> Unit): UpdateConnectionRecordingPreferencesResponse
Updates the preferences for recording RDP connections.
Samples
import aws.sdk.kotlin.services.ssmguiconnect.model.ConnectionRecordingPreferences
import aws.sdk.kotlin.services.ssmguiconnect.model.RecordingDestinations
import aws.sdk.kotlin.services.ssmguiconnect.model.S3Bucket
fun main() {
//sampleStart
// Updates the connection recording preferences for the account
val resp = ssmGuiConnectClient.updateConnectionRecordingPreferences {
connectionRecordingPreferences = ConnectionRecordingPreferences {
recordingDestinations = RecordingDestinations {
s3Buckets = listOf<S3Bucket>(
S3Bucket {
bucketOwner = "123456789012"
bucketName = "sample-connection-recording-bucket"
}
)
}
kmsKeyArn = "arn:aws:kms:region:account_id:key/sample_key_id"
}
}
//sampleEnd
}