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.



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

def compression
  @compression
end

#formatObject (readonly)

Returns the value of attribute format.



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

def format
  @format
end

#report_nameObject (readonly)

Returns the value of attribute report_name.



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

def report_name
  @report_name
end

#s3_bucketObject (readonly)

Returns the value of attribute s3_bucket.



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

def s3_bucket
  @s3_bucket
end

#s3_prefixObject (readonly)

Returns the value of attribute s3_prefix.



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

def s3_prefix
  @s3_prefix
end

#s3_regionObject (readonly)

Returns the value of attribute s3_region.



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

def s3_region
  @s3_region
end

#time_unitObject (readonly)

Returns the value of attribute time_unit.



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

def time_unit
  @time_unit
end

Instance Method Details

#daily?Boolean

Returns:

  • (Boolean)


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

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

#gzip?Boolean

Returns:

  • (Boolean)


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

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

#hourly?Boolean

Returns:

  • (Boolean)


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

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

#to_sObject



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

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

#zip?Boolean

Returns:

  • (Boolean)


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

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