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

Version Path
cfn-guardian-0.11.11 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.10 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.9 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.8 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.7 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.6 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.5 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.4 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.3 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.2 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.1 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.11.0 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.10.4 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.10.1 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.10.0 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.9.2 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.9.1 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.9.0 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.8.6 lib/cfnguardian/resources/glue.rb
cfn-guardian-0.8.5 lib/cfnguardian/resources/glue.rb