class Amazonite::EventBridge::TestEventPatternRequest

Included Modules

Defined in:

eventbridge/test_event_pattern_request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(event_pattern : String, event : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def event : String #

The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:

  • id

  • account

  • source

  • time

  • region

  • resources

  • detail-type


[View source]
def event=(event : String) #

The event, in JSON format, to test against the event pattern. The JSON must follow the format specified in Amazon Web Services Events, and the following fields are mandatory:

  • id

  • account

  • source

  • time

  • region

  • resources

  • detail-type


[View source]
def event_pattern : String #

The event pattern. For more information, see Events and Event Patterns in the * Amazon EventBridge User Guide *.


[View source]
def event_pattern=(event_pattern : String) #

The event pattern. For more information, see Events and Event Patterns in the * Amazon EventBridge User Guide *.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def validate! : Nil #

[View source]