aws_sdk_workdocs/client/
delete_labels.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteLabels`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_id(impl Into<String>)`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::set_resource_id):<br>required: **true**<br><p>The ID of the resource.</p><br>
    ///   - [`authentication_token(impl Into<String>)`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::set_authentication_token):<br>required: **false**<br><p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p><br>
    ///   - [`labels(impl Into<String>)`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::labels) / [`set_labels(Option<Vec::<String>>)`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::set_labels):<br>required: **false**<br><p>List of labels to delete from the resource.</p><br>
    ///   - [`delete_all(bool)`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::delete_all) / [`set_delete_all(Option<bool>)`](crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::set_delete_all):<br>required: **false**<br><p>Flag to request removal of all labels from the specified resource.</p><br>
    /// - On success, responds with [`DeleteLabelsOutput`](crate::operation::delete_labels::DeleteLabelsOutput)
    /// - On failure, responds with [`SdkError<DeleteLabelsError>`](crate::operation::delete_labels::DeleteLabelsError)
    pub fn delete_labels(&self) -> crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder {
        crate::operation::delete_labels::builders::DeleteLabelsFluentBuilder::new(self.handle.clone())
    }
}