Learn R Programming

paws.analytics (version 0.7.0)

ivsrealtime: Amazon Interactive Video Service RealTime

Description

The Amazon Interactive Video Service (IVS) real-time API is REST compatible, using a standard HTTP API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses, including errors.

Key Concepts

  • Stage — A virtual space where participants can exchange video in real time.

  • Participant token — A token that authenticates a participant when they join a stage.

  • Participant object — Represents participants (people) in the stage and contains information about them. When a token is created, it includes a participant ID; when a participant uses that token to join a stage, the participant is associated with that participant ID. There is a 1:1 mapping between participant tokens and participants.

For server-side composition:

  • Composition process — Composites participants of a stage into a single video and forwards it to a set of outputs (e.g., IVS channels). Composition endpoints support this process.

  • Composition — Controls the look of the outputs, including how participants are positioned in the video.

For more information about your IVS live stream, also see Getting Started with Amazon IVS Real-Time Streaming.

Tagging

A tag is a metadata label that you assign to an AWS resource. A tag comprises a key and a value, both set by you. For example, you might set a tag as topic:nature to label a particular video category. See Tagging AWS Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS stages has no service-specific constraints beyond what is documented there.

Tags can help you identify and organize your AWS resources. For example, you can use the same tag for different resources to indicate that they are related. You can also use tags to manage access (see Access Tags).

The Amazon IVS real-time API has these tag-related endpoints: tag_resource, untag_resource, and list_tags_for_resource. The following resource supports tagging: Stage.

At most 50 tags can be applied to a resource.

Usage

ivsrealtime(
  config = list(),
  credentials = list(),
  endpoint = NULL,
  region = NULL
)

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

  • credentials:

    • creds:

      • access_key_id: AWS access key ID

      • secret_access_key: AWS secret access key

      • session_token: AWS temporary session token

    • profile: The name of a profile to use. If not given, then the default profile is used.

    • anonymous: Set anonymous credentials.

  • endpoint: The complete URL to use for the constructed client.

  • region: The AWS Region used in instantiating the client.

  • close_connection: Immediately close all HTTP connections.

  • timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

  • s3_force_path_style: Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

  • sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

credentials

Optional credentials shorthand for the config parameter

  • creds:

    • access_key_id: AWS access key ID

    • secret_access_key: AWS secret access key

    • session_token: AWS temporary session token

  • profile: The name of a profile to use. If not given, then the default profile is used.

  • anonymous: Set anonymous credentials.

endpoint

Optional shorthand for complete URL to use for the constructed client.

region

Optional shorthand for AWS Region used in instantiating the client.

Service syntax

svc <- ivsrealtime(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string",
      anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

create_encoder_configurationCreates an EncoderConfiguration object
create_participant_tokenCreates an additional token for a specified stage
create_stageCreates a new stage (and optionally participant tokens)
create_storage_configurationCreates a new storage configuration, used to enable recording to Amazon S3
delete_encoder_configurationDeletes an EncoderConfiguration resource
delete_public_keyDeletes the specified public key used to sign stage participant tokens
delete_stageShuts down and deletes the specified stage (disconnecting all participants)
delete_storage_configurationDeletes the storage configuration for the specified ARN
disconnect_participantDisconnects a specified participant and revokes the participant permanently from a specified stage
get_compositionGet information about the specified Composition resource
get_encoder_configurationGets information about the specified EncoderConfiguration resource
get_participantGets information about the specified participant token
get_public_keyGets information for the specified public key
get_stageGets information for the specified stage
get_stage_sessionGets information for the specified stage session
get_storage_configurationGets the storage configuration for the specified ARN
import_public_keyImport a public key to be used for signing stage participant tokens
list_compositionsGets summary information about all Compositions in your account, in the AWS region where the API request is processed
list_encoder_configurationsGets summary information about all EncoderConfigurations in your account, in the AWS region where the API request is processed
list_participant_eventsLists events for a specified participant that occurred during a specified stage session
list_participantsLists all participants in a specified stage session
list_public_keysGets summary information about all public keys in your account, in the AWS region where the API request is processed
list_stagesGets summary information about all stages in your account, in the AWS region where the API request is processed
list_stage_sessionsGets all sessions for a specified stage
list_storage_configurationsGets summary information about all storage configurations in your account, in the AWS region where the API request is processed
list_tags_for_resourceGets information about AWS tags for the specified ARN
start_compositionStarts a Composition from a stage based on the configuration provided in the request
stop_compositionStops and deletes a Composition resource
tag_resourceAdds or updates tags for the AWS resource with the specified ARN
untag_resourceRemoves tags from the resource with the specified ARN
update_stageUpdates a stage’s configuration

Examples

Run this code
if (FALSE) {
svc <- ivsrealtime()
svc$create_encoder_configuration(
  Foo = 123
)
}

Run the code above in your browser using DataLab