create_participant_token
¶
create_participant_token(
stage_arn: StageArn,
*,
config_overrides: Optional[IVSRealTimeClientConfig] = None,
duration: Optional[ParticipantTokenDurationMinutes] = None,
user_id: Optional[ParticipantTokenUserId] = None,
attributes: Optional[ParticipantTokenAttributes] = None,
capabilities: Optional[ParticipantTokenCapabilities] = None,
) -> CreateParticipantTokenResponse
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.
Parameters:
-
stage_arn(StageArn) –ARN of the stage to which this token is scoped.
-
duration(Optional[ParticipantTokenDurationMinutes], default:None) –Duration (in minutes), after which the token expires. Default: 720 (12 hours).
-
user_id(Optional[ParticipantTokenUserId], default:None) –Name that can be specified to help identify the token. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
-
attributes(Optional[ParticipantTokenAttributes], default:None) –Application-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
-
capabilities(Optional[ParticipantTokenCapabilities], default:None) –Set of capabilities that the user is allowed to perform in the stage. Default:
PUBLISH, SUBSCRIBE.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
PendingVerification–Your account is pending verification.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ivs_realtime/_services/ivs_real_time.py
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 | |