Class: CfnGuardian::Models::AzureFileEvent
- Defined in:
- lib/cfnguardian/models/event.rb
Instance Attribute Summary
Attributes inherited from BaseEvent
#cron, #enabled, #environment, #group, #hash, #name, #resource, #target, #type
Instance Method Summary collapse
-
#initialize(resource) ⇒ AzureFileEvent
constructor
A new instance of AzureFileEvent.
- #payload ⇒ Object
- #ssm_parameters ⇒ Object
Constructor Details
#initialize(resource) ⇒ AzureFileEvent
Returns a new instance of AzureFileEvent.
382 383 384 385 386 387 388 389 390 391 392 |
# File 'lib/cfnguardian/models/event.rb', line 382 def initialize(resource) super(resource) @group = 'AzureFile' @name = 'AzureFileEvent' @target = 'AzureFileCheckFunction' @cron = resource.fetch('Schedule', "0/5 * * * ? *") @storage_account = resource['Id'] @container = resource['Container'] @connection_string = resource['ConnectionString'] @search = resource['Search'] end |
Instance Method Details
#payload ⇒ Object
394 395 396 397 398 399 400 401 |
# File 'lib/cfnguardian/models/event.rb', line 394 def payload return { 'STORAGE_ACCOUNT' => @storage_account, 'CONTAINER' => @container, 'CONNECTION_STRING' => @connection_string, 'SEARCH' => @search }.to_json end |
#ssm_parameters ⇒ Object
403 404 405 |
# File 'lib/cfnguardian/models/event.rb', line 403 def ssm_parameters return [@connection_string] end |