Skip to main content

aws_sdk_continuum/client/
get_collector.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 [`GetCollector`](crate::operation::get_collector::builders::GetCollectorFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`collector_id(impl Into<String>)`](crate::operation::get_collector::builders::GetCollectorFluentBuilder::collector_id) / [`set_collector_id(Option<String>)`](crate::operation::get_collector::builders::GetCollectorFluentBuilder::set_collector_id):<br>required: **true**<br>The unique identifier of the Collector to retrieve.<br>
7    /// - On success, responds with [`GetCollectorOutput`](crate::operation::get_collector::GetCollectorOutput) with field(s):
8    ///   - [`collector_id(String)`](crate::operation::get_collector::GetCollectorOutput::collector_id): The unique identifier of the Collector.
9    ///   - [`collector_arn(String)`](crate::operation::get_collector::GetCollectorOutput::collector_arn): The ARN of the Collector.
10    ///   - [`r#type(CollectorType)`](crate::operation::get_collector::GetCollectorOutput::type): The source collected by this Collector.
11    ///   - [`status(CollectorStatus)`](crate::operation::get_collector::GetCollectorOutput::status): The current lifecycle status.
12    ///   - [`config_recorder_arn(Option<String>)`](crate::operation::get_collector::GetCollectorOutput::config_recorder_arn): The ARN of the provisioned AWS Config Recorder.
13    ///   - [`kubernetes_cluster_role_arn(Option<String>)`](crate::operation::get_collector::GetCollectorOutput::kubernetes_cluster_role_arn): IAM role used to collect Kubernetes cluster metadata.
14    ///   - [`created_at(DateTime)`](crate::operation::get_collector::GetCollectorOutput::created_at): The timestamp when the Collector was created.
15    ///   - [`updated_at(DateTime)`](crate::operation::get_collector::GetCollectorOutput::updated_at): The time of the last successful UpdateCollector call, returned at whole-second precision in the same date-time format as createdAt.
16    /// - On failure, responds with [`SdkError<GetCollectorError>`](crate::operation::get_collector::GetCollectorError)
17    pub fn get_collector(&self) -> crate::operation::get_collector::builders::GetCollectorFluentBuilder {
18        crate::operation::get_collector::builders::GetCollectorFluentBuilder::new(self.handle.clone())
19    }
20}