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 |
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.
PutAlertManagerDefinition' | |
|
Instances
newPutAlertManagerDefinition Source #
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.
$sel:data':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.
$sel:workspaceId: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.
PutAlertManagerDefinitionResponse' | |
|
Instances
Eq PutAlertManagerDefinitionResponse Source # | |
Read PutAlertManagerDefinitionResponse Source # | |
Show PutAlertManagerDefinitionResponse Source # | |
Defined in Amazonka.AMP.PutAlertManagerDefinition | |
Generic PutAlertManagerDefinitionResponse Source # | |
NFData PutAlertManagerDefinitionResponse Source # | |
Defined in Amazonka.AMP.PutAlertManagerDefinition rnf :: PutAlertManagerDefinitionResponse -> () # | |
type Rep PutAlertManagerDefinitionResponse Source # | |
Defined in Amazonka.AMP.PutAlertManagerDefinition type Rep PutAlertManagerDefinitionResponse = D1 ('MetaData "PutAlertManagerDefinitionResponse" "Amazonka.AMP.PutAlertManagerDefinition" "libZSservicesZSamazonka-ampZSamazonka-amp" 'False) (C1 ('MetaCons "PutAlertManagerDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AlertManagerDefinitionStatus))) |
newPutAlertManagerDefinitionResponse Source #
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.
$sel:status: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.