Module: Aws::Api::ServiceCustomizations Private
- Defined in:
- lib/aws-sdk-core/api/service_customizations.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
-
.apply(client_class) ⇒ void
private
Applies customizations registered for the service client.
-
.customize(endpoint_prefix, &block) ⇒ void
private
Registers a list of customizations to apply during API translation.
Class Method Details
.apply(client_class) ⇒ void
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.
This method returns an undefined value.
Applies customizations registered for the service client. Customizations are registered by the service endpoint prefix.
29 30 31 32 33 34 35 |
# File 'lib/aws-sdk-core/api/service_customizations.rb', line 29 def apply(client_class) apply_protocol_plugin(client_class) endpoint_prefix = client_class.api.('endpointPrefix') @customizations[endpoint_prefix].each do |customization| Customizer.new(client_class).apply(&customization) end end |
.customize(endpoint_prefix, &block) ⇒ void
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.
This method returns an undefined value.
Registers a list of customizations to apply during API translation.
ServiceCustomizations.customize('s3') do
plugin 'MyCustomPlugin'
end
The block is evaluated by an instance of Customizer.
19 20 21 |
# File 'lib/aws-sdk-core/api/service_customizations.rb', line 19 def customize(endpoint_prefix, &block) @customizations[endpoint_prefix] << block end |