Method: AwsConfigurationRecorder#status

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

#statusObject



29
30
31
32
33
34
35
36
# File 'lib/resources/aws/aws_config_recorder.rb', line 29

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