import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IVSRealTimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IVSRealTimeClient"; import type { CreateParticipantTokenRequest, CreateParticipantTokenResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateParticipantTokenCommand}. */ export interface CreateParticipantTokenCommandInput extends CreateParticipantTokenRequest { } /** * @public * * The output of {@link CreateParticipantTokenCommand}. */ export interface CreateParticipantTokenCommandOutput extends CreateParticipantTokenResponse, __MetadataBearer { } declare const CreateParticipantTokenCommand_base: { new (input: CreateParticipantTokenCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateParticipantTokenCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates an additional token for a specified stage. This can be done after stage creation * or when tokens expire. Tokens always are scoped to the stage for which they are * created.

*

Encryption keys are owned by Amazon IVS and never used directly by your * application.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IVSRealTimeClient, CreateParticipantTokenCommand } from "@aws-sdk/client-ivs-realtime"; // ES Modules import * // const { IVSRealTimeClient, CreateParticipantTokenCommand } = require("@aws-sdk/client-ivs-realtime"); // CommonJS import * // import type { IVSRealTimeClientConfig } from "@aws-sdk/client-ivs-realtime"; * const config = {}; // type is IVSRealTimeClientConfig * const client = new IVSRealTimeClient(config); * const input = { // CreateParticipantTokenRequest * stageArn: "STRING_VALUE", // required * duration: Number("int"), * userId: "STRING_VALUE", * attributes: { // ParticipantTokenAttributes * "": "STRING_VALUE", * }, * capabilities: [ // ParticipantTokenCapabilities * "STRING_VALUE", * ], * }; * const command = new CreateParticipantTokenCommand(input); * const response = await client.send(command); * // { // CreateParticipantTokenResponse * // participantToken: { // ParticipantToken * // participantId: "STRING_VALUE", * // token: "STRING_VALUE", * // userId: "STRING_VALUE", * // attributes: { // ParticipantTokenAttributes * // "": "STRING_VALUE", * // }, * // duration: Number("int"), * // capabilities: [ // ParticipantTokenCapabilities * // "STRING_VALUE", * // ], * // expirationTime: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param CreateParticipantTokenCommandInput - {@link CreateParticipantTokenCommandInput} * @returns {@link CreateParticipantTokenCommandOutput} * @see {@link CreateParticipantTokenCommandInput} for command's `input` shape. * @see {@link CreateParticipantTokenCommandOutput} for command's `response` shape. * @see {@link IVSRealTimeClientResolvedConfig | config} for IVSRealTimeClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

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

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

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

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

* * @throws {@link IVSRealTimeServiceException} *

Base exception class for all service exceptions from IVSRealTime service.

* * * @public */ export declare class CreateParticipantTokenCommand extends CreateParticipantTokenCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateParticipantTokenRequest; output: CreateParticipantTokenResponse; }; sdk: { input: CreateParticipantTokenCommandInput; output: CreateParticipantTokenCommandOutput; }; }; }