Method: AwsConfigurationRecorder#status

Defined in:
lib/resources/aws/aws_config_recorder.rb

#statusObject



33
34
35
36
37
38
39
40
# File 'lib/resources/aws/aws_config_recorder.rb', line 33

def status
  return {} unless @exists
  backend = BackendFactory.create(inspec_runner)
  catch_aws_errors do
    response = backend.describe_configuration_recorder_status(configuration_recorder_names: [@recorder_name])
    @status = response.configuration_recorders_status.first.to_h
  end
end