libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeStarNotifications.UpdateNotificationRule

Description

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

Creating a Request

data UpdateNotificationRule Source #

See: newUpdateNotificationRule smart constructor.

Constructors

UpdateNotificationRule' 

Fields

  • status :: Maybe NotificationRuleStatus

    The status of the notification rule. Valid statuses include enabled (sending notifications) or disabled (not sending notifications).

  • eventTypeIds :: Maybe [Text]

    A list of event types associated with this notification rule.

  • detailType :: Maybe 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.

  • name :: Maybe (Sensitive Text)

    The name of the notification rule.

  • targets :: Maybe [Target]

    The address and type of the targets to receive notifications from this notification rule.

  • arn :: Text

    The Amazon Resource Name (ARN) of the notification rule.

Instances

Instances details
Eq UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Show UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Generic UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Associated Types

type Rep UpdateNotificationRule :: Type -> Type #

NFData UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Methods

rnf :: UpdateNotificationRule -> () #

Hashable UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

ToJSON UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

AWSRequest UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Associated Types

type AWSResponse UpdateNotificationRule #

ToHeaders UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

ToPath UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

ToQuery UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

type Rep UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

type Rep UpdateNotificationRule = D1 ('MetaData "UpdateNotificationRule" "Amazonka.CodeStarNotifications.UpdateNotificationRule" "libZSservicesZSamazonka-codestar-notificationsZSamazonka-codestar-notifications" 'False) (C1 ('MetaCons "UpdateNotificationRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationRuleStatus)) :*: (S1 ('MetaSel ('Just "eventTypeIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "detailType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DetailType)))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Target])) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

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_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.

Constructors

UpdateNotificationRuleResponse' 

Fields

Instances

Instances details
Eq UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Read UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Show UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Generic UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Associated Types

type Rep UpdateNotificationRuleResponse :: Type -> Type #

NFData UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

type Rep UpdateNotificationRuleResponse Source # 
Instance details

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