amazonka-mediatailor-2.0: Amazon MediaTailor SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MediaTailor.CreateChannel

Description

Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.

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 the LINEAR PlaybackMode. MediaTailor doesn't support filler slate for channels using the LOOP PlaybackMode.

  • tags :: Maybe (HashMap Text Text)

    The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.

  • tier :: Maybe Tier

    The tier of the channel.

  • channelName :: Text

    The name of the channel.

  • 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
ToJSON CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.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

AWSRequest CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Associated Types

type AWSResponse CreateChannel #

Generic CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Associated Types

type Rep CreateChannel :: Type -> Type #

Read CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Show CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

NFData CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Methods

rnf :: CreateChannel -> () #

Eq CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Hashable CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

type AWSResponse CreateChannel Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

type Rep 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:

CreateChannel, createChannel_fillerSlate - The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses the LINEAR PlaybackMode. MediaTailor doesn't support filler slate for channels using the LOOP PlaybackMode.

CreateChannel, createChannel_tags - The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.

CreateChannel, createChannel_tier - The tier of the channel.

CreateChannel, createChannel_channelName - The name of the channel.

CreateChannel, createChannel_outputs - The channel's output properties.

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 the LINEAR PlaybackMode. MediaTailor doesn't support filler slate for channels using the LOOP PlaybackMode.

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

The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.

createChannel_tier :: Lens' CreateChannel (Maybe Tier) Source #

The tier of the channel.

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
Generic CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Associated Types

type Rep CreateChannelResponse :: Type -> Type #

Read CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Show CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

NFData CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

Methods

rnf :: CreateChannelResponse -> () #

Eq CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

type Rep CreateChannelResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.CreateChannel

type Rep CreateChannelResponse = D1 ('MetaData "CreateChannelResponse" "Amazonka.MediaTailor.CreateChannel" "amazonka-mediatailor-2.0-6mxt6n51Pv3JbuBr2GKiO4" 'False) (C1 ('MetaCons "CreateChannelResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "channelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "channelState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChannelState)) :*: (S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "fillerSlate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SlateSource))))) :*: ((S1 ('MetaSel ('Just "lastModifiedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "outputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ResponseOutputItem])) :*: S1 ('MetaSel ('Just "playbackMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "tier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

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_arn - The Amazon Resource Name (ARN) to assign to the channel.

CreateChannel, createChannelResponse_channelName - The name to assign to the channel.

CreateChannelResponse, createChannelResponse_channelState - Indicates whether the channel is in a running state or not.

CreateChannelResponse, createChannelResponse_creationTime - The timestamp of when the channel was created.

CreateChannel, createChannelResponse_fillerSlate - Contains information about the slate used to fill gaps between programs in the schedule.

CreateChannelResponse, createChannelResponse_lastModifiedTime - The timestamp of when the channel was last modified.

CreateChannel, createChannelResponse_outputs - The output properties to assign to the channel.

CreateChannel, createChannelResponse_playbackMode - The playback mode to assign to the channel.

CreateChannel, createChannelResponse_tags - The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.

CreateChannel, createChannelResponse_tier - The tier of the channel.

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

Response Lenses

createChannelResponse_arn :: Lens' CreateChannelResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) to assign to the channel.

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

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

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

The timestamp of when the channel was created.

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

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

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

The timestamp of when the channel was last modified.

createChannelResponse_outputs :: Lens' CreateChannelResponse (Maybe [ResponseOutputItem]) Source #

The output properties to assign to the channel.

createChannelResponse_playbackMode :: Lens' CreateChannelResponse (Maybe Text) Source #

The playback mode to assign to the channel.

createChannelResponse_tags :: Lens' CreateChannelResponse (Maybe (HashMap Text Text)) Source #

The tags to assign to the channel. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources.