Class: ESP::Region
- Defined in:
- lib/esp/resources/region.rb
Constant Summary
Constants inherited from Resource
Instance Method Summary collapse
-
#destroy ⇒ Object
Not Implemented.
-
#save ⇒ Object
Not Implemented.
-
#suppress(arguments = {}) ⇒ Object
Create a suppression for this region.
Methods inherited from Resource
arrange_options, filters, find, make_pageable, #serializable_hash, where
Instance Method Details
#destroy ⇒ Object
Not Implemented. You cannot destroy a an CloudTrailEvent.
9 10 11 |
# File 'lib/esp/resources/region.rb', line 9 def destroy fail ESP::NotImplementedError end |
#save ⇒ Object
Not Implemented. You cannot create or update a CloudTrailEvent.
4 5 6 |
# File 'lib/esp/resources/region.rb', line 4 def save fail ESP::NotImplementedError end |
#suppress(arguments = {}) ⇒ Object
Create a suppression for this region.
Parameter
arguments | Required | A hash of region suppression attributes
Valid Arguments
See API documentation for valid arguments
Example
suppress(external_account_ids: [5], reason: 'My very good reason for creating this suppression')
25 26 27 28 |
# File 'lib/esp/resources/region.rb', line 25 def suppress(arguments = {}) arguments = arguments.with_indifferent_access ESP::Suppression::Region.create(regions: [code], external_account_ids: Array(arguments[:external_account_ids]), reason: arguments[:reason]) end |