You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::RDS::ResourcePendingMaintenanceActionList

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-rds/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb

Defined Under Namespace

Classes: Collection

Associations collapse

Read-Only Attributes collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn, options = {}) ⇒ ResourcePendingMaintenanceActionList #initialize(options = {}) ⇒ ResourcePendingMaintenanceActionList

Returns a new instance of ResourcePendingMaintenanceActionList

Overloads:



19
20
21
22
23
24
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb', line 19

def initialize(*args)
  options = Hash === args.last ? args.pop.dup : {}
  @arn = extract_arn(args, options)
  @data = options.delete(:data)
  @client = options.delete(:client) || Client.new(options)
end

Instance Method Details

#arnString Also known as: resource_identifier

Returns:

  • (String)


29
30
31
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb', line 29

def arn
  @arn
end

#clientClient

Returns:



44
45
46
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb', line 44

def client
  @client
end

#dataTypes::ResourcePendingMaintenanceActions

Returns:

Raises:



59
60
61
62
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb', line 59

def data
  load unless @data
  @data
end

#data_loaded?Boolean

Returns true if this resource is loaded. Accessing attributes or #data on an unloaded resource will trigger a call to #load.

Returns:

  • (Boolean)

    Returns true if this resource is loaded. Accessing attributes or #data on an unloaded resource will trigger a call to #load.



67
68
69
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb', line 67

def data_loaded?
  !!@data
end

#pending_maintenance_action_detailsArray<Types::PendingMaintenanceAction>

A list that provides details about the pending maintenance actions for the resource.



37
38
39
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb', line 37

def pending_maintenance_action_details
  data.pending_maintenance_action_details
end

#pending_maintenance_actionsPendingMaintenanceAction::Collection



74
75
76
77
78
79
80
81
82
83
84
85
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb', line 74

def pending_maintenance_actions
  batch = []
  data.pending_maintenance_action_details.each do |p|
    batch << PendingMaintenanceAction.new(
      target_arn: @arn,
      name: p.action,
      data: p,
      client: @client
    )
  end
  PendingMaintenanceAction::Collection.new([batch], size: batch.size)
end