updateDevicePool
inline suspend fun DeviceFarmClient.updateDevicePool(crossinline block: UpdateDevicePoolRequest.Builder.() -> Unit): UpdateDevicePoolResponse
Modifies the name, description, and rules in a device pool given the attributes and the pool ARN. Rule updates are all-or-nothing, meaning they can only be updated as a whole (or not at all).
Samples
import aws.sdk.kotlin.services.devicefarm.model.Rule
fun main() {
//sampleStart
// The following example updates the specified device pool with a new name and description. It also
// enables remote access of devices in the device pool.
val resp = deviceFarmClient.updateDevicePool {
arn = "arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-12345EXAMPLE"
name = "NewName"
description = "NewDescription"
rules = listOf<Rule>(
Rule {
attribute = DeviceAttribute.fromValue("REMOTE_ACCESS_ENABLED")
operator = RuleOperator.fromValue("EQUALS")
value = "True"
}
)
}
//sampleEnd
}