aws_sdk_deadline/client/
create_worker.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateWorker`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`farm_id(impl Into<String>)`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID of the farm to connect to the worker.</p><br>
    ///   - [`fleet_id(impl Into<String>)`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder::fleet_id) / [`set_fleet_id(Option<String>)`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder::set_fleet_id):<br>required: **true**<br><p>The fleet ID to connect to the worker.</p><br>
    ///   - [`host_properties(HostPropertiesRequest)`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder::host_properties) / [`set_host_properties(Option<HostPropertiesRequest>)`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder::set_host_properties):<br>required: **false**<br><p>The IP address and host name of the worker.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_worker::builders::CreateWorkerFluentBuilder::set_client_token):<br>required: **false**<br><p>The unique token which the server uses to recognize retries of the same request.</p><br>
    /// - On success, responds with [`CreateWorkerOutput`](crate::operation::create_worker::CreateWorkerOutput) with field(s):
    ///   - [`worker_id(String)`](crate::operation::create_worker::CreateWorkerOutput::worker_id): <p>The worker ID.</p>
    /// - On failure, responds with [`SdkError<CreateWorkerError>`](crate::operation::create_worker::CreateWorkerError)
    pub fn create_worker(&self) -> crate::operation::create_worker::builders::CreateWorkerFluentBuilder {
        crate::operation::create_worker::builders::CreateWorkerFluentBuilder::new(self.handle.clone())
    }
}