Class: Aws::Api::Builder Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/api/builder.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build(definition, options = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


8
9
10
11
12
13
14
# File 'lib/aws-sdk-core/api/builder.rb', line 8

def build(definition, options = {})
  if Seahorse::Model::Api === definition
    definition
  else
    Builder.new.build(customize(load_definition(definition)), options)
  end
end

Instance Method Details

#build(definition, options = {}) ⇒ Seahorse::Model::Api

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • definition (Hash)

Returns:


36
37
38
39
40
41
42
43
# File 'lib/aws-sdk-core/api/builder.rb', line 36

def build(definition, options = {})
  api = build_api(definition)
  docs = build_docstring_provider(api, options)
  shapes = build_shape_map(definition, api, docs)
  build_operations(definition, api, shapes, docs)
  build_struct_classes(shapes, options)
  api
end