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.
353 354 355 356 357 358 359 360 361 362 363 |
# File 'lib/cfnguardian/models/event.rb', line 353 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
365 366 367 368 369 370 371 372 |
# File 'lib/cfnguardian/models/event.rb', line 365 def payload return { 'STORAGE_ACCOUNT' => @storage_account, 'CONTAINER' => @container, 'CONNECTION_STRING' => @connection_string, 'SEARCH' => @search }.to_json end |
#ssm_parameters ⇒ Object
374 375 376 |
# File 'lib/cfnguardian/models/event.rb', line 374 def ssm_parameters return [@connection_string] end |