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 |
Creates a new HarvestJob record.
Synopsis
- data CreateHarvestJob = CreateHarvestJob' {
- s3Destination :: S3Destination
- endTime :: Text
- originEndpointId :: Text
- startTime :: Text
- id :: Text
- newCreateHarvestJob :: S3Destination -> Text -> Text -> Text -> Text -> CreateHarvestJob
- createHarvestJob_s3Destination :: Lens' CreateHarvestJob S3Destination
- createHarvestJob_endTime :: Lens' CreateHarvestJob Text
- createHarvestJob_originEndpointId :: Lens' CreateHarvestJob Text
- createHarvestJob_startTime :: Lens' CreateHarvestJob Text
- createHarvestJob_id :: Lens' CreateHarvestJob Text
- data CreateHarvestJobResponse = CreateHarvestJobResponse' {}
- newCreateHarvestJobResponse :: Int -> CreateHarvestJobResponse
- createHarvestJobResponse_status :: Lens' CreateHarvestJobResponse (Maybe Status)
- createHarvestJobResponse_originEndpointId :: Lens' CreateHarvestJobResponse (Maybe Text)
- createHarvestJobResponse_startTime :: Lens' CreateHarvestJobResponse (Maybe Text)
- createHarvestJobResponse_arn :: Lens' CreateHarvestJobResponse (Maybe Text)
- createHarvestJobResponse_createdAt :: Lens' CreateHarvestJobResponse (Maybe Text)
- createHarvestJobResponse_channelId :: Lens' CreateHarvestJobResponse (Maybe Text)
- createHarvestJobResponse_s3Destination :: Lens' CreateHarvestJobResponse (Maybe S3Destination)
- createHarvestJobResponse_endTime :: Lens' CreateHarvestJobResponse (Maybe Text)
- createHarvestJobResponse_id :: Lens' CreateHarvestJobResponse (Maybe Text)
- createHarvestJobResponse_httpStatus :: Lens' CreateHarvestJobResponse Int
Creating a Request
data CreateHarvestJob Source #
Configuration parameters used to create a new HarvestJob.
See: newCreateHarvestJob
smart constructor.
CreateHarvestJob' | |
|
Instances
:: S3Destination | |
-> Text | |
-> Text | |
-> Text | |
-> Text | |
-> CreateHarvestJob |
Create a value of CreateHarvestJob
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:s3Destination:CreateHarvestJob'
, createHarvestJob_s3Destination
- Undocumented member.
$sel:endTime:CreateHarvestJob'
, createHarvestJob_endTime
- The end of the time-window which will be harvested
$sel:originEndpointId:CreateHarvestJob'
, createHarvestJob_originEndpointId
- The ID of the OriginEndpoint that the HarvestJob will harvest from. This
cannot be changed after the HarvestJob is submitted.
$sel:startTime:CreateHarvestJob'
, createHarvestJob_startTime
- The start of the time-window which will be harvested
$sel:id:CreateHarvestJob'
, createHarvestJob_id
- The ID of the HarvestJob. The ID must be unique within the region and it
cannot be changed after the HarvestJob is submitted
Request Lenses
createHarvestJob_s3Destination :: Lens' CreateHarvestJob S3Destination Source #
Undocumented member.
createHarvestJob_endTime :: Lens' CreateHarvestJob Text Source #
The end of the time-window which will be harvested
createHarvestJob_originEndpointId :: Lens' CreateHarvestJob Text Source #
The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted.
createHarvestJob_startTime :: Lens' CreateHarvestJob Text Source #
The start of the time-window which will be harvested
createHarvestJob_id :: Lens' CreateHarvestJob Text Source #
The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted
Destructuring the Response
data CreateHarvestJobResponse Source #
See: newCreateHarvestJobResponse
smart constructor.
CreateHarvestJobResponse' | |
|
Instances
newCreateHarvestJobResponse Source #
Create a value of CreateHarvestJobResponse
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:status:CreateHarvestJobResponse'
, createHarvestJobResponse_status
- The current status of the HarvestJob. Consider setting up a CloudWatch
Event to listen for HarvestJobs as they succeed or fail. In the event of
failure, the CloudWatch Event will include an explanation of why the
HarvestJob failed.
$sel:originEndpointId:CreateHarvestJob'
, createHarvestJobResponse_originEndpointId
- The ID of the OriginEndpoint that the HarvestJob will harvest from. This
cannot be changed after the HarvestJob is submitted.
$sel:startTime:CreateHarvestJob'
, createHarvestJobResponse_startTime
- The start of the time-window which will be harvested.
$sel:arn:CreateHarvestJobResponse'
, createHarvestJobResponse_arn
- The Amazon Resource Name (ARN) assigned to the HarvestJob.
$sel:createdAt:CreateHarvestJobResponse'
, createHarvestJobResponse_createdAt
- The time the HarvestJob was submitted
$sel:channelId:CreateHarvestJobResponse'
, createHarvestJobResponse_channelId
- The ID of the Channel that the HarvestJob will harvest from.
$sel:s3Destination:CreateHarvestJob'
, createHarvestJobResponse_s3Destination
- Undocumented member.
$sel:endTime:CreateHarvestJob'
, createHarvestJobResponse_endTime
- The end of the time-window which will be harvested.
$sel:id:CreateHarvestJob'
, createHarvestJobResponse_id
- The ID of the HarvestJob. The ID must be unique within the region and it
cannot be changed after the HarvestJob is submitted.
$sel:httpStatus:CreateHarvestJobResponse'
, createHarvestJobResponse_httpStatus
- The response's http status code.
Response Lenses
createHarvestJobResponse_status :: Lens' CreateHarvestJobResponse (Maybe Status) Source #
The current status of the HarvestJob. Consider setting up a CloudWatch Event to listen for HarvestJobs as they succeed or fail. In the event of failure, the CloudWatch Event will include an explanation of why the HarvestJob failed.
createHarvestJobResponse_originEndpointId :: Lens' CreateHarvestJobResponse (Maybe Text) Source #
The ID of the OriginEndpoint that the HarvestJob will harvest from. This cannot be changed after the HarvestJob is submitted.
createHarvestJobResponse_startTime :: Lens' CreateHarvestJobResponse (Maybe Text) Source #
The start of the time-window which will be harvested.
createHarvestJobResponse_arn :: Lens' CreateHarvestJobResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) assigned to the HarvestJob.
createHarvestJobResponse_createdAt :: Lens' CreateHarvestJobResponse (Maybe Text) Source #
The time the HarvestJob was submitted
createHarvestJobResponse_channelId :: Lens' CreateHarvestJobResponse (Maybe Text) Source #
The ID of the Channel that the HarvestJob will harvest from.
createHarvestJobResponse_s3Destination :: Lens' CreateHarvestJobResponse (Maybe S3Destination) Source #
Undocumented member.
createHarvestJobResponse_endTime :: Lens' CreateHarvestJobResponse (Maybe Text) Source #
The end of the time-window which will be harvested.
createHarvestJobResponse_id :: Lens' CreateHarvestJobResponse (Maybe Text) Source #
The ID of the HarvestJob. The ID must be unique within the region and it cannot be changed after the HarvestJob is submitted.
createHarvestJobResponse_httpStatus :: Lens' CreateHarvestJobResponse Int Source #
The response's http status code.