aws_sdk_grafana/client/
delete_workspace_service_account_token.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteWorkspaceServiceAccountToken`](crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`token_id(impl Into<String>)`](crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder::token_id) / [`set_token_id(Option<String>)`](crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder::set_token_id):<br>required: **true**<br><p>The ID of the token to delete.</p><br>
    ///   - [`service_account_id(impl Into<String>)`](crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder::service_account_id) / [`set_service_account_id(Option<String>)`](crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder::set_service_account_id):<br>required: **true**<br><p>The ID of the service account from which to delete the token.</p><br>
    ///   - [`workspace_id(impl Into<String>)`](crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder::workspace_id) / [`set_workspace_id(Option<String>)`](crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder::set_workspace_id):<br>required: **true**<br><p>The ID of the workspace from which to delete the token.</p><br>
    /// - On success, responds with [`DeleteWorkspaceServiceAccountTokenOutput`](crate::operation::delete_workspace_service_account_token::DeleteWorkspaceServiceAccountTokenOutput) with field(s):
    ///   - [`token_id(String)`](crate::operation::delete_workspace_service_account_token::DeleteWorkspaceServiceAccountTokenOutput::token_id): <p>The ID of the token that was deleted.</p>
    ///   - [`service_account_id(String)`](crate::operation::delete_workspace_service_account_token::DeleteWorkspaceServiceAccountTokenOutput::service_account_id): <p>The ID of the service account where the token was deleted.</p>
    ///   - [`workspace_id(String)`](crate::operation::delete_workspace_service_account_token::DeleteWorkspaceServiceAccountTokenOutput::workspace_id): <p>The ID of the workspace where the token was deleted.</p>
    /// - On failure, responds with [`SdkError<DeleteWorkspaceServiceAccountTokenError>`](crate::operation::delete_workspace_service_account_token::DeleteWorkspaceServiceAccountTokenError)
    pub fn delete_workspace_service_account_token(
        &self,
    ) -> crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder {
        crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder::new(self.handle.clone())
    }
}