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 |
Create an alert manager definition.
Synopsis
- data CreateAlertManagerDefinition = CreateAlertManagerDefinition' {
- clientToken :: Maybe Text
- data' :: Base64
- workspaceId :: Text
- newCreateAlertManagerDefinition :: ByteString -> Text -> CreateAlertManagerDefinition
- createAlertManagerDefinition_clientToken :: Lens' CreateAlertManagerDefinition (Maybe Text)
- createAlertManagerDefinition_data :: Lens' CreateAlertManagerDefinition ByteString
- createAlertManagerDefinition_workspaceId :: Lens' CreateAlertManagerDefinition Text
- data CreateAlertManagerDefinitionResponse = CreateAlertManagerDefinitionResponse' {}
- newCreateAlertManagerDefinitionResponse :: Int -> AlertManagerDefinitionStatus -> CreateAlertManagerDefinitionResponse
- createAlertManagerDefinitionResponse_httpStatus :: Lens' CreateAlertManagerDefinitionResponse Int
- createAlertManagerDefinitionResponse_status :: Lens' CreateAlertManagerDefinitionResponse AlertManagerDefinitionStatus
Creating a Request
data CreateAlertManagerDefinition Source #
Represents the input of a CreateAlertManagerDefinition operation.
See: newCreateAlertManagerDefinition
smart constructor.
CreateAlertManagerDefinition' | |
|
Instances
newCreateAlertManagerDefinition Source #
Create a value of CreateAlertManagerDefinition
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:CreateAlertManagerDefinition'
, createAlertManagerDefinition_clientToken
- Optional, unique, case-sensitive, user-provided identifier to ensure the
idempotency of the request.
$sel:data':CreateAlertManagerDefinition'
, createAlertManagerDefinition_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:CreateAlertManagerDefinition'
, createAlertManagerDefinition_workspaceId
- The ID of the workspace in which to create the alert manager definition.
Request Lenses
createAlertManagerDefinition_clientToken :: Lens' CreateAlertManagerDefinition (Maybe Text) Source #
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
createAlertManagerDefinition_data :: Lens' CreateAlertManagerDefinition 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.
createAlertManagerDefinition_workspaceId :: Lens' CreateAlertManagerDefinition Text Source #
The ID of the workspace in which to create the alert manager definition.
Destructuring the Response
data CreateAlertManagerDefinitionResponse Source #
Represents the output of a CreateAlertManagerDefinition operation.
See: newCreateAlertManagerDefinitionResponse
smart constructor.
CreateAlertManagerDefinitionResponse' | |
|
Instances
Eq CreateAlertManagerDefinitionResponse Source # | |
Read CreateAlertManagerDefinitionResponse Source # | |
Show CreateAlertManagerDefinitionResponse Source # | |
Generic CreateAlertManagerDefinitionResponse Source # | |
NFData CreateAlertManagerDefinitionResponse Source # | |
Defined in Amazonka.AMP.CreateAlertManagerDefinition rnf :: CreateAlertManagerDefinitionResponse -> () # | |
type Rep CreateAlertManagerDefinitionResponse Source # | |
Defined in Amazonka.AMP.CreateAlertManagerDefinition type Rep CreateAlertManagerDefinitionResponse = D1 ('MetaData "CreateAlertManagerDefinitionResponse" "Amazonka.AMP.CreateAlertManagerDefinition" "libZSservicesZSamazonka-ampZSamazonka-amp" 'False) (C1 ('MetaCons "CreateAlertManagerDefinitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AlertManagerDefinitionStatus))) |
newCreateAlertManagerDefinitionResponse Source #
Create a value of CreateAlertManagerDefinitionResponse
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:CreateAlertManagerDefinitionResponse'
, createAlertManagerDefinitionResponse_httpStatus
- The response's http status code.
$sel:status:CreateAlertManagerDefinitionResponse'
, createAlertManagerDefinitionResponse_status
- The status of alert manager definition.
Response Lenses
createAlertManagerDefinitionResponse_httpStatus :: Lens' CreateAlertManagerDefinitionResponse Int Source #
The response's http status code.
createAlertManagerDefinitionResponse_status :: Lens' CreateAlertManagerDefinitionResponse AlertManagerDefinitionStatus Source #
The status of alert manager definition.