lib/resources/aws/aws_billing_reports.rb in inspec-4.7.3 vs lib/resources/aws/aws_billing_reports.rb in inspec-4.7.18
- old
+ new
@@ -22,22 +22,23 @@
include AwsPluralResourceMixin
filtertable = FilterTable.create
filtertable.register_custom_matcher(:exists?) { |x| !x.entries.empty? }
- .register_column(:report_names, field: :report_name)
- .register_column(:time_units, field: :time_unit, style: :simple)
- .register_column(:formats, field: :format, style: :simple)
- .register_column(:compressions, field: :compression, style: :simple)
- .register_column(:s3_buckets, field: :s3_bucket, style: :simple)
- .register_column(:s3_prefixes, field: :s3_prefix, style: :simple)
- .register_column(:s3_regions, field: :s3_region, style: :simple)
+ .register_column(:report_names, field: :report_name)
+ .register_column(:time_units, field: :time_unit, style: :simple)
+ .register_column(:formats, field: :format, style: :simple)
+ .register_column(:compressions, field: :compression, style: :simple)
+ .register_column(:s3_buckets, field: :s3_bucket, style: :simple)
+ .register_column(:s3_prefixes, field: :s3_prefix, style: :simple)
+ .register_column(:s3_regions, field: :s3_region, style: :simple)
filtertable.install_filter_methods_on_resource(self, :table)
def validate_params(resource_params)
unless resource_params.empty?
raise ArgumentError, "aws_billing_reports does not accept resource parameters."
end
+
resource_params
end
def to_s
"AWS Billing Reports"