Example usage for com.amazonaws.services.config.model MessageType ScheduledNotification

List of usage examples for com.amazonaws.services.config.model MessageType ScheduledNotification

Introduction

In this page you can find the example usage for com.amazonaws.services.config.model MessageType ScheduledNotification.

Prototype

MessageType ScheduledNotification

To view the source code for com.amazonaws.services.config.model MessageType ScheduledNotification.

Click Source Link

Usage

From source file:com.vb.aws.services.mt.config.EBSVolumesAvailable.java

private void checkForInCompatibleTypes(JsonNode invokingEvent) {

    String messageType = invokingEvent.get(MESSAGE_TYPE_PROPERTY).asText();
    if (!MessageType.ScheduledNotification.toString().equals(messageType)) {
        System.out.println(//w  w w .  j  a  va  2 s.c o  m
                "ERROR : Message Types of kind : " + messageType + " are not evaluated by this config rule.");
        throw new NotScheduledNotificationException(
                "Message Types of kind : " + messageType + " are not evaluated by this config rule.");
    }
}