libZSservicesZSamazonka-mediatailorZSamazonka-mediatailor
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MediaTailor.CreateChannel

Description

Creates a channel.

Synopsis

Creating a Request

data CreateChannel Source #

See: newCreateChannel smart constructor.

Constructors

CreateChannel' 

Fields

  • fillerSlate :: Maybe SlateSource

    The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses a LINEAR PlaybackMode.

  • tags :: Maybe (HashMap Text Text)

    The tags to assign to the channel.

  • channelName :: Text

    The identifier for the channel you are working on.

  • outputs :: [RequestOutputItem]

    The channel's output properties.

  • playbackMode :: PlaybackMode

    The type of playback mode to use for this channel.

    LINEAR - The programs in the schedule play once back-to-back in the schedule.

    LOOP - The programs in the schedule play back-to-back in an endless loop. When the last program in the schedule stops playing, playback loops back to the first program in the schedule.

Instances

Instances details
Eq CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Read CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Show CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Generic CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Associated Types

type Rep CreateChannel :: Type -> Type #

NFData CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Methods

rnf :: CreateChannel -> () #

Hashable CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

ToJSON CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

AWSRequest CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Associated Types

type AWSResponse CreateChannel #

ToHeaders CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

ToPath CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

ToQuery CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

type Rep CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

type Rep CreateChannel = D1 ('MetaData "CreateChannel" "Amazonka.MediaTailor.CreateChannel" "libZSservicesZSamazonka-mediatailorZSamazonka-mediatailor" 'False) (C1 ('MetaCons "CreateChannel'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fillerSlate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SlateSource)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "channelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "outputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [RequestOutputItem]) :*: S1 ('MetaSel ('Just "playbackMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PlaybackMode)))))
type AWSResponse CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

newCreateChannel 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:

$sel:fillerSlate:CreateChannel', createChannel_fillerSlate - The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses a LINEAR PlaybackMode.

$sel:tags:CreateChannel', createChannel_tags - The tags to assign to the channel.

$sel:channelName:CreateChannel', createChannel_channelName - The identifier for the channel you are working on.

$sel:outputs:CreateChannel', createChannel_outputs - The channel's output properties.

$sel:playbackMode:CreateChannel', createChannel_playbackMode - The type of playback mode to use for this channel.

LINEAR - The programs in the schedule play once back-to-back in the schedule.

LOOP - The programs in the schedule play back-to-back in an endless loop. When the last program in the schedule stops playing, playback loops back to the first program in the schedule.

Request Lenses

createChannel_fillerSlate :: Lens' CreateChannel (Maybe SlateSource) Source #

The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses a LINEAR PlaybackMode.

createChannel_tags :: Lens' CreateChannel (Maybe (HashMap Text Text)) Source #

The tags to assign to the channel.

createChannel_channelName :: Lens' CreateChannel Text Source #

The identifier for the channel you are working on.

createChannel_outputs :: Lens' CreateChannel [RequestOutputItem] Source #

The channel's output properties.

createChannel_playbackMode :: Lens' CreateChannel PlaybackMode Source #

The type of playback mode to use for this channel.

LINEAR - The programs in the schedule play once back-to-back in the schedule.

LOOP - The programs in the schedule play back-to-back in an endless loop. When the last program in the schedule stops playing, playback loops back to the first program in the schedule.

Destructuring the Response

data CreateChannelResponse Source #

See: newCreateChannelResponse smart constructor.

Constructors

CreateChannelResponse' 

Fields

Instances

Instances details
Eq CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Read CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Show CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Generic CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Associated Types

type Rep CreateChannelResponse :: Type -> Type #

NFData CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Methods

rnf :: CreateChannelResponse -> () #

type Rep CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

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:

$sel:creationTime:CreateChannelResponse', createChannelResponse_creationTime - The timestamp of when the channel was created.

$sel:arn:CreateChannelResponse', createChannelResponse_arn - The ARN of the channel.

$sel:lastModifiedTime:CreateChannelResponse', createChannelResponse_lastModifiedTime - The timestamp of when the channel was last modified.

$sel:playbackMode:CreateChannel', createChannelResponse_playbackMode - The channel's playback mode.

$sel:channelName:CreateChannel', createChannelResponse_channelName - The name of the channel.

$sel:outputs:CreateChannel', createChannelResponse_outputs - The channel's output properties.

$sel:channelState:CreateChannelResponse', createChannelResponse_channelState - Indicates whether the channel is in a running state or not.

$sel:fillerSlate:CreateChannel', createChannelResponse_fillerSlate - Contains information about the slate used to fill gaps between programs in the schedule.

$sel:tags:CreateChannel', createChannelResponse_tags - The tags assigned to the channel.

$sel:httpStatus:CreateChannelResponse', createChannelResponse_httpStatus - The response's http status code.

Response Lenses

createChannelResponse_creationTime :: Lens' CreateChannelResponse (Maybe UTCTime) Source #

The timestamp of when the channel was created.

createChannelResponse_lastModifiedTime :: Lens' CreateChannelResponse (Maybe UTCTime) Source #

The timestamp of when the channel was last modified.

createChannelResponse_channelState :: Lens' CreateChannelResponse (Maybe ChannelState) Source #

Indicates whether the channel is in a running state or not.

createChannelResponse_fillerSlate :: Lens' CreateChannelResponse (Maybe SlateSource) Source #

Contains information about the slate used to fill gaps between programs in the schedule.