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 |
Get information about an OpsItem by using the ID. You must have permission in Identity and Access Management (IAM) to view information about an OpsItem. 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.
Synopsis
- data GetOpsItem = GetOpsItem' {}
- newGetOpsItem :: Text -> GetOpsItem
- getOpsItem_opsItemId :: Lens' GetOpsItem Text
- data GetOpsItemResponse = GetOpsItemResponse' {
- opsItem :: Maybe OpsItem
- httpStatus :: Int
- newGetOpsItemResponse :: Int -> GetOpsItemResponse
- getOpsItemResponse_opsItem :: Lens' GetOpsItemResponse (Maybe OpsItem)
- getOpsItemResponse_httpStatus :: Lens' GetOpsItemResponse Int
Creating a Request
data GetOpsItem Source #
See: newGetOpsItem
smart constructor.
Instances
Create a value of GetOpsItem
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:opsItemId:GetOpsItem'
, getOpsItem_opsItemId
- The ID of the OpsItem that you want to get.
Request Lenses
getOpsItem_opsItemId :: Lens' GetOpsItem Text Source #
The ID of the OpsItem that you want to get.
Destructuring the Response
data GetOpsItemResponse Source #
See: newGetOpsItemResponse
smart constructor.
GetOpsItemResponse' | |
|
Instances
newGetOpsItemResponse Source #
Create a value of GetOpsItemResponse
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:opsItem:GetOpsItemResponse'
, getOpsItemResponse_opsItem
- The OpsItem.
$sel:httpStatus:GetOpsItemResponse'
, getOpsItemResponse_httpStatus
- The response's http status code.
Response Lenses
getOpsItemResponse_opsItem :: Lens' GetOpsItemResponse (Maybe OpsItem) Source #
The OpsItem.
getOpsItemResponse_httpStatus :: Lens' GetOpsItemResponse Int Source #
The response's http status code.