aws_sdk_deadline/client/
create_queue_environment.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateQueueEnvironment`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::set_client_token):<br>required: **false**<br><p>The unique token which the server uses to recognize retries of the same request.</p><br>
    ///   - [`farm_id(impl Into<String>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID of the farm to connect to the environment.</p><br>
    ///   - [`queue_id(impl Into<String>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::queue_id) / [`set_queue_id(Option<String>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::set_queue_id):<br>required: **true**<br><p>The queue ID to connect the queue and environment.</p><br>
    ///   - [`priority(i32)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::priority) / [`set_priority(Option<i32>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::set_priority):<br>required: **true**<br><p>Sets the priority of the environments in the queue from 0 to 10,000, where 0 is the highest priority. If two environments share the same priority value, the environment created first takes higher priority.</p><br>
    ///   - [`template_type(EnvironmentTemplateType)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::template_type) / [`set_template_type(Option<EnvironmentTemplateType>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::set_template_type):<br>required: **true**<br><p>The template's file type, <code>JSON</code> or <code>YAML</code>.</p><br>
    ///   - [`template(impl Into<String>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::template) / [`set_template(Option<String>)`](crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::set_template):<br>required: **true**<br><p>The environment template to use in the queue.</p><br>
    /// - On success, responds with [`CreateQueueEnvironmentOutput`](crate::operation::create_queue_environment::CreateQueueEnvironmentOutput) with field(s):
    ///   - [`queue_environment_id(String)`](crate::operation::create_queue_environment::CreateQueueEnvironmentOutput::queue_environment_id): <p>The queue environment ID.</p>
    /// - On failure, responds with [`SdkError<CreateQueueEnvironmentError>`](crate::operation::create_queue_environment::CreateQueueEnvironmentError)
    pub fn create_queue_environment(&self) -> crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder {
        crate::operation::create_queue_environment::builders::CreateQueueEnvironmentFluentBuilder::new(self.handle.clone())
    }
}