CmdID

CmdID / aws / aws ivs

aws ivs batch-start-viewer-session-revocation

Performs StartViewerSessionRevocation on multiple channel ARN and viewer ID pairs simultaneously. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To revoke viewer sessions for multiple channel-ARN and viewer-ID pairs

The following batch-start-viewer-session-revocation example performs session revocation on multiple channel-ARN and viewer-ID pairs simultaneously. The request may complete normally but return values in the errors field if the caller does not have permission to revoke specified session.

aws ivs batch-start-viewer-session-revocation --viewer-sessions '[{"channelArn":"arn:aws:ivs:us-west-2:123456789012:channel/abcdABCDefgh1","viewerId":"abcdefg1","viewerSessionVersionsLessThanOrEqualTo":1234567890},Identify
--viewer-sessionsArray of viewer sessions, one per channel-ARN and viewer-ID pair.
{"channelArn":"arn:aws:ivs:us-west-2:123456789012:channel/abcdABCDefgh2","viewerId":"abcdefg2","viewerSessionVersionsLessThanOrEqualTo":1234567890}]'
Its output
{
    "errors": [
        {
            "channelArn": "arn:aws:ivs:us-west-2:123456789012:channel/abcdABCDefgh1",
            "viewerId": "abcdefg1",
            "code": "403",
            "message": "not authorized"
        },
        {
            "channelArn": "arn:aws:ivs:us-west-2:123456789012:channel/abcdABCDefgh2",
            "viewerId": "abcdefg2",
            "code": "403",
            "message": "not authorized"
        }
    ]
}

For more information, see Setting Up Private Channels in the Amazon Interactive Video Service User Guide.

Options

1 in the AWS CLI reference
--viewer-sessionsArray of viewer sessions, one per channel-ARN and viewer-ID pair.