You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Resources::DefinitionGiven a resource definition document, a Definition can build a set of related resource classes.
Attribute Summary collapseA new instance of Definition.
Returns a new instance of Definition.
12 13 14 15
# File 'aws-sdk-resources/lib/aws-sdk-resources/definition.rb', line 12 def initialize(definition = {}, options = {}) @source = definition @source_path = options[:source_path] endInstance Method Details #apply(namespace) ⇒ void
This method returns an undefined value.
19 20 21 22 23 24 25 26 27 28 29 30
# File 'aws-sdk-resources/lib/aws-sdk-resources/definition.rb', line 19 def apply(namespace) build_resource_classes(namespace) each_resource_class(namespace) do |resource, definition| define_load(namespace, resource, definition['load']) define_actions(namespace, resource, definition['actions'] || {}) define_batch_actions(namespace, resource, definition['batchActions'] || {}) define_waiters(namespace, resource, definition['waiters'] || {}) define_has(namespace, resource, definition['has'] || {}) define_has_many(namespace, resource, definition['hasMany'] || {}) define_data_attributes(namespace, resource, definition) end end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4