def pending_maintenance_actions(options = {})
      batches = Enumerator.new do |y|
        batch = []
        options = Aws::Util.deep_merge(options, filters: [{
          name: "db-instance-id",
          values: [@id]
        }])
        resp = @client.describe_pending_maintenance_actions(options)
        resp.data.pending_maintenance_actions_0.pending_maintenance_action_details.each do |p|
          batch << PendingMaintenanceAction.new(
            target_arn: resp.data.pending_maintenance_actions[0].resource_identifier,
            name: p.action,
            data: p,
            client: @client
          )
        end
        y.yield(batch)
      end
      PendingMaintenanceAction::Collection.new(batches)
    end
def pending_maintenance_actions(options = {})
      batches = Enumerator.new do |y|
        batch = []
        options = Aws::Util.deep_merge(options, filters: [{
          name: "db-instance-id",
          values: [@id]
        }])
        resp = @client.describe_pending_maintenance_actions(options)
        resp.data.pending_maintenance_actions_0.pending_maintenance_action_details.each do |p|
          batch << PendingMaintenanceAction.new(
            target_arn: resp.data.pending_maintenance_actions[0].resource_identifier,
            name: p.action,
            data: p,
            client: @client
          )
        end
        y.yield(batch)
      end
      PendingMaintenanceAction::Collection.new(batches)
    end
@example Request syntax with placeholder values

   pending_maintenance_actions = db_instance.pending_maintenance_actions({
     resource_identifier: "String",
     filters: [
       {
         name: "String", # required
         values: ["String"], # required
       },
     ],
     marker: "String",
     max_records: 1,
   })
 @param [Hash] options ({})
 @option options [String] :resource_identifier
   The ARN of a resource to return pending maintenance actions for.
 @option options [Array<Types::Filter>] :filters
   A filter that specifies one or more resources to return pending
   maintenance actions for.

   Supported filters:

   * `db-cluster-id` - Accepts DB cluster identifiers and DB cluster
     Amazon Resource Names (ARNs). The results list will only include
     pending maintenance actions for the DB clusters identified by these
     ARNs.

   * `db-instance-id` - Accepts DB instance identifiers and DB instance
     ARNs. The results list will only include pending maintenance actions
     for the DB instances identified by these ARNs.
 @option options [String] :marker
   An optional pagination token provided by a previous
   `DescribePendingMaintenanceActions` request. If this parameter is
   specified, the response includes only records beyond the marker, up to
   a number of records specified by `MaxRecords`.
 @option options [Integer] :max_records
   The maximum number of records to include in the response. If more
   records exist than the specified `MaxRecords` value, a pagination
   token called a marker is included in the response so that the
   remaining results can be retrieved.

   Default: 100

   Constraints: Minimum 20, maximum 100.
 @return [PendingMaintenanceAction::Collection]