amazonka-codestar-notifications-2.0: Amazon CodeStar Notifications SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • 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 Amazon 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.

  • eventTypeIds :: Maybe [Text]

    A list of event types associated with this notification rule. For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.

  • name :: Maybe (Sensitive Text)

    The name of the notification rule.

  • status :: Maybe NotificationRuleStatus

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

  • 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
ToJSON UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.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

AWSRequest UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Associated Types

type AWSResponse UpdateNotificationRule #

Generic UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Associated Types

type Rep UpdateNotificationRule :: Type -> Type #

Show UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

NFData UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Methods

rnf :: UpdateNotificationRule -> () #

Eq UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Hashable UpdateNotificationRule Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

type AWSResponse 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" "amazonka-codestar-notifications-2.0-1YU4g2Ny2gz2roMHW6JQnw" 'False) (C1 ('MetaCons "UpdateNotificationRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "detailType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DetailType)) :*: (S1 ('MetaSel ('Just "eventTypeIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationRuleStatus)) :*: (S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Target])) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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: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 Amazon 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:eventTypeIds:UpdateNotificationRule', updateNotificationRule_eventTypeIds - A list of event types associated with this notification rule. For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.

UpdateNotificationRule, updateNotificationRule_name - The name of the notification rule.

$sel:status:UpdateNotificationRule', updateNotificationRule_status - The status of the notification rule. Valid statuses include enabled (sending notifications) or disabled (not sending notifications).

$sel:targets:UpdateNotificationRule', updateNotificationRule_targets - The address and type of the targets to receive notifications from this notification rule.

UpdateNotificationRule, updateNotificationRule_arn - The Amazon Resource Name (ARN) of the notification rule.

Request Lenses

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 Amazon 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_eventTypeIds :: Lens' UpdateNotificationRule (Maybe [Text]) Source #

A list of event types associated with this notification rule. For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.

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_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
Generic UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Associated Types

type Rep UpdateNotificationRuleResponse :: Type -> Type #

Read UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Show UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

NFData UpdateNotificationRuleResponse Source # 
Instance details

Defined in Amazonka.CodeStarNotifications.UpdateNotificationRule

Eq 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" "amazonka-codestar-notifications-2.0-1YU4g2Ny2gz2roMHW6JQnw" '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