IVS-REALTIME

CreateEncoderConfiguration

valid {
    input.Body.name == STRING
    input.Body.tags.STRING == STRING
    input.Body.video.bitrate == INTEGER
    input.Body.video.framerate == FLOAT
    input.Body.video.height == INTEGER
    input.Body.video.width == INTEGER
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateParticipantToken

enum_ParticipantTokenCapability := [ "PUBLISH", "SUBSCRIBE" ]

valid {
    input.Body.attributes.STRING == STRING
    input.Body.capabilities[_] == enum_ParticipantTokenCapability[_]
    input.Body.duration == INTEGER
    input.Body.stageArn == STRING
    input.Body.userId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateStage

enum_ParticipantTokenCapability := [ "PUBLISH", "SUBSCRIBE" ]

valid {
    input.Body.name == STRING
    input.Body.participantTokenConfigurations[_].attributes.STRING == STRING
    input.Body.participantTokenConfigurations[_].capabilities[_] == enum_ParticipantTokenCapability[_]
    input.Body.participantTokenConfigurations[_].duration == INTEGER
    input.Body.participantTokenConfigurations[_].userId == STRING
    input.Body.tags.STRING == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

CreateStorageConfiguration

valid {
    input.Body.name == STRING
    input.Body.s3.bucketName == STRING
    input.Body.tags.STRING == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteEncoderConfiguration

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteStage

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteStorageConfiguration

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DisconnectParticipant

valid {
    input.Body.participantId == STRING
    input.Body.reason == STRING
    input.Body.stageArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetComposition

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetEncoderConfiguration

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetParticipant

valid {
    input.Body.participantId == STRING
    input.Body.sessionId == STRING
    input.Body.stageArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetStage

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetStageSession

valid {
    input.Body.sessionId == STRING
    input.Body.stageArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetStorageConfiguration

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListCompositions

valid {
    input.Body.filterByEncoderConfigurationArn == STRING
    input.Body.filterByStageArn == STRING
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListEncoderConfigurations

valid {
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListParticipantEvents

valid {
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.Body.participantId == STRING
    input.Body.sessionId == STRING
    input.Body.stageArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListParticipants

enum_ParticipantState := [ "CONNECTED", "DISCONNECTED" ]

valid {
    input.Body.filterByPublished == BOOLEAN
    input.Body.filterByState == enum_ParticipantState[_]
    input.Body.filterByUserId == STRING
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.Body.sessionId == STRING
    input.Body.stageArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListStageSessions

valid {
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.Body.stageArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListStages

valid {
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListStorageConfigurations

valid {
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListTagsForResource

valid {
    input.ReqMap.resourceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartComposition

enum_RecordingConfigurationFormat := [ "HLS" ]

valid {
    input.Body.destinations[_].channel.channelArn == STRING
    input.Body.destinations[_].channel.encoderConfigurationArn == STRING
    input.Body.destinations[_].name == STRING
    input.Body.destinations[_].s3.encoderConfigurationArns[_] == STRING
    input.Body.destinations[_].s3.recordingConfiguration.format == enum_RecordingConfigurationFormat[_]
    input.Body.destinations[_].s3.storageConfigurationArn == STRING
    input.Body.idempotencyToken == STRING
    input.Body.layout.grid.featuredParticipantAttribute == STRING
    input.Body.stageArn == STRING
    input.Body.tags.STRING == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StopComposition

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

TagResource

valid {
    input.Body.tags.STRING == STRING
    input.ReqMap.resourceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UntagResource

valid {
    input.ReqMap.resourceArn == STRING
    input.Qs.tagKeys[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateStage

valid {
    input.Body.arn == STRING
    input.Body.name == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}