| 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 |
Amazonka.MediaTailor.CreateProgram
Description
Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.
Synopsis
- data CreateProgram = CreateProgram' {}
- newCreateProgram :: Text -> Text -> ScheduleConfiguration -> Text -> CreateProgram
- createProgram_adBreaks :: Lens' CreateProgram (Maybe [AdBreak])
- createProgram_liveSourceName :: Lens' CreateProgram (Maybe Text)
- createProgram_vodSourceName :: Lens' CreateProgram (Maybe Text)
- createProgram_channelName :: Lens' CreateProgram Text
- createProgram_programName :: Lens' CreateProgram Text
- createProgram_scheduleConfiguration :: Lens' CreateProgram ScheduleConfiguration
- createProgram_sourceLocationName :: Lens' CreateProgram Text
- data CreateProgramResponse = CreateProgramResponse' {}
- newCreateProgramResponse :: Int -> CreateProgramResponse
- createProgramResponse_adBreaks :: Lens' CreateProgramResponse (Maybe [AdBreak])
- createProgramResponse_arn :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_channelName :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_creationTime :: Lens' CreateProgramResponse (Maybe UTCTime)
- createProgramResponse_liveSourceName :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_programName :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_scheduledStartTime :: Lens' CreateProgramResponse (Maybe UTCTime)
- createProgramResponse_sourceLocationName :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_vodSourceName :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_httpStatus :: Lens' CreateProgramResponse Int
Creating a Request
data CreateProgram Source #
See: newCreateProgram smart constructor.
Constructors
| CreateProgram' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> ScheduleConfiguration | |
| -> Text | |
| -> CreateProgram |
Create a value of CreateProgram 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:
CreateProgram, createProgram_adBreaks - The ad break configuration settings.
CreateProgram, createProgram_liveSourceName - The name of the LiveSource for this Program.
CreateProgram, createProgram_vodSourceName - The name that's used to refer to a VOD source.
CreateProgram, createProgram_channelName - The name of the channel for this Program.
CreateProgram, createProgram_programName - The name of the Program.
$sel:scheduleConfiguration:CreateProgram', createProgram_scheduleConfiguration - The schedule configuration settings.
CreateProgram, createProgram_sourceLocationName - The name of the source location.
Request Lenses
createProgram_adBreaks :: Lens' CreateProgram (Maybe [AdBreak]) Source #
The ad break configuration settings.
createProgram_liveSourceName :: Lens' CreateProgram (Maybe Text) Source #
The name of the LiveSource for this Program.
createProgram_vodSourceName :: Lens' CreateProgram (Maybe Text) Source #
The name that's used to refer to a VOD source.
createProgram_channelName :: Lens' CreateProgram Text Source #
The name of the channel for this Program.
createProgram_programName :: Lens' CreateProgram Text Source #
The name of the Program.
createProgram_scheduleConfiguration :: Lens' CreateProgram ScheduleConfiguration Source #
The schedule configuration settings.
createProgram_sourceLocationName :: Lens' CreateProgram Text Source #
The name of the source location.
Destructuring the Response
data CreateProgramResponse Source #
See: newCreateProgramResponse smart constructor.
Constructors
| CreateProgramResponse' | |
Fields
| |
Instances
newCreateProgramResponse Source #
Create a value of CreateProgramResponse 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:
CreateProgram, createProgramResponse_adBreaks - The ad break configuration settings.
CreateProgramResponse, createProgramResponse_arn - The ARN to assign to the program.
CreateProgram, createProgramResponse_channelName - The name to assign to the channel for this program.
CreateProgramResponse, createProgramResponse_creationTime - The time the program was created.
CreateProgram, createProgramResponse_liveSourceName - The name of the LiveSource for this Program.
CreateProgram, createProgramResponse_programName - The name to assign to this program.
$sel:scheduledStartTime:CreateProgramResponse', createProgramResponse_scheduledStartTime - The scheduled start time for this Program.
CreateProgram, createProgramResponse_sourceLocationName - The name to assign to the source location for this program.
CreateProgram, createProgramResponse_vodSourceName - The name that's used to refer to a VOD source.
$sel:httpStatus:CreateProgramResponse', createProgramResponse_httpStatus - The response's http status code.
Response Lenses
createProgramResponse_adBreaks :: Lens' CreateProgramResponse (Maybe [AdBreak]) Source #
The ad break configuration settings.
createProgramResponse_arn :: Lens' CreateProgramResponse (Maybe Text) Source #
The ARN to assign to the program.
createProgramResponse_channelName :: Lens' CreateProgramResponse (Maybe Text) Source #
The name to assign to the channel for this program.
createProgramResponse_creationTime :: Lens' CreateProgramResponse (Maybe UTCTime) Source #
The time the program was created.
createProgramResponse_liveSourceName :: Lens' CreateProgramResponse (Maybe Text) Source #
The name of the LiveSource for this Program.
createProgramResponse_programName :: Lens' CreateProgramResponse (Maybe Text) Source #
The name to assign to this program.
createProgramResponse_scheduledStartTime :: Lens' CreateProgramResponse (Maybe UTCTime) Source #
The scheduled start time for this Program.
createProgramResponse_sourceLocationName :: Lens' CreateProgramResponse (Maybe Text) Source #
The name to assign to the source location for this program.
createProgramResponse_vodSourceName :: Lens' CreateProgramResponse (Maybe Text) Source #
The name that's used to refer to a VOD source.
createProgramResponse_httpStatus :: Lens' CreateProgramResponse Int Source #
The response's http status code.