Class: AwsBillingReport

Inherits:
Object
  • Object
show all
Includes:
AwsSingularResourceMixin
Defined in:
lib/resources/aws/aws_billing_report.rb

Defined Under Namespace

Classes: Backend

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AwsSingularResourceMixin

#exists?, included

Methods included from AwsResourceMixin

#catch_aws_errors, #check_resource_param_names, #initialize, #inspec_runner

Instance Attribute Details

#compressionObject (readonly)

Returns the value of attribute compression.



23
24
25
# File 'lib/resources/aws/aws_billing_report.rb', line 23

def compression
  @compression
end

#formatObject (readonly)

Returns the value of attribute format.



23
24
25
# File 'lib/resources/aws/aws_billing_report.rb', line 23

def format
  @format
end

#report_nameObject (readonly)

Returns the value of attribute report_name.



23
24
25
# File 'lib/resources/aws/aws_billing_report.rb', line 23

def report_name
  @report_name
end

#s3_bucketObject (readonly)

Returns the value of attribute s3_bucket.



23
24
25
# File 'lib/resources/aws/aws_billing_report.rb', line 23

def s3_bucket
  @s3_bucket
end

#s3_prefixObject (readonly)

Returns the value of attribute s3_prefix.



23
24
25
# File 'lib/resources/aws/aws_billing_report.rb', line 23

def s3_prefix
  @s3_prefix
end

#s3_regionObject (readonly)

Returns the value of attribute s3_region.



23
24
25
# File 'lib/resources/aws/aws_billing_report.rb', line 23

def s3_region
  @s3_region
end

#time_unitObject (readonly)

Returns the value of attribute time_unit.



23
24
25
# File 'lib/resources/aws/aws_billing_report.rb', line 23

def time_unit
  @time_unit
end

Instance Method Details

#daily?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/resources/aws/aws_billing_report.rb', line 34

def daily?
  exists? ? time_unit.eql?("daily") : nil
end

#gzip?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/resources/aws/aws_billing_report.rb', line 42

def gzip?
  exists? ? compression.eql?("gzip") : nil
end

#hourly?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/resources/aws/aws_billing_report.rb', line 30

def hourly?
  exists? ? time_unit.eql?("hourly") : nil
end

#to_sObject



26
27
28
# File 'lib/resources/aws/aws_billing_report.rb', line 26

def to_s
  "AWS Billing Report #{report_name}"
end

#zip?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/resources/aws/aws_billing_report.rb', line 38

def zip?
  exists? ? compression.eql?("zip") : nil
end