Skip to content

Subscribe To Event

inspector_subscribe_to_event R Documentation

Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic

Description

Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.

Usage

inspector_subscribe_to_event(resourceArn, event, topicArn)

Arguments

resourceArn

[required] The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.

event

[required] The event for which you want to receive SNS notifications.

topicArn

[required] The ARN of the SNS topic to which the SNS notifications are sent.

Value

An empty list.

Request syntax

svc$subscribe_to_event(
  resourceArn = "string",
  event = "ASSESSMENT_RUN_STARTED"|"ASSESSMENT_RUN_COMPLETED"|"ASSESSMENT_RUN_STATE_CHANGED"|"FINDING_REPORTED"|"OTHER",
  topicArn = "string"
)

Examples

## Not run: 
# Enables the process of sending Amazon Simple Notification Service (SNS)
# notifications about a specified event to a specified SNS topic.
svc$subscribe_to_event(
  event = "ASSESSMENT_RUN_COMPLETED",
  resourceArn = "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX...",
  topicArn = "arn:aws:sns:us-west-2:123456789012:exampletopic"
)

## End(Not run)