| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AMP.PutAlertManagerDefinition
Description
Update an alert manager definition.
Synopsis
- data PutAlertManagerDefinition = PutAlertManagerDefinition' {
- clientToken :: Maybe Text
- data' :: Base64
- workspaceId :: Text
- newPutAlertManagerDefinition :: ByteString -> Text -> PutAlertManagerDefinition
- putAlertManagerDefinition_clientToken :: Lens' PutAlertManagerDefinition (Maybe Text)
- putAlertManagerDefinition_data :: Lens' PutAlertManagerDefinition ByteString
- putAlertManagerDefinition_workspaceId :: Lens' PutAlertManagerDefinition Text
- data PutAlertManagerDefinitionResponse = PutAlertManagerDefinitionResponse' {}
- newPutAlertManagerDefinitionResponse :: Int -> AlertManagerDefinitionStatus -> PutAlertManagerDefinitionResponse
- putAlertManagerDefinitionResponse_httpStatus :: Lens' PutAlertManagerDefinitionResponse Int
- putAlertManagerDefinitionResponse_status :: Lens' PutAlertManagerDefinitionResponse AlertManagerDefinitionStatus
Creating a Request
data PutAlertManagerDefinition Source #
Represents the input of a PutAlertManagerDefinition operation.
See: newPutAlertManagerDefinition smart constructor.
Constructors
| PutAlertManagerDefinition' | |
Fields
| |
Instances
newPutAlertManagerDefinition Source #
Arguments
| :: ByteString | |
| -> Text | |
| -> PutAlertManagerDefinition |
Create a value of PutAlertManagerDefinition 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:clientToken:PutAlertManagerDefinition', putAlertManagerDefinition_clientToken - Optional, unique, case-sensitive, user-provided identifier to ensure the
idempotency of the request.
PutAlertManagerDefinition, putAlertManagerDefinition_data - The alert manager definition data.--
-- Note: This Lens automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens accepts and returns only raw unencoded data.
PutAlertManagerDefinition, putAlertManagerDefinition_workspaceId - The ID of the workspace in which to update the alert manager definition.
Request Lenses
putAlertManagerDefinition_clientToken :: Lens' PutAlertManagerDefinition (Maybe Text) Source #
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
putAlertManagerDefinition_data :: Lens' PutAlertManagerDefinition ByteString Source #
The alert manager definition data.--
-- Note: This Lens automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens accepts and returns only raw unencoded data.
putAlertManagerDefinition_workspaceId :: Lens' PutAlertManagerDefinition Text Source #
The ID of the workspace in which to update the alert manager definition.
Destructuring the Response
data PutAlertManagerDefinitionResponse Source #
Represents the output of a PutAlertManagerDefinition operation.
See: newPutAlertManagerDefinitionResponse smart constructor.
Constructors
| PutAlertManagerDefinitionResponse' | |
Fields
| |
Instances
newPutAlertManagerDefinitionResponse Source #
Arguments
| :: Int | |
| -> AlertManagerDefinitionStatus | |
| -> PutAlertManagerDefinitionResponse |
Create a value of PutAlertManagerDefinitionResponse 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:PutAlertManagerDefinitionResponse', putAlertManagerDefinitionResponse_httpStatus - The response's http status code.
PutAlertManagerDefinitionResponse, putAlertManagerDefinitionResponse_status - The status of alert manager definition.
Response Lenses
putAlertManagerDefinitionResponse_httpStatus :: Lens' PutAlertManagerDefinitionResponse Int Source #
The response's http status code.
putAlertManagerDefinitionResponse_status :: Lens' PutAlertManagerDefinitionResponse AlertManagerDefinitionStatus Source #
The status of alert manager definition.