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.AMP.CreateAlertManagerDefinition
Description
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.
Constructors
CreateAlertManagerDefinition' | |
Fields
|
Instances
newCreateAlertManagerDefinition Source #
Arguments
:: ByteString | |
-> Text | |
-> CreateAlertManagerDefinition |
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.
Constructors
CreateAlertManagerDefinitionResponse' | |
Fields
|
Instances
newCreateAlertManagerDefinitionResponse Source #
Arguments
:: Int | |
-> AlertManagerDefinitionStatus | |
-> CreateAlertManagerDefinitionResponse |
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.