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.



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

def compression
  @compression
end

#formatObject (readonly)

Returns the value of attribute format.



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

def format
  @format
end

#report_nameObject (readonly)

Returns the value of attribute report_name.



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

def report_name
  @report_name
end

#s3_bucketObject (readonly)

Returns the value of attribute s3_bucket.



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

def s3_bucket
  @s3_bucket
end

#s3_prefixObject (readonly)

Returns the value of attribute s3_prefix.



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

def s3_prefix
  @s3_prefix
end

#s3_regionObject (readonly)

Returns the value of attribute s3_region.



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

def s3_region
  @s3_region
end

#time_unitObject (readonly)

Returns the value of attribute time_unit.



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

def time_unit
  @time_unit
end

Instance Method Details

#daily?Boolean

Returns:

  • (Boolean)


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

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

#gzip?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/resources/aws/aws_billing_report.rb', line 44

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

#hourly?Boolean

Returns:

  • (Boolean)


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

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

#to_sObject



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

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

#zip?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/resources/aws/aws_billing_report.rb', line 40

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