Class: AwsVpcs
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
40
41
42
43
|
# File 'lib/resources/aws/aws_vpcs.rb', line 40
def fetch_from_api
describe_vpcs_response = BackendFactory.create(inspec_runner).describe_vpcs
@table = describe_vpcs_response.to_h[:vpcs].map(&:to_h)
end
|
#to_s ⇒ Object
36
37
38
|
# File 'lib/resources/aws/aws_vpcs.rb', line 36
def to_s
"VPCs"
end
|
#validate_params(raw_params) ⇒ Object
27
28
29
30
31
32
33
34
|
# File 'lib/resources/aws/aws_vpcs.rb', line 27
def validate_params(raw_params)
unless raw_params.empty?
raise ArgumentError, "aws_vpcs does not accept resource parameters"
end
raw_params
end
|