import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SetCognitoEventsRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link SetCognitoEventsCommand}. */ export interface SetCognitoEventsCommandInput extends SetCognitoEventsRequest { } /** * @public * * The output of {@link SetCognitoEventsCommand}. */ export interface SetCognitoEventsCommandOutput extends __MetadataBearer { } declare const SetCognitoEventsCommand_base: { new (input: SetCognitoEventsCommandInput): import("@smithy/core/client").CommandImpl; new (input: SetCognitoEventsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CognitoSyncClient, SetCognitoEventsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import * // const { CognitoSyncClient, SetCognitoEventsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import * // import type { CognitoSyncClientConfig } from "@aws-sdk/client-cognito-sync"; * const config = {}; // type is CognitoSyncClientConfig * const client = new CognitoSyncClient(config); * const input = { // SetCognitoEventsRequest * IdentityPoolId: "STRING_VALUE", // required * Events: { // Events // required * "": "STRING_VALUE", * }, * }; * const command = new SetCognitoEventsCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param SetCognitoEventsCommandInput - {@link SetCognitoEventsCommandInput} * @returns {@link SetCognitoEventsCommandOutput} * @see {@link SetCognitoEventsCommandInput} for command's `input` shape. * @see {@link SetCognitoEventsCommandOutput} for command's `response` shape. * @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape. * * @throws {@link InternalErrorException} (server fault) * Indicates an internal service * error. * * @throws {@link InvalidParameterException} (client fault) * Thrown when a request parameter does not comply * with the associated constraints. * * @throws {@link NotAuthorizedException} (client fault) * Thrown when a user is not authorized to access the * requested resource. * * @throws {@link ResourceNotFoundException} (client fault) * Thrown if the resource doesn't * exist. * * @throws {@link TooManyRequestsException} (client fault) * Thrown if the request is * throttled. * * @throws {@link CognitoSyncServiceException} *

Base exception class for all service exceptions from CognitoSync service.

* * * @public */ export declare class SetCognitoEventsCommand extends SetCognitoEventsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SetCognitoEventsRequest; output: {}; }; sdk: { input: SetCognitoEventsCommandInput; output: SetCognitoEventsCommandOutput; }; }; }