Class: AwsBackendBase

Inherits:
Object
  • Object
show all
Defined in:
lib/resource_support/aws/aws_backend_base.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inspec = nil) ⇒ AwsBackendBase

Returns a new instance of AwsBackendBase.



5
6
7
# File 'lib/resource_support/aws/aws_backend_base.rb', line 5

def initialize(inspec = nil)
  @aws_transport = inspec ? inspec.backend : nil
end

Class Attribute Details

.aws_client_classObject

Returns the value of attribute aws_client_class.



3
4
5
# File 'lib/resource_support/aws/aws_backend_base.rb', line 3

def aws_client_class
  @aws_client_class
end

Instance Attribute Details

#aws_transportObject (readonly)

Returns the value of attribute aws_transport.



2
3
4
# File 'lib/resource_support/aws/aws_backend_base.rb', line 2

def aws_transport
  @aws_transport
end

Instance Method Details

#aws_service_clientObject



9
10
11
# File 'lib/resource_support/aws/aws_backend_base.rb', line 9

def aws_service_client
  aws_transport.aws_client(self.class.aws_client_class)
end