import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient"; import type { DeleteWorkspaceServiceAccountRequest, DeleteWorkspaceServiceAccountResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteWorkspaceServiceAccountCommand}. */ export interface DeleteWorkspaceServiceAccountCommandInput extends DeleteWorkspaceServiceAccountRequest { } /** * @public * * The output of {@link DeleteWorkspaceServiceAccountCommand}. */ export interface DeleteWorkspaceServiceAccountCommandOutput extends DeleteWorkspaceServiceAccountResponse, __MetadataBearer { } declare const DeleteWorkspaceServiceAccountCommand_base: { new (input: DeleteWorkspaceServiceAccountCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteWorkspaceServiceAccountCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes a workspace service account from the workspace.

This will delete any tokens created for the service account, as well. If the tokens are currently in use, the will fail to authenticate / authorize after they are deleted.

Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GrafanaClient, DeleteWorkspaceServiceAccountCommand } from "@aws-sdk/client-grafana"; // ES Modules import * // const { GrafanaClient, DeleteWorkspaceServiceAccountCommand } = require("@aws-sdk/client-grafana"); // CommonJS import * // import type { GrafanaClientConfig } from "@aws-sdk/client-grafana"; * const config = {}; // type is GrafanaClientConfig * const client = new GrafanaClient(config); * const input = { // DeleteWorkspaceServiceAccountRequest * serviceAccountId: "STRING_VALUE", // required * workspaceId: "STRING_VALUE", // required * }; * const command = new DeleteWorkspaceServiceAccountCommand(input); * const response = await client.send(command); * // { // DeleteWorkspaceServiceAccountResponse * // serviceAccountId: "STRING_VALUE", // required * // workspaceId: "STRING_VALUE", // required * // }; * * ``` * * @param DeleteWorkspaceServiceAccountCommandInput - {@link DeleteWorkspaceServiceAccountCommandInput} * @returns {@link DeleteWorkspaceServiceAccountCommandOutput} * @see {@link DeleteWorkspaceServiceAccountCommandInput} for command's `input` shape. * @see {@link DeleteWorkspaceServiceAccountCommandOutput} for command's `response` shape. * @see {@link GrafanaClientResolvedConfig | config} for GrafanaClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

* * @throws {@link ConflictException} (client fault) *

A resource was in an inconsistent state during an update or a deletion.

* * @throws {@link InternalServerException} (server fault) *

Unexpected error while processing the request. Retry the request.

* * @throws {@link ResourceNotFoundException} (client fault) *

The request references a resource that does not exist.

* * @throws {@link ThrottlingException} (client fault) *

The request was denied because of request throttling. Retry the request.

* * @throws {@link ValidationException} (client fault) *

The value of a parameter in the request caused an error.

* * @throws {@link GrafanaServiceException} *

Base exception class for all service exceptions from Grafana service.

* * * @public */ export declare class DeleteWorkspaceServiceAccountCommand extends DeleteWorkspaceServiceAccountCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteWorkspaceServiceAccountRequest; output: DeleteWorkspaceServiceAccountResponse; }; sdk: { input: DeleteWorkspaceServiceAccountCommandInput; output: DeleteWorkspaceServiceAccountCommandOutput; }; }; }