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.



18
19
20
# File 'lib/resources/aws/aws_billing_report.rb', line 18

def compression
  @compression
end

#formatObject (readonly)

Returns the value of attribute format.



18
19
20
# File 'lib/resources/aws/aws_billing_report.rb', line 18

def format
  @format
end

#report_nameObject (readonly)

Returns the value of attribute report_name.



18
19
20
# File 'lib/resources/aws/aws_billing_report.rb', line 18

def report_name
  @report_name
end

#s3_bucketObject (readonly)

Returns the value of attribute s3_bucket.



18
19
20
# File 'lib/resources/aws/aws_billing_report.rb', line 18

def s3_bucket
  @s3_bucket
end

#s3_prefixObject (readonly)

Returns the value of attribute s3_prefix.



18
19
20
# File 'lib/resources/aws/aws_billing_report.rb', line 18

def s3_prefix
  @s3_prefix
end

#s3_regionObject (readonly)

Returns the value of attribute s3_region.



18
19
20
# File 'lib/resources/aws/aws_billing_report.rb', line 18

def s3_region
  @s3_region
end

#time_unitObject (readonly)

Returns the value of attribute time_unit.



18
19
20
# File 'lib/resources/aws/aws_billing_report.rb', line 18

def time_unit
  @time_unit
end

Instance Method Details

#daily?Boolean

Returns:

  • (Boolean)


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

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

#gzip?Boolean

Returns:

  • (Boolean)


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

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

#hourly?Boolean

Returns:

  • (Boolean)


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

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

#to_sObject



21
22
23
# File 'lib/resources/aws/aws_billing_report.rb', line 21

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

#zip?Boolean

Returns:

  • (Boolean)


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

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