| 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 |
Amazonka.SecurityHub.DeleteInsight
Description
Deletes the insight specified by the InsightArn.
Synopsis
- data DeleteInsight = DeleteInsight' {
- insightArn :: Text
- newDeleteInsight :: Text -> DeleteInsight
- deleteInsight_insightArn :: Lens' DeleteInsight Text
- data DeleteInsightResponse = DeleteInsightResponse' {
- httpStatus :: Int
- insightArn :: Text
- newDeleteInsightResponse :: Int -> Text -> DeleteInsightResponse
- deleteInsightResponse_httpStatus :: Lens' DeleteInsightResponse Int
- deleteInsightResponse_insightArn :: Lens' DeleteInsightResponse Text
Creating a Request
data DeleteInsight Source #
See: newDeleteInsight smart constructor.
Constructors
| DeleteInsight' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteInsight |
Create a value of DeleteInsight 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:insightArn:DeleteInsight', deleteInsight_insightArn - The ARN of the insight to delete.
Request Lenses
deleteInsight_insightArn :: Lens' DeleteInsight Text Source #
The ARN of the insight to delete.
Destructuring the Response
data DeleteInsightResponse Source #
See: newDeleteInsightResponse smart constructor.
Constructors
| DeleteInsightResponse' | |
Fields
| |
Instances
newDeleteInsightResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> DeleteInsightResponse |
Create a value of DeleteInsightResponse 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:httpStatus:DeleteInsightResponse', deleteInsightResponse_httpStatus - The response's http status code.
$sel:insightArn:DeleteInsight', deleteInsightResponse_insightArn - The ARN of the insight that was deleted.
Response Lenses
deleteInsightResponse_httpStatus :: Lens' DeleteInsightResponse Int Source #
The response's http status code.
deleteInsightResponse_insightArn :: Lens' DeleteInsightResponse Text Source #
The ARN of the insight that was deleted.