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 |
Lists the trials in your account. Specify an experiment name to limit the list to the trials that are part of that experiment. Specify a trial component name to limit the list to the trials that associated with that trial component. The list can be filtered to show only trials that were created in a specific time range. The list can be sorted by trial name or creation time.
This operation returns paginated results.
Synopsis
- data ListTrials = ListTrials' {}
- newListTrials :: ListTrials
- listTrials_createdAfter :: Lens' ListTrials (Maybe UTCTime)
- listTrials_experimentName :: Lens' ListTrials (Maybe Text)
- listTrials_nextToken :: Lens' ListTrials (Maybe Text)
- listTrials_sortOrder :: Lens' ListTrials (Maybe SortOrder)
- listTrials_trialComponentName :: Lens' ListTrials (Maybe Text)
- listTrials_maxResults :: Lens' ListTrials (Maybe Natural)
- listTrials_createdBefore :: Lens' ListTrials (Maybe UTCTime)
- listTrials_sortBy :: Lens' ListTrials (Maybe SortTrialsBy)
- data ListTrialsResponse = ListTrialsResponse' {
- nextToken :: Maybe Text
- trialSummaries :: Maybe [TrialSummary]
- httpStatus :: Int
- newListTrialsResponse :: Int -> ListTrialsResponse
- listTrialsResponse_nextToken :: Lens' ListTrialsResponse (Maybe Text)
- listTrialsResponse_trialSummaries :: Lens' ListTrialsResponse (Maybe [TrialSummary])
- listTrialsResponse_httpStatus :: Lens' ListTrialsResponse Int
Creating a Request
data ListTrials Source #
See: newListTrials
smart constructor.
ListTrials' | |
|
Instances
newListTrials :: ListTrials Source #
Create a value of ListTrials
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:createdAfter:ListTrials'
, listTrials_createdAfter
- A filter that returns only trials created after the specified time.
$sel:experimentName:ListTrials'
, listTrials_experimentName
- A filter that returns only trials that are part of the specified
experiment.
$sel:nextToken:ListTrials'
, listTrials_nextToken
- If the previous call to ListTrials
didn't return the full set of
trials, the call returns a token for getting the next set of trials.
$sel:sortOrder:ListTrials'
, listTrials_sortOrder
- The sort order. The default value is Descending
.
$sel:trialComponentName:ListTrials'
, listTrials_trialComponentName
- A filter that returns only trials that are associated with the specified
trial component.
$sel:maxResults:ListTrials'
, listTrials_maxResults
- The maximum number of trials to return in the response. The default
value is 10.
$sel:createdBefore:ListTrials'
, listTrials_createdBefore
- A filter that returns only trials created before the specified time.
$sel:sortBy:ListTrials'
, listTrials_sortBy
- The property used to sort results. The default value is CreationTime
.
Request Lenses
listTrials_createdAfter :: Lens' ListTrials (Maybe UTCTime) Source #
A filter that returns only trials created after the specified time.
listTrials_experimentName :: Lens' ListTrials (Maybe Text) Source #
A filter that returns only trials that are part of the specified experiment.
listTrials_nextToken :: Lens' ListTrials (Maybe Text) Source #
If the previous call to ListTrials
didn't return the full set of
trials, the call returns a token for getting the next set of trials.
listTrials_sortOrder :: Lens' ListTrials (Maybe SortOrder) Source #
The sort order. The default value is Descending
.
listTrials_trialComponentName :: Lens' ListTrials (Maybe Text) Source #
A filter that returns only trials that are associated with the specified trial component.
listTrials_maxResults :: Lens' ListTrials (Maybe Natural) Source #
The maximum number of trials to return in the response. The default value is 10.
listTrials_createdBefore :: Lens' ListTrials (Maybe UTCTime) Source #
A filter that returns only trials created before the specified time.
listTrials_sortBy :: Lens' ListTrials (Maybe SortTrialsBy) Source #
The property used to sort results. The default value is CreationTime
.
Destructuring the Response
data ListTrialsResponse Source #
See: newListTrialsResponse
smart constructor.
ListTrialsResponse' | |
|
Instances
newListTrialsResponse Source #
Create a value of ListTrialsResponse
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:nextToken:ListTrials'
, listTrialsResponse_nextToken
- A token for getting the next set of trials, if there are any.
$sel:trialSummaries:ListTrialsResponse'
, listTrialsResponse_trialSummaries
- A list of the summaries of your trials.
$sel:httpStatus:ListTrialsResponse'
, listTrialsResponse_httpStatus
- The response's http status code.
Response Lenses
listTrialsResponse_nextToken :: Lens' ListTrialsResponse (Maybe Text) Source #
A token for getting the next set of trials, if there are any.
listTrialsResponse_trialSummaries :: Lens' ListTrialsResponse (Maybe [TrialSummary]) Source #
A list of the summaries of your trials.
listTrialsResponse_httpStatus :: Lens' ListTrialsResponse Int Source #
The response's http status code.