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 |
Returns information about a specified notification rule.
Synopsis
- data DescribeNotificationRule = DescribeNotificationRule' {}
- newDescribeNotificationRule :: Text -> DescribeNotificationRule
- describeNotificationRule_arn :: Lens' DescribeNotificationRule Text
- data DescribeNotificationRuleResponse = DescribeNotificationRuleResponse' {
- status :: Maybe NotificationRuleStatus
- eventTypes :: Maybe [EventTypeSummary]
- lastModifiedTimestamp :: Maybe POSIX
- createdBy :: Maybe Text
- detailType :: Maybe DetailType
- name :: Maybe (Sensitive Text)
- targets :: Maybe [TargetSummary]
- resource :: Maybe Text
- createdTimestamp :: Maybe POSIX
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- arn :: Text
- newDescribeNotificationRuleResponse :: Int -> Text -> DescribeNotificationRuleResponse
- describeNotificationRuleResponse_status :: Lens' DescribeNotificationRuleResponse (Maybe NotificationRuleStatus)
- describeNotificationRuleResponse_eventTypes :: Lens' DescribeNotificationRuleResponse (Maybe [EventTypeSummary])
- describeNotificationRuleResponse_lastModifiedTimestamp :: Lens' DescribeNotificationRuleResponse (Maybe UTCTime)
- describeNotificationRuleResponse_createdBy :: Lens' DescribeNotificationRuleResponse (Maybe Text)
- describeNotificationRuleResponse_detailType :: Lens' DescribeNotificationRuleResponse (Maybe DetailType)
- describeNotificationRuleResponse_name :: Lens' DescribeNotificationRuleResponse (Maybe Text)
- describeNotificationRuleResponse_targets :: Lens' DescribeNotificationRuleResponse (Maybe [TargetSummary])
- describeNotificationRuleResponse_resource :: Lens' DescribeNotificationRuleResponse (Maybe Text)
- describeNotificationRuleResponse_createdTimestamp :: Lens' DescribeNotificationRuleResponse (Maybe UTCTime)
- describeNotificationRuleResponse_tags :: Lens' DescribeNotificationRuleResponse (Maybe (HashMap Text Text))
- describeNotificationRuleResponse_httpStatus :: Lens' DescribeNotificationRuleResponse Int
- describeNotificationRuleResponse_arn :: Lens' DescribeNotificationRuleResponse Text
Creating a Request
data DescribeNotificationRule Source #
See: newDescribeNotificationRule
smart constructor.
Instances
newDescribeNotificationRule Source #
Create a value of DescribeNotificationRule
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:arn:DescribeNotificationRule'
, describeNotificationRule_arn
- The Amazon Resource Name (ARN) of the notification rule.
Request Lenses
describeNotificationRule_arn :: Lens' DescribeNotificationRule Text Source #
The Amazon Resource Name (ARN) of the notification rule.
Destructuring the Response
data DescribeNotificationRuleResponse Source #
See: newDescribeNotificationRuleResponse
smart constructor.
DescribeNotificationRuleResponse' | |
|
Instances
newDescribeNotificationRuleResponse Source #
Create a value of DescribeNotificationRuleResponse
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:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_status
- The status of the notification rule. Valid statuses are on (sending
notifications) or off (not sending notifications).
$sel:eventTypes:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_eventTypes
- A list of the event types associated with the notification rule.
$sel:lastModifiedTimestamp:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_lastModifiedTimestamp
- The date and time the notification rule was most recently updated, in
timestamp format.
$sel:createdBy:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_createdBy
- The name or email alias of the person who created the notification rule.
$sel:detailType:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_detailType
- The level of detail included 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:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_name
- The name of the notification rule.
$sel:targets:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_targets
- A list of the SNS topics associated with the notification rule.
$sel:resource:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_resource
- The Amazon Resource Name (ARN) of the resource associated with the
notification rule.
$sel:createdTimestamp:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_createdTimestamp
- The date and time the notification rule was created, in timestamp
format.
$sel:tags:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_tags
- The tags associated with the notification rule.
$sel:httpStatus:DescribeNotificationRuleResponse'
, describeNotificationRuleResponse_httpStatus
- The response's http status code.
$sel:arn:DescribeNotificationRule'
, describeNotificationRuleResponse_arn
- The Amazon Resource Name (ARN) of the notification rule.
Response Lenses
describeNotificationRuleResponse_status :: Lens' DescribeNotificationRuleResponse (Maybe NotificationRuleStatus) Source #
The status of the notification rule. Valid statuses are on (sending notifications) or off (not sending notifications).
describeNotificationRuleResponse_eventTypes :: Lens' DescribeNotificationRuleResponse (Maybe [EventTypeSummary]) Source #
A list of the event types associated with the notification rule.
describeNotificationRuleResponse_lastModifiedTimestamp :: Lens' DescribeNotificationRuleResponse (Maybe UTCTime) Source #
The date and time the notification rule was most recently updated, in timestamp format.
describeNotificationRuleResponse_createdBy :: Lens' DescribeNotificationRuleResponse (Maybe Text) Source #
The name or email alias of the person who created the notification rule.
describeNotificationRuleResponse_detailType :: Lens' DescribeNotificationRuleResponse (Maybe DetailType) Source #
The level of detail included 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.
describeNotificationRuleResponse_name :: Lens' DescribeNotificationRuleResponse (Maybe Text) Source #
The name of the notification rule.
describeNotificationRuleResponse_targets :: Lens' DescribeNotificationRuleResponse (Maybe [TargetSummary]) Source #
A list of the SNS topics associated with the notification rule.
describeNotificationRuleResponse_resource :: Lens' DescribeNotificationRuleResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the resource associated with the notification rule.
describeNotificationRuleResponse_createdTimestamp :: Lens' DescribeNotificationRuleResponse (Maybe UTCTime) Source #
The date and time the notification rule was created, in timestamp format.
describeNotificationRuleResponse_tags :: Lens' DescribeNotificationRuleResponse (Maybe (HashMap Text Text)) Source #
The tags associated with the notification rule.
describeNotificationRuleResponse_httpStatus :: Lens' DescribeNotificationRuleResponse Int Source #
The response's http status code.
describeNotificationRuleResponse_arn :: Lens' DescribeNotificationRuleResponse Text Source #
The Amazon Resource Name (ARN) of the notification rule.