aws_sdk_iotfleetwise/client/
get_fleet.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetFleet`](crate::operation::get_fleet::builders::GetFleetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`fleet_id(impl Into<String>)`](crate::operation::get_fleet::builders::GetFleetFluentBuilder::fleet_id) / [`set_fleet_id(Option<String>)`](crate::operation::get_fleet::builders::GetFleetFluentBuilder::set_fleet_id):<br>required: **true**<br><p>The ID of the fleet to retrieve information about.</p><br>
7    /// - On success, responds with [`GetFleetOutput`](crate::operation::get_fleet::GetFleetOutput) with field(s):
8    ///   - [`id(String)`](crate::operation::get_fleet::GetFleetOutput::id): <p>The ID of the fleet.</p>
9    ///   - [`arn(String)`](crate::operation::get_fleet::GetFleetOutput::arn): <p>The Amazon Resource Name (ARN) of the fleet.</p>
10    ///   - [`description(Option<String>)`](crate::operation::get_fleet::GetFleetOutput::description): <p>A brief description of the fleet.</p>
11    ///   - [`signal_catalog_arn(String)`](crate::operation::get_fleet::GetFleetOutput::signal_catalog_arn): <p>The ARN of a signal catalog associated with the fleet.</p>
12    ///   - [`creation_time(DateTime)`](crate::operation::get_fleet::GetFleetOutput::creation_time): <p>The time the fleet was created in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
13    ///   - [`last_modification_time(DateTime)`](crate::operation::get_fleet::GetFleetOutput::last_modification_time): <p>The time the fleet was last updated, in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
14    /// - On failure, responds with [`SdkError<GetFleetError>`](crate::operation::get_fleet::GetFleetError)
15    pub fn get_fleet(&self) -> crate::operation::get_fleet::builders::GetFleetFluentBuilder {
16        crate::operation::get_fleet::builders::GetFleetFluentBuilder::new(self.handle.clone())
17    }
18}