| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.MediaTailor.CreateProgram
Description
Creates a program.
Synopsis
- data CreateProgram = CreateProgram' {}
- newCreateProgram :: Text -> Text -> Text -> ScheduleConfiguration -> Text -> CreateProgram
- createProgram_adBreaks :: Lens' CreateProgram (Maybe [AdBreak])
- createProgram_channelName :: Lens' CreateProgram Text
- createProgram_programName :: Lens' CreateProgram Text
- createProgram_vodSourceName :: Lens' CreateProgram Text
- createProgram_scheduleConfiguration :: Lens' CreateProgram ScheduleConfiguration
- createProgram_sourceLocationName :: Lens' CreateProgram Text
- data CreateProgramResponse = CreateProgramResponse' {
- creationTime :: Maybe POSIX
- sourceLocationName :: Maybe Text
- arn :: Maybe Text
- programName :: Maybe Text
- adBreaks :: Maybe [AdBreak]
- channelName :: Maybe Text
- scheduledStartTime :: Maybe POSIX
- vodSourceName :: Maybe Text
- httpStatus :: Int
- newCreateProgramResponse :: Int -> CreateProgramResponse
- createProgramResponse_creationTime :: Lens' CreateProgramResponse (Maybe UTCTime)
- createProgramResponse_sourceLocationName :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_arn :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_programName :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_adBreaks :: Lens' CreateProgramResponse (Maybe [AdBreak])
- createProgramResponse_channelName :: Lens' CreateProgramResponse (Maybe Text)
- createProgramResponse_scheduledStartTime :: Lens' CreateProgramResponse (Maybe UTCTime)
- 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 | |
| -> 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:
$sel:adBreaks:CreateProgram', createProgram_adBreaks - The ad break configuration settings.
$sel:channelName:CreateProgram', createProgram_channelName - The identifier for the channel you are working on.
$sel:programName:CreateProgram', createProgram_programName - The identifier for the program you are working on.
$sel:vodSourceName:CreateProgram', createProgram_vodSourceName - The name that's used to refer to a VOD source.
$sel:scheduleConfiguration:CreateProgram', createProgram_scheduleConfiguration - The schedule configuration settings.
$sel:sourceLocationName:CreateProgram', createProgram_sourceLocationName - The name of the source location.
Request Lenses
createProgram_adBreaks :: Lens' CreateProgram (Maybe [AdBreak]) Source #
The ad break configuration settings.
createProgram_channelName :: Lens' CreateProgram Text Source #
The identifier for the channel you are working on.
createProgram_programName :: Lens' CreateProgram Text Source #
The identifier for the program you are working on.
createProgram_vodSourceName :: Lens' CreateProgram Text Source #
The name that's used to refer to a VOD source.
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:
$sel:creationTime:CreateProgramResponse', createProgramResponse_creationTime - The timestamp of when the program was created.
$sel:sourceLocationName:CreateProgram', createProgramResponse_sourceLocationName - The source location name.
$sel:arn:CreateProgramResponse', createProgramResponse_arn - The ARN of the program.
$sel:programName:CreateProgram', createProgramResponse_programName - The name of the program.
$sel:adBreaks:CreateProgram', createProgramResponse_adBreaks - The ad break configuration settings.
$sel:channelName:CreateProgram', createProgramResponse_channelName - The name of the channel that the program belongs to.
$sel:scheduledStartTime:CreateProgramResponse', createProgramResponse_scheduledStartTime - The date and time that the program is scheduled to start in ISO 8601
format and Coordinated Universal Time (UTC). For example, the value
2021-03-27T17:48:16.751Z represents March 27, 2021 at 17:48:16.751 UTC.
$sel:vodSourceName: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_creationTime :: Lens' CreateProgramResponse (Maybe UTCTime) Source #
The timestamp of when the program was created.
createProgramResponse_sourceLocationName :: Lens' CreateProgramResponse (Maybe Text) Source #
The source location name.
createProgramResponse_arn :: Lens' CreateProgramResponse (Maybe Text) Source #
The ARN of the program.
createProgramResponse_programName :: Lens' CreateProgramResponse (Maybe Text) Source #
The name of the program.
createProgramResponse_adBreaks :: Lens' CreateProgramResponse (Maybe [AdBreak]) Source #
The ad break configuration settings.
createProgramResponse_channelName :: Lens' CreateProgramResponse (Maybe Text) Source #
The name of the channel that the program belongs to.
createProgramResponse_scheduledStartTime :: Lens' CreateProgramResponse (Maybe UTCTime) Source #
The date and time that the program is scheduled to start in ISO 8601 format and Coordinated Universal Time (UTC). For example, the value 2021-03-27T17:48:16.751Z represents March 27, 2021 at 17:48:16.751 UTC.
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.