Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Queries the specified pipeline for the names of objects that match the specified set of conditions.
This operation returns paginated results.
- queryObjects :: Text -> Text -> QueryObjects
- data QueryObjects
- qoQuery :: Lens' QueryObjects (Maybe Query)
- qoMarker :: Lens' QueryObjects (Maybe Text)
- qoLimit :: Lens' QueryObjects (Maybe Int)
- qoPipelineId :: Lens' QueryObjects Text
- qoSphere :: Lens' QueryObjects Text
- queryObjectsResponse :: Int -> QueryObjectsResponse
- data QueryObjectsResponse
- qorsHasMoreResults :: Lens' QueryObjectsResponse (Maybe Bool)
- qorsIds :: Lens' QueryObjectsResponse [Text]
- qorsMarker :: Lens' QueryObjectsResponse (Maybe Text)
- qorsResponseStatus :: Lens' QueryObjectsResponse Int
Creating a Request
Creates a value of QueryObjects
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
qoQuery
- The query that defines the objects to be returned. TheQuery
object can contain a maximum of ten selectors. The conditions in the query are limited to top-level String fields in the object. These filters can be applied to components, instances, and attempts.qoMarker
- The starting point for the results to be returned. For the first call, this value should be empty. As long as there are more results, continue to callQueryObjects
with the marker value from the previous call to retrieve the next set of results.qoLimit
- The maximum number of object names thatQueryObjects
will return in a single call. The default value is 100.qoPipelineId
- The ID of the pipeline.qoSphere
- Indicates whether the query applies to components or instances. The possible values are:COMPONENT
,INSTANCE
, andATTEMPT
.
data QueryObjects Source #
Contains the parameters for QueryObjects.
See: queryObjects
smart constructor.
Request Lenses
qoQuery :: Lens' QueryObjects (Maybe Query) Source #
The query that defines the objects to be returned. The Query
object can contain a maximum of ten selectors. The conditions in the query are limited to top-level String fields in the object. These filters can be applied to components, instances, and attempts.
qoMarker :: Lens' QueryObjects (Maybe Text) Source #
The starting point for the results to be returned. For the first call, this value should be empty. As long as there are more results, continue to call QueryObjects
with the marker value from the previous call to retrieve the next set of results.
qoLimit :: Lens' QueryObjects (Maybe Int) Source #
The maximum number of object names that QueryObjects
will return in a single call. The default value is 100.
qoPipelineId :: Lens' QueryObjects Text Source #
The ID of the pipeline.
qoSphere :: Lens' QueryObjects Text Source #
Indicates whether the query applies to components or instances. The possible values are: COMPONENT
, INSTANCE
, and ATTEMPT
.
Destructuring the Response
Creates a value of QueryObjectsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
qorsHasMoreResults
- Indicates whether there are more results that can be obtained by a subsequent call.qorsIds
- The identifiers that match the query selectors.qorsMarker
- The starting point for the next page of results. To view the next page of results, callQueryObjects
again with this marker value. If the value is null, there are no more results.qorsResponseStatus
- -- | The response status code.
data QueryObjectsResponse Source #
Contains the output of QueryObjects.
See: queryObjectsResponse
smart constructor.
Response Lenses
qorsHasMoreResults :: Lens' QueryObjectsResponse (Maybe Bool) Source #
Indicates whether there are more results that can be obtained by a subsequent call.
qorsIds :: Lens' QueryObjectsResponse [Text] Source #
The identifiers that match the query selectors.
qorsMarker :: Lens' QueryObjectsResponse (Maybe Text) Source #
The starting point for the next page of results. To view the next page of results, call QueryObjects
again with this marker value. If the value is null, there are no more results.
qorsResponseStatus :: Lens' QueryObjectsResponse Int Source #
- - | The response status code.