class Aws::RDS::DBParameterGroupFamily
def client
-
(Client)
-
def client @client end
def data
-
(EmptyStructure)
-
Other tags:
- Api: - private
def data @data end
def data_loaded?
-
(Boolean)
-
def data_loaded? !!@data end
def engine_default_cluster_parameters(options = {})
-
(Parameter::Collection)
-
Options Hash:
(**options)
-
:marker
(String
) -- -
:max_records
(Integer
) -- -
:filters
(Array
) --
Parameters:
-
options
(Hash
) -- ({})
Other tags:
- Example: Request syntax with placeholder values -
def engine_default_cluster_parameters(options = {}) batches = Enumerator.new do |y| batch = [] options = options.merge(db_parameter_group_family: @name) resp = Aws::Plugins::UserAgent.feature('resource') do @client.describe_engine_default_cluster_parameters(options) end resp.data.engine_defaults.parameters.each do |p| batch << Parameter.new( name: p.parameter_name, data: p, client: @client ) end y.yield(batch) end Parameter::Collection.new(batches) end
def engine_default_parameters(options = {})
-
(Parameter::Collection)
-
Options Hash:
(**options)
-
:filters
(Array
) --
Parameters:
-
options
(Hash
) -- ({})
Other tags:
- Example: Request syntax with placeholder values -
def engine_default_parameters(options = {}) batches = Enumerator.new do |y| options = options.merge(db_parameter_group_family: @name) resp = Aws::Plugins::UserAgent.feature('resource') do @client.describe_engine_default_parameters(options) end resp.each_page do |page| batch = [] page.data.engine_defaults.parameters.each do |p| batch << Parameter.new( name: p.parameter_name, data: p, client: @client ) end y.yield(batch) end end Parameter::Collection.new(batches) end
def extract_name(args, options)
def extract_name(args, options) value = args[0] || options.delete(:name) case value when String then value when nil then raise ArgumentError, "missing required option :name" else msg = "expected :name to be a String, got #{value.class}" raise ArgumentError, msg end end
def identifiers
- Api: - private
Deprecated:
def identifiers { name: @name } end
def initialize(*args)
(**options)
-
:client
(Client
) -- -
:name
(required, String
) -- -
:client
(Client
) --
Overloads:
-
def initialize(options = {})
-
def initialize(name, options = {})
Parameters:
-
name
(String
) --
def initialize(*args) options = Hash === args.last ? args.pop.dup : {} @name = extract_name(args, options) @data = Aws::EmptyStructure.new @client = options.delete(:client) || Client.new(options) @waiter_block_warned = false end
def load
- Api: - private
Raises:
-
(NotImplementedError)
-
def load msg = "#load is not implemented, data only available via enumeration" raise NotImplementedError, msg end
def name
-
(String)
-
def name @name end
def wait_until(options = {}, &block)
-
(Resource)
- if the waiter was successful
Options Hash:
(**options)
-
:before_wait
(Proc
) -- Callback -
:before_attempt
(Proc
) -- Callback -
:delay
(Integer
) -- Delay between each -
:max_attempts
(Integer
) -- Maximum number of
Raises:
-
(NotImplementedError)
- Raised when the resource does not -
(Aws::Waiters::Errors::UnexpectedError)
- Raised when an error is -
(Aws::Waiters::Errors::FailureStateError)
- Raised when the waiter
Other tags:
- Yieldparam: resource - to be used in the waiting condition.
Other tags:
- Note: - The waiting operation is performed on a copy. The original resource
Deprecated:
- Use [Aws::RDS::Client] #wait_until instead
def wait_until(options = {}, &block) self_copy = self.dup attempts = 0 options[:max_attempts] = 10 unless options.key?(:max_attempts) options[:delay] ||= 10 options[:poller] = Proc.new do attempts += 1 if block.call(self_copy) [:success, self_copy] else self_copy.reload unless attempts == options[:max_attempts] :retry end end Aws::Plugins::UserAgent.feature('resource') do Aws::Waiters::Waiter.new(options).wait({}) end end