Class: AwsCloudTrailTrails
Defined Under Namespace
Classes: Backend
Instance Attribute Summary
#table
Instance Method Summary
collapse
included
#catch_aws_errors, #check_resource_param_names, #initialize, #inspec_runner
Instance Method Details
#fetch_from_api ⇒ Object
31
32
33
34
|
# File 'lib/resources/aws/aws_cloudtrail_trails.rb', line 31
def fetch_from_api
backend = BackendFactory.create(inspec_runner)
@table = backend.describe_trails({}).to_h[:trail_list]
end
|
#to_s ⇒ Object
27
28
29
|
# File 'lib/resources/aws/aws_cloudtrail_trails.rb', line 27
def to_s
'CloudTrail Trails'
end
|
#validate_params(resource_params) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/resources/aws/aws_cloudtrail_trails.rb', line 13
def validate_params(resource_params)
unless resource_params.empty?
raise ArgumentError, 'aws_cloudtrail_trails does not accept resource parameters.'
end
resource_params
end
|