import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateLabelsRequest, CreateLabelsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateLabelsCommand}. */ export interface CreateLabelsCommandInput extends CreateLabelsRequest { } /** * @public * * The output of {@link CreateLabelsCommand}. */ export interface CreateLabelsCommandOutput extends CreateLabelsResponse, __MetadataBearer { } declare const CreateLabelsCommand_base: { new (input: CreateLabelsCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateLabelsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds the specified list of labels to the given resource (a document or * folder)

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkDocsClient, CreateLabelsCommand } from "@aws-sdk/client-workdocs"; // ES Modules import * // const { WorkDocsClient, CreateLabelsCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import * // import type { WorkDocsClientConfig } from "@aws-sdk/client-workdocs"; * const config = {}; // type is WorkDocsClientConfig * const client = new WorkDocsClient(config); * const input = { // CreateLabelsRequest * ResourceId: "STRING_VALUE", // required * Labels: [ // SharedLabels // required * "STRING_VALUE", * ], * AuthenticationToken: "STRING_VALUE", * }; * const command = new CreateLabelsCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CreateLabelsCommandInput - {@link CreateLabelsCommandInput} * @returns {@link CreateLabelsCommandOutput} * @see {@link CreateLabelsCommandInput} for command's `input` shape. * @see {@link CreateLabelsCommandOutput} for command's `response` shape. * @see {@link WorkDocsClientResolvedConfig | config} for WorkDocsClient's `config` shape. * * @throws {@link EntityNotExistsException} (client fault) *

The resource does not exist.

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

The Directory Service cannot reach an on-premises instance. Or a dependency * under the control of the organization is failing, such as a connected Active * Directory.

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

One or more of the dependencies is unavailable.

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

The limit has been reached on the number of labels for the specified * resource.

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

The operation is not permitted.

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

The caller does not have access to perform the action on the resource.

* * @throws {@link WorkDocsServiceException} *

Base exception class for all service exceptions from WorkDocs service.

* * * @public */ export declare class CreateLabelsCommand extends CreateLabelsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateLabelsRequest; output: {}; }; sdk: { input: CreateLabelsCommandInput; output: CreateLabelsCommandOutput; }; }; }