Skip to main content

aws_sdk_continuum/client/
update_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 [`UpdateCollector`](crate::operation::update_collector::builders::UpdateCollectorFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`collector_id(impl Into<String>)`](crate::operation::update_collector::builders::UpdateCollectorFluentBuilder::collector_id) / [`set_collector_id(Option<String>)`](crate::operation::update_collector::builders::UpdateCollectorFluentBuilder::set_collector_id):<br>required: **true**<br>The unique identifier of the Collector to update.<br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_collector::builders::UpdateCollectorFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_collector::builders::UpdateCollectorFluentBuilder::set_name):<br>required: **false**<br>The new customer-visible name.<br>
8    ///   - [`kubernetes_cluster_role(KubernetesClusterRoleUpdate)`](crate::operation::update_collector::builders::UpdateCollectorFluentBuilder::kubernetes_cluster_role) / [`set_kubernetes_cluster_role(Option<KubernetesClusterRoleUpdate>)`](crate::operation::update_collector::builders::UpdateCollectorFluentBuilder::set_kubernetes_cluster_role):<br>required: **false**<br>Atomic update to the IAM role configuration used to collect Kubernetes cluster metadata. The set variant requires a complete configuration; the authenticated caller must be allowed to pass its exact roleArn to Continuum. The remove variant clears both the role and external ID.<br>
9    /// - On success, responds with [`UpdateCollectorOutput`](crate::operation::update_collector::UpdateCollectorOutput) with field(s):
10    ///   - [`collector_id(String)`](crate::operation::update_collector::UpdateCollectorOutput::collector_id): The unique identifier of the updated Collector.
11    ///   - [`collector_arn(String)`](crate::operation::update_collector::UpdateCollectorOutput::collector_arn): The ARN of the updated Collector.
12    ///   - [`r#type(CollectorType)`](crate::operation::update_collector::UpdateCollectorOutput::type): The source collected by this Collector.
13    ///   - [`status(CollectorStatus)`](crate::operation::update_collector::UpdateCollectorOutput::status): The current lifecycle status.
14    ///   - [`config_recorder_arn(Option<String>)`](crate::operation::update_collector::UpdateCollectorOutput::config_recorder_arn): The ARN of the provisioned AWS Config Recorder.
15    ///   - [`kubernetes_cluster_role_arn(Option<String>)`](crate::operation::update_collector::UpdateCollectorOutput::kubernetes_cluster_role_arn): IAM role used to collect Kubernetes cluster metadata.
16    ///   - [`created_at(DateTime)`](crate::operation::update_collector::UpdateCollectorOutput::created_at): The timestamp when the Collector was created.
17    ///   - [`updated_at(DateTime)`](crate::operation::update_collector::UpdateCollectorOutput::updated_at): The time of the last successful UpdateCollector call, returned at whole-second precision in the same date-time format as createdAt.
18    /// - On failure, responds with [`SdkError<UpdateCollectorError>`](crate::operation::update_collector::UpdateCollectorError)
19    pub fn update_collector(&self) -> crate::operation::update_collector::builders::UpdateCollectorFluentBuilder {
20        crate::operation::update_collector::builders::UpdateCollectorFluentBuilder::new(self.handle.clone())
21    }
22}