import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { KendraClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraClient"; import type { AssociatePersonasToEntitiesRequest, AssociatePersonasToEntitiesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociatePersonasToEntitiesCommand}. */ export interface AssociatePersonasToEntitiesCommandInput extends AssociatePersonasToEntitiesRequest { } /** * @public * * The output of {@link AssociatePersonasToEntitiesCommand}. */ export interface AssociatePersonasToEntitiesCommandOutput extends AssociatePersonasToEntitiesResponse, __MetadataBearer { } declare const AssociatePersonasToEntitiesCommand_base: { new (input: AssociatePersonasToEntitiesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AssociatePersonasToEntitiesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Defines the specific permissions of users or groups in your IAM Identity Center * identity source with access to your Amazon Kendra experience. You can create an Amazon Kendra * experience such as a search application. For more information on creating a * search application experience, see Building * a search experience with no code.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { KendraClient, AssociatePersonasToEntitiesCommand } from "@aws-sdk/client-kendra"; // ES Modules import * // const { KendraClient, AssociatePersonasToEntitiesCommand } = require("@aws-sdk/client-kendra"); // CommonJS import * // import type { KendraClientConfig } from "@aws-sdk/client-kendra"; * const config = {}; // type is KendraClientConfig * const client = new KendraClient(config); * const input = { // AssociatePersonasToEntitiesRequest * Id: "STRING_VALUE", // required * IndexId: "STRING_VALUE", // required * Personas: [ // EntityPersonaConfigurationList // required * { // EntityPersonaConfiguration * EntityId: "STRING_VALUE", // required * Persona: "OWNER" || "VIEWER", // required * }, * ], * }; * const command = new AssociatePersonasToEntitiesCommand(input); * const response = await client.send(command); * // { // AssociatePersonasToEntitiesResponse * // FailedEntityList: [ // FailedEntityList * // { // FailedEntity * // EntityId: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param AssociatePersonasToEntitiesCommandInput - {@link AssociatePersonasToEntitiesCommandInput} * @returns {@link AssociatePersonasToEntitiesCommandOutput} * @see {@link AssociatePersonasToEntitiesCommandInput} for command's `input` shape. * @see {@link AssociatePersonasToEntitiesCommandOutput} for command's `response` shape. * @see {@link KendraClientResolvedConfig | config} for KendraClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have sufficient access to perform this action. Please ensure you have the * required permission policies and user accounts and try again.

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

An issue occurred with the internal server used for your Amazon Kendra service. * Please wait a few minutes and try again, or contact Support for help.

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

The resource you want to use already exists. Please check you have provided the * correct resource and try again.

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

The resource you want to use doesn’t exist. Please check you have provided the correct * resource and try again.

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

The request was denied due to request throttling. Please reduce the number of requests * and try again.

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

The input fails to satisfy the constraints set by the Amazon Kendra service. * Please provide the correct input and try again.

* * @throws {@link KendraServiceException} *

Base exception class for all service exceptions from Kendra service.

* * * @public */ export declare class AssociatePersonasToEntitiesCommand extends AssociatePersonasToEntitiesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociatePersonasToEntitiesRequest; output: AssociatePersonasToEntitiesResponse; }; sdk: { input: AssociatePersonasToEntitiesCommandInput; output: AssociatePersonasToEntitiesCommandOutput; }; }; }