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 |
Updates a notification rule for a resource. You can change the events that trigger the notification rule, the status of the rule, and the targets that receive the notifications.
To add or remove tags for a notification rule, you must use TagResource and UntagResource.
Synopsis
- data UpdateNotificationRule = UpdateNotificationRule' {
- status :: Maybe NotificationRuleStatus
- eventTypeIds :: Maybe [Text]
- detailType :: Maybe DetailType
- name :: Maybe (Sensitive Text)
- targets :: Maybe [Target]
- arn :: Text
- newUpdateNotificationRule :: Text -> UpdateNotificationRule
- updateNotificationRule_status :: Lens' UpdateNotificationRule (Maybe NotificationRuleStatus)
- updateNotificationRule_eventTypeIds :: Lens' UpdateNotificationRule (Maybe [Text])
- updateNotificationRule_detailType :: Lens' UpdateNotificationRule (Maybe DetailType)
- updateNotificationRule_name :: Lens' UpdateNotificationRule (Maybe Text)
- updateNotificationRule_targets :: Lens' UpdateNotificationRule (Maybe [Target])
- updateNotificationRule_arn :: Lens' UpdateNotificationRule Text
- data UpdateNotificationRuleResponse = UpdateNotificationRuleResponse' {
- httpStatus :: Int
- newUpdateNotificationRuleResponse :: Int -> UpdateNotificationRuleResponse
- updateNotificationRuleResponse_httpStatus :: Lens' UpdateNotificationRuleResponse Int
Creating a Request
data UpdateNotificationRule Source #
See: newUpdateNotificationRule
smart constructor.
UpdateNotificationRule' | |
|
Instances
newUpdateNotificationRule Source #
Create a value of UpdateNotificationRule
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:status:UpdateNotificationRule'
, updateNotificationRule_status
- The status of the notification rule. Valid statuses include enabled
(sending notifications) or disabled (not sending notifications).
$sel:eventTypeIds:UpdateNotificationRule'
, updateNotificationRule_eventTypeIds
- A list of event types associated with this notification rule.
$sel:detailType:UpdateNotificationRule'
, updateNotificationRule_detailType
- The level of detail to include in the notifications for this resource.
BASIC will include only the contents of the event as it would appear in
AWS CloudWatch. FULL will include any supplemental information provided
by AWS CodeStar Notifications and/or the service for the resource for
which the notification is created.
$sel:name:UpdateNotificationRule'
, updateNotificationRule_name
- The name of the notification rule.
$sel:targets:UpdateNotificationRule'
, updateNotificationRule_targets
- The address and type of the targets to receive notifications from this
notification rule.
$sel:arn:UpdateNotificationRule'
, updateNotificationRule_arn
- The Amazon Resource Name (ARN) of the notification rule.
Request Lenses
updateNotificationRule_status :: Lens' UpdateNotificationRule (Maybe NotificationRuleStatus) Source #
The status of the notification rule. Valid statuses include enabled (sending notifications) or disabled (not sending notifications).
updateNotificationRule_eventTypeIds :: Lens' UpdateNotificationRule (Maybe [Text]) Source #
A list of event types associated with this notification rule.
updateNotificationRule_detailType :: Lens' UpdateNotificationRule (Maybe DetailType) Source #
The level of detail to include in the notifications for this resource. BASIC will include only the contents of the event as it would appear in AWS CloudWatch. FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.
updateNotificationRule_name :: Lens' UpdateNotificationRule (Maybe Text) Source #
The name of the notification rule.
updateNotificationRule_targets :: Lens' UpdateNotificationRule (Maybe [Target]) Source #
The address and type of the targets to receive notifications from this notification rule.
updateNotificationRule_arn :: Lens' UpdateNotificationRule Text Source #
The Amazon Resource Name (ARN) of the notification rule.
Destructuring the Response
data UpdateNotificationRuleResponse Source #
See: newUpdateNotificationRuleResponse
smart constructor.
UpdateNotificationRuleResponse' | |
|
Instances
Eq UpdateNotificationRuleResponse Source # | |
Read UpdateNotificationRuleResponse Source # | |
Show UpdateNotificationRuleResponse Source # | |
Generic UpdateNotificationRuleResponse Source # | |
NFData UpdateNotificationRuleResponse Source # | |
Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule rnf :: UpdateNotificationRuleResponse -> () # | |
type Rep UpdateNotificationRuleResponse Source # | |
Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule type Rep UpdateNotificationRuleResponse = D1 ('MetaData "UpdateNotificationRuleResponse" "Amazonka.CodeStarNotifications.UpdateNotificationRule" "libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications" 'False) (C1 ('MetaCons "UpdateNotificationRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateNotificationRuleResponse Source #
Create a value of UpdateNotificationRuleResponse
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:UpdateNotificationRuleResponse'
, updateNotificationRuleResponse_httpStatus
- The response's http status code.
Response Lenses
updateNotificationRuleResponse_httpStatus :: Lens' UpdateNotificationRuleResponse Int Source #
The response's http status code.