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 |
Query a set of OpsItems. You must have permission in Identity and Access Management (IAM) to query a list of OpsItems. For more information, see Getting started with OpsCenter in the Amazon Web Services Systems Manager User Guide.
Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and remediate operational issues impacting the performance and health of their Amazon Web Services resources. For more information, see OpsCenter in the Amazon Web Services Systems Manager User Guide.
This operation returns paginated results.
Synopsis
- data DescribeOpsItems = DescribeOpsItems' {}
- newDescribeOpsItems :: DescribeOpsItems
- describeOpsItems_opsItemFilters :: Lens' DescribeOpsItems (Maybe [OpsItemFilter])
- describeOpsItems_nextToken :: Lens' DescribeOpsItems (Maybe Text)
- describeOpsItems_maxResults :: Lens' DescribeOpsItems (Maybe Natural)
- data DescribeOpsItemsResponse = DescribeOpsItemsResponse' {}
- newDescribeOpsItemsResponse :: Int -> DescribeOpsItemsResponse
- describeOpsItemsResponse_nextToken :: Lens' DescribeOpsItemsResponse (Maybe Text)
- describeOpsItemsResponse_opsItemSummaries :: Lens' DescribeOpsItemsResponse (Maybe [OpsItemSummary])
- describeOpsItemsResponse_httpStatus :: Lens' DescribeOpsItemsResponse Int
Creating a Request
data DescribeOpsItems Source #
See: newDescribeOpsItems
smart constructor.
DescribeOpsItems' | |
|
Instances
newDescribeOpsItems :: DescribeOpsItems Source #
Create a value of DescribeOpsItems
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:opsItemFilters:DescribeOpsItems'
, describeOpsItems_opsItemFilters
- One or more filters to limit the response.
Key: CreatedTime
Operations: GreaterThan, LessThan
Key: LastModifiedBy
Operations: Contains, Equals
Key: LastModifiedTime
Operations: GreaterThan, LessThan
Key: Priority
Operations: Equals
Key: Source
Operations: Contains, Equals
Key: Status
Operations: Equals
Key: Title*
Operations: Equals,Contains
Key: OperationalData**
Operations: Equals
Key: OperationalDataKey
Operations: Equals
Key: OperationalDataValue
Operations: Equals, Contains
Key: OpsItemId
Operations: Equals
Key: ResourceId
Operations: Contains
Key: AutomationId
Operations: Equals
- The Equals operator for Title matches the first 100 characters. If you specify more than 100 characters, they system returns an error that the filter value exceeds the length limit.
- *If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {"key":"key_name","value":"a_value"}
$sel:nextToken:DescribeOpsItems'
, describeOpsItems_nextToken
- A token to start the list. Use this token to get the next set of
results.
$sel:maxResults:DescribeOpsItems'
, describeOpsItems_maxResults
- The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
Request Lenses
describeOpsItems_opsItemFilters :: Lens' DescribeOpsItems (Maybe [OpsItemFilter]) Source #
One or more filters to limit the response.
Key: CreatedTime
Operations: GreaterThan, LessThan
Key: LastModifiedBy
Operations: Contains, Equals
Key: LastModifiedTime
Operations: GreaterThan, LessThan
Key: Priority
Operations: Equals
Key: Source
Operations: Contains, Equals
Key: Status
Operations: Equals
Key: Title*
Operations: Equals,Contains
Key: OperationalData**
Operations: Equals
Key: OperationalDataKey
Operations: Equals
Key: OperationalDataValue
Operations: Equals, Contains
Key: OpsItemId
Operations: Equals
Key: ResourceId
Operations: Contains
Key: AutomationId
Operations: Equals
- The Equals operator for Title matches the first 100 characters. If you specify more than 100 characters, they system returns an error that the filter value exceeds the length limit.
- *If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {"key":"key_name","value":"a_value"}
describeOpsItems_nextToken :: Lens' DescribeOpsItems (Maybe Text) Source #
A token to start the list. Use this token to get the next set of results.
describeOpsItems_maxResults :: Lens' DescribeOpsItems (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
Destructuring the Response
data DescribeOpsItemsResponse Source #
See: newDescribeOpsItemsResponse
smart constructor.
DescribeOpsItemsResponse' | |
|
Instances
newDescribeOpsItemsResponse Source #
Create a value of DescribeOpsItemsResponse
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:DescribeOpsItems'
, describeOpsItemsResponse_nextToken
- The token for the next set of items to return. Use this token to get the
next set of results.
$sel:opsItemSummaries:DescribeOpsItemsResponse'
, describeOpsItemsResponse_opsItemSummaries
- A list of OpsItems.
$sel:httpStatus:DescribeOpsItemsResponse'
, describeOpsItemsResponse_httpStatus
- The response's http status code.
Response Lenses
describeOpsItemsResponse_nextToken :: Lens' DescribeOpsItemsResponse (Maybe Text) Source #
The token for the next set of items to return. Use this token to get the next set of results.
describeOpsItemsResponse_opsItemSummaries :: Lens' DescribeOpsItemsResponse (Maybe [OpsItemSummary]) Source #
A list of OpsItems.
describeOpsItemsResponse_httpStatus :: Lens' DescribeOpsItemsResponse Int Source #
The response's http status code.