Sha256: f332cbeb5b1cb713f9ff5ff183bb377663e47d6845153a36128a22ce03d20c37
Contents?: true
Size: 849 Bytes
Versions: 51
Compression:
Stored size: 849 Bytes
Contents
module CfnGuardian::Resource class Glue < Base def default_event_subscriptions() event_subscription = CfnGuardian::Models::BatchEventSubscription.new(@resource) event_subscription.name = 'FailedGlueJob' event_subscription.detail_type = 'Glue Job State Change' event_subscription.detail = { 'state': ['FAILED'], 'jobName': [{'prefix': @resource['Id']}] } @event_subscriptions.push(event_subscription) event_subscription = CfnGuardian::Models::BatchEventSubscription.new(@resource) event_subscription.name = 'TimeoutGlueJob' event_subscription.detail_type = 'Glue Job State Change' event_subscription.detail = { 'state': ['TIMEOUT'], 'jobName': [{'prefix': @resource['Id']}] } @event_subscriptions.push(event_subscription) end end end
Version data entries
51 entries across 51 versions & 1 rubygems