aws_sdk_devicefarm/client/
create_device_pool.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDevicePool`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`project_arn(impl Into<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::project_arn) / [`set_project_arn(Option<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_project_arn):<br>required: **true**<br><p>The ARN of the project for the device pool.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_name):<br>required: **true**<br><p>The device pool's name.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_description):<br>required: **false**<br><p>The device pool's description.</p><br>
    ///   - [`rules(Rule)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::rules) / [`set_rules(Option<Vec::<Rule>>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_rules):<br>required: **true**<br><p>The device pool's rules.</p><br>
    ///   - [`max_devices(i32)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::max_devices) / [`set_max_devices(Option<i32>)`](crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::set_max_devices):<br>required: **false**<br><p>The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for the <code>rules</code> parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.</p> <p>By specifying the maximum number of devices, you can control the costs that you incur by running tests.</p><br>
    /// - On success, responds with [`CreateDevicePoolOutput`](crate::operation::create_device_pool::CreateDevicePoolOutput) with field(s):
    ///   - [`device_pool(Option<DevicePool>)`](crate::operation::create_device_pool::CreateDevicePoolOutput::device_pool): <p>The newly created device pool.</p>
    /// - On failure, responds with [`SdkError<CreateDevicePoolError>`](crate::operation::create_device_pool::CreateDevicePoolError)
    pub fn create_device_pool(&self) -> crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder {
        crate::operation::create_device_pool::builders::CreateDevicePoolFluentBuilder::new(self.handle.clone())
    }
}