aws_sdk_deadline/client/create_fleet.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateFleet`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`client_token(impl Into<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::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_fleet::builders::CreateFleetFluentBuilder::farm_id) / [`set_farm_id(Option<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::set_farm_id):<br>required: **true**<br><p>The farm ID of the farm to connect to the fleet.</p><br>
/// - [`display_name(impl Into<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::set_display_name):<br>required: **true**<br><p>The display name of the fleet.</p><important> <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important><br>
/// - [`description(impl Into<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::set_description):<br>required: **false**<br><p>The description of the fleet.</p><important> <p>This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.</p> </important><br>
/// - [`role_arn(impl Into<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::set_role_arn):<br>required: **true**<br><p>The IAM role ARN for the role that the fleet's workers will use.</p><br>
/// - [`min_worker_count(i32)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::min_worker_count) / [`set_min_worker_count(Option<i32>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::set_min_worker_count):<br>required: **false**<br><p>The minimum number of workers for the fleet.</p><br>
/// - [`max_worker_count(i32)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::max_worker_count) / [`set_max_worker_count(Option<i32>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::set_max_worker_count):<br>required: **true**<br><p>The maximum number of workers for the fleet.</p><br>
/// - [`configuration(FleetConfiguration)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::configuration) / [`set_configuration(Option<FleetConfiguration>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::set_configuration):<br>required: **true**<br><p>The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 fleets are managed by Deadline Cloud.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_fleet::builders::CreateFleetFluentBuilder::set_tags):<br>required: **false**<br><p>Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.</p><br>
/// - On success, responds with [`CreateFleetOutput`](crate::operation::create_fleet::CreateFleetOutput) with field(s):
/// - [`fleet_id(String)`](crate::operation::create_fleet::CreateFleetOutput::fleet_id): <p>The fleet ID.</p>
/// - On failure, responds with [`SdkError<CreateFleetError>`](crate::operation::create_fleet::CreateFleetError)
pub fn create_fleet(&self) -> crate::operation::create_fleet::builders::CreateFleetFluentBuilder {
crate::operation::create_fleet::builders::CreateFleetFluentBuilder::new(self.handle.clone())
}
}