aws_sdk_grafana/client/delete_workspace_service_account_token.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 [`DeleteWorkspaceServiceAccountToken`](crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`DeleteWorkspaceServiceAccountTokenOutput`](crate::operation::delete_workspace_service_account_token::DeleteWorkspaceServiceAccountTokenOutput) with field(s):
10 /// - [`token_id(String)`](crate::operation::delete_workspace_service_account_token::DeleteWorkspaceServiceAccountTokenOutput::token_id): <p>The ID of the token that was deleted.</p>
11 /// - [`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>
12 /// - [`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>
13 /// - On failure, responds with [`SdkError<DeleteWorkspaceServiceAccountTokenError>`](crate::operation::delete_workspace_service_account_token::DeleteWorkspaceServiceAccountTokenError)
14 pub fn delete_workspace_service_account_token(
15 &self,
16 ) -> crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder {
17 crate::operation::delete_workspace_service_account_token::builders::DeleteWorkspaceServiceAccountTokenFluentBuilder::new(self.handle.clone())
18 }
19}