Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a new channel and an associated stream key to start streaming.
Synopsis
- data CreateChannel = CreateChannel' {}
- newCreateChannel :: CreateChannel
- createChannel_authorized :: Lens' CreateChannel (Maybe Bool)
- createChannel_latencyMode :: Lens' CreateChannel (Maybe ChannelLatencyMode)
- createChannel_name :: Lens' CreateChannel (Maybe Text)
- createChannel_recordingConfigurationArn :: Lens' CreateChannel (Maybe Text)
- createChannel_tags :: Lens' CreateChannel (Maybe (HashMap Text Text))
- createChannel_type :: Lens' CreateChannel (Maybe ChannelType)
- data CreateChannelResponse = CreateChannelResponse' {}
- newCreateChannelResponse :: Int -> CreateChannelResponse
- createChannelResponse_channel :: Lens' CreateChannelResponse (Maybe Channel)
- createChannelResponse_streamKey :: Lens' CreateChannelResponse (Maybe StreamKey)
- createChannelResponse_httpStatus :: Lens' CreateChannelResponse Int
Creating a Request
data CreateChannel Source #
See: newCreateChannel
smart constructor.
CreateChannel' | |
|
Instances
newCreateChannel :: CreateChannel Source #
Create a value of CreateChannel
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateChannel
, createChannel_authorized
- Whether the channel is private (enabled for playback authorization).
Default: false
.
CreateChannel
, createChannel_latencyMode
- Channel latency mode. Use NORMAL
to broadcast and deliver live video
up to Full HD. Use LOW
for near-real-time interaction with viewers.
(Note: In the Amazon IVS console, LOW
and NORMAL
correspond to
Ultra-low and Standard, respectively.) Default: LOW
.
CreateChannel
, createChannel_name
- Channel name.
CreateChannel
, createChannel_recordingConfigurationArn
- Recording-configuration ARN. Default: "" (empty string, recording is
disabled).
CreateChannel
, createChannel_tags
- Array of 1-50 maps, each of the form string:string (key:value)
. See
Tagging Amazon Web Services Resources
for more information, including restrictions that apply to tags and
"Tag naming limits and requirements"; Amazon IVS has no
service-specific constraints beyond what is documented there.
CreateChannel
, createChannel_type
- Channel type, which determines the allowable resolution and bitrate. /If
you exceed the allowable resolution or bitrate, the stream probably will
disconnect immediately./ Default: STANDARD
. Valid values:
STANDARD
: Video is transcoded: multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Transcoding allows higher playback quality across a range of download speeds. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through. This is the default.BASIC
: Video is transmuxed: Amazon IVS delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 1080p and bitrate can be up to 1.5 Mbps for 480p and up to 3.5 Mbps for resolutions between 480p and 1080p.
Request Lenses
createChannel_authorized :: Lens' CreateChannel (Maybe Bool) Source #
Whether the channel is private (enabled for playback authorization).
Default: false
.
createChannel_latencyMode :: Lens' CreateChannel (Maybe ChannelLatencyMode) Source #
Channel latency mode. Use NORMAL
to broadcast and deliver live video
up to Full HD. Use LOW
for near-real-time interaction with viewers.
(Note: In the Amazon IVS console, LOW
and NORMAL
correspond to
Ultra-low and Standard, respectively.) Default: LOW
.
createChannel_name :: Lens' CreateChannel (Maybe Text) Source #
Channel name.
createChannel_recordingConfigurationArn :: Lens' CreateChannel (Maybe Text) Source #
Recording-configuration ARN. Default: "" (empty string, recording is disabled).
createChannel_tags :: Lens' CreateChannel (Maybe (HashMap Text Text)) Source #
Array of 1-50 maps, each of the form string:string (key:value)
. See
Tagging Amazon Web Services Resources
for more information, including restrictions that apply to tags and
"Tag naming limits and requirements"; Amazon IVS has no
service-specific constraints beyond what is documented there.
createChannel_type :: Lens' CreateChannel (Maybe ChannelType) Source #
Channel type, which determines the allowable resolution and bitrate. /If
you exceed the allowable resolution or bitrate, the stream probably will
disconnect immediately./ Default: STANDARD
. Valid values:
STANDARD
: Video is transcoded: multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Transcoding allows higher playback quality across a range of download speeds. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through. This is the default.BASIC
: Video is transmuxed: Amazon IVS delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 1080p and bitrate can be up to 1.5 Mbps for 480p and up to 3.5 Mbps for resolutions between 480p and 1080p.
Destructuring the Response
data CreateChannelResponse Source #
See: newCreateChannelResponse
smart constructor.
Instances
newCreateChannelResponse Source #
Create a value of CreateChannelResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateChannelResponse
, createChannelResponse_channel
-
$sel:streamKey:CreateChannelResponse'
, createChannelResponse_streamKey
-
$sel:httpStatus:CreateChannelResponse'
, createChannelResponse_httpStatus
- The response's http status code.
Response Lenses
createChannelResponse_httpStatus :: Lens' CreateChannelResponse Int Source #
The response's http status code.