Class: Aws::RDS::Resource
- Inherits:
-
Object
- Object
- Aws::RDS::Resource
- Defined in:
- gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb
Overview
This class provides a resource oriented interface for RDS. To create a resource object:
resource = Aws::RDS::Resource.new(region: 'us-west-2')
You can supply a client object with custom configuration that will be used for all resource operations.
If you do not pass :client
, a default client will be constructed.
client = Aws::RDS::Client.new(region: 'us-west-2')
resource = Aws::RDS::Resource.new(client: client)
Actions collapse
-
#create_db_cluster(options = {}) ⇒ DBCluster
-
#create_db_cluster_parameter_group(options = {}) ⇒ DBClusterParameterGroup
-
#create_db_instance(options = {}) ⇒ DBInstance
-
#create_db_parameter_group(options = {}) ⇒ DBParameterGroup
-
#create_db_security_group(options = {}) ⇒ DBSecurityGroup
-
#create_db_subnet_group(options = {}) ⇒ DBSubnetGroup
-
#create_event_subscription(options = {}) ⇒ EventSubscription
-
#create_option_group(options = {}) ⇒ OptionGroup
Associations collapse
-
#account_quotas(options = {}) ⇒ AccountQuota::Collection
-
#certificate(id) ⇒ Certificate
-
#certificates(options = {}) ⇒ Certificate::Collection
-
#db_cluster(id) ⇒ DBCluster
-
#db_cluster_parameter_group(name) ⇒ DBClusterParameterGroup
-
#db_cluster_parameter_groups(options = {}) ⇒ DBClusterParameterGroup::Collection
-
#db_clusters(options = {}) ⇒ DBCluster::Collection
-
#db_engine(name) ⇒ DBEngine
-
#db_engine_version(engine_name, version) ⇒ DBEngineVersion
-
#db_engine_versions(options = {}) ⇒ DBEngineVersion::Collection
-
#db_instance(id) ⇒ DBInstance
-
#db_instances(options = {}) ⇒ DBInstance::Collection
-
#db_parameter_group(name) ⇒ DBParameterGroup
-
#db_parameter_group_family(name) ⇒ DBParameterGroupFamily
-
#db_parameter_groups(options = {}) ⇒ DBParameterGroup::Collection
-
#db_security_group(name) ⇒ DBSecurityGroup
-
#db_security_groups(options = {}) ⇒ DBSecurityGroup::Collection
-
#db_snapshots(options = {}) ⇒ DBSnapshot::Collection
-
#db_subnet_group(name) ⇒ DBSubnetGroup
-
#db_subnet_groups(options = {}) ⇒ DBSubnetGroup::Collection
-
#event_category_map(source_type) ⇒ EventCategoryMap
-
#event_category_maps(options = {}) ⇒ EventCategoryMap::Collection
-
#event_subscription(name) ⇒ EventSubscription
-
#event_subscriptions(options = {}) ⇒ EventSubscription::Collection
-
#events(options = {}) ⇒ Event::Collection
-
#option_group(name) ⇒ OptionGroup
-
#option_groups(options = {}) ⇒ OptionGroup::Collection
-
#pending_maintenance_action(target_arn, name) ⇒ PendingMaintenanceAction
-
#reserved_db_instance(id) ⇒ ReservedDBInstance
-
#reserved_db_instances(options = {}) ⇒ ReservedDBInstance::Collection
-
#reserved_db_instances_offering(id) ⇒ ReservedDBInstancesOffering
-
#reserved_db_instances_offerings(options = {}) ⇒ ReservedDBInstancesOffering::Collection
-
#resource_with_pending_maintenance_actions(arn) ⇒ ResourcePendingMaintenanceActionList
-
#resources_with_pending_maintenance_actions(options = {}) ⇒ ResourcePendingMaintenanceActionList::Collection
Instance Method Summary collapse
-
#client ⇒ Client
-
#initialize(options = {}) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
Instance Method Details
#account_quotas(options = {}) ⇒ AccountQuota::Collection
2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2758 def account_quotas( = {}) batches = Enumerator.new do |y| batch = [] resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_account_attributes() end resp.data.account_quotas.each do |a| batch << AccountQuota.new( name: a.account_quota_name, data: a, client: @client ) end y.yield(batch) end AccountQuota::Collection.new(batches) end |
#certificate(id) ⇒ Certificate
2778 2779 2780 2781 2782 2783 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2778 def certificate(id) Certificate.new( id: id, client: @client ) end |
#certificates(options = {}) ⇒ Certificate::Collection
2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2810 def certificates( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_certificates() end resp.each_page do |page| batch = [] page.data.certificates.each do |c| batch << Certificate.new( id: c.certificate_identifier, data: c, client: @client ) end y.yield(batch) end end Certificate::Collection.new(batches) end |
#client ⇒ Client
32 33 34 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 32 def client @client end |
#create_db_cluster(options = {}) ⇒ DBCluster
955 956 957 958 959 960 961 962 963 964 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 955 def create_db_cluster( = {}) resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.create_db_cluster() end DBCluster.new( id: resp.data.db_cluster.db_cluster_identifier, data: resp.data.db_cluster, client: @client ) end |
#create_db_cluster_parameter_group(options = {}) ⇒ DBClusterParameterGroup
1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 1046 def create_db_cluster_parameter_group( = {}) resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.create_db_cluster_parameter_group() end DBClusterParameterGroup.new( name: resp.data.db_cluster_parameter_group.db_cluster_parameter_group_name, data: resp.data.db_cluster_parameter_group, client: @client ) end |
#create_db_instance(options = {}) ⇒ DBInstance
2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2365 def create_db_instance( = {}) resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.create_db_instance() end DBInstance.new( id: resp.data.db_instance.db_instance_identifier, data: resp.data.db_instance, client: @client ) end |
#create_db_parameter_group(options = {}) ⇒ DBParameterGroup
2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2460 def create_db_parameter_group( = {}) resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.create_db_parameter_group() end DBParameterGroup.new( name: resp.data.db_parameter_group.db_parameter_group_name, data: resp.data.db_parameter_group, client: @client ) end |
#create_db_security_group(options = {}) ⇒ DBSecurityGroup
2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2504 def create_db_security_group( = {}) resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.create_db_security_group() end DBSecurityGroup.new( name: resp.data.db_security_group.db_security_group_name, data: resp.data.db_security_group, client: @client ) end |
#create_db_subnet_group(options = {}) ⇒ DBSubnetGroup
2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2550 def create_db_subnet_group( = {}) resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.create_db_subnet_group() end DBSubnetGroup.new( name: resp.data.db_subnet_group.db_subnet_group_name, data: resp.data.db_subnet_group, client: @client ) end |
#create_event_subscription(options = {}) ⇒ EventSubscription
2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2664 def create_event_subscription( = {}) resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.create_event_subscription() end EventSubscription.new( name: resp.data.event_subscription.cust_subscription_id, data: resp.data.event_subscription, client: @client ) end |
#create_option_group(options = {}) ⇒ OptionGroup
2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2740 def create_option_group( = {}) resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.create_option_group() end OptionGroup.new( name: resp.data.option_group.option_group_name, data: resp.data.option_group, client: @client ) end |
#db_cluster(id) ⇒ DBCluster
2832 2833 2834 2835 2836 2837 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2832 def db_cluster(id) DBCluster.new( id: id, client: @client ) end |
#db_cluster_parameter_group(name) ⇒ DBClusterParameterGroup
2841 2842 2843 2844 2845 2846 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2841 def db_cluster_parameter_group(name) DBClusterParameterGroup.new( name: name, client: @client ) end |
#db_cluster_parameter_groups(options = {}) ⇒ DBClusterParameterGroup::Collection
2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2873 def db_cluster_parameter_groups( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_db_cluster_parameter_groups() end resp.each_page do |page| batch = [] page.data.db_cluster_parameter_groups.each do |d| batch << DBClusterParameterGroup.new( name: d.db_cluster_parameter_group_name, data: d, client: @client ) end y.yield(batch) end end DBClusterParameterGroup::Collection.new(batches) end |
#db_clusters(options = {}) ⇒ DBCluster::Collection
2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2944 def db_clusters( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_db_clusters() end resp.each_page do |page| batch = [] page.data.db_clusters.each do |d| batch << DBCluster.new( id: d.db_cluster_identifier, data: d, client: @client ) end y.yield(batch) end end DBCluster::Collection.new(batches) end |
#db_engine(name) ⇒ DBEngine
2966 2967 2968 2969 2970 2971 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2966 def db_engine(name) DBEngine.new( name: name, client: @client ) end |
#db_engine_version(engine_name, version) ⇒ DBEngineVersion
2976 2977 2978 2979 2980 2981 2982 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 2976 def db_engine_version(engine_name, version) DBEngineVersion.new( engine_name: engine_name, version: version, client: @client ) end |
#db_engine_versions(options = {}) ⇒ DBEngineVersion::Collection
3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3121 def db_engine_versions( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_db_engine_versions() end resp.each_page do |page| batch = [] page.data.db_engine_versions.each do |d| batch << DBEngineVersion.new( engine_name: d.engine, version: d.engine_version, data: d, client: @client ) end y.yield(batch) end end DBEngineVersion::Collection.new(batches) end |
#db_instance(id) ⇒ DBInstance
3144 3145 3146 3147 3148 3149 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3144 def db_instance(id) DBInstance.new( id: id, client: @client ) end |
#db_instances(options = {}) ⇒ DBInstance::Collection
3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3199 def db_instances( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_db_instances() end resp.each_page do |page| batch = [] page.data.db_instances.each do |d| batch << DBInstance.new( id: d.db_instance_identifier, data: d, client: @client ) end y.yield(batch) end end DBInstance::Collection.new(batches) end |
#db_parameter_group(name) ⇒ DBParameterGroup
3221 3222 3223 3224 3225 3226 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3221 def db_parameter_group(name) DBParameterGroup.new( name: name, client: @client ) end |
#db_parameter_group_family(name) ⇒ DBParameterGroupFamily
3230 3231 3232 3233 3234 3235 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3230 def db_parameter_group_family(name) DBParameterGroupFamily.new( name: name, client: @client ) end |
#db_parameter_groups(options = {}) ⇒ DBParameterGroup::Collection
3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3261 def db_parameter_groups( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_db_parameter_groups() end resp.each_page do |page| batch = [] page.data.db_parameter_groups.each do |d| batch << DBParameterGroup.new( name: d.db_parameter_group_name, data: d, client: @client ) end y.yield(batch) end end DBParameterGroup::Collection.new(batches) end |
#db_security_group(name) ⇒ DBSecurityGroup
3283 3284 3285 3286 3287 3288 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3283 def db_security_group(name) DBSecurityGroup.new( name: name, client: @client ) end |
#db_security_groups(options = {}) ⇒ DBSecurityGroup::Collection
3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3307 def db_security_groups( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_db_security_groups() end resp.each_page do |page| batch = [] page.data.db_security_groups.each do |d| batch << DBSecurityGroup.new( name: d.db_security_group_name, data: d, client: @client ) end y.yield(batch) end end DBSecurityGroup::Collection.new(batches) end |
#db_snapshots(options = {}) ⇒ DBSnapshot::Collection
3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3440 def db_snapshots( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_db_snapshots() end resp.each_page do |page| batch = [] page.data.db_snapshots.each do |d| batch << DBSnapshot.new( instance_id: d.db_instance_identifier, snapshot_id: d.db_snapshot_identifier, data: d, client: @client ) end y.yield(batch) end end DBSnapshot::Collection.new(batches) end |
#db_subnet_group(name) ⇒ DBSubnetGroup
3463 3464 3465 3466 3467 3468 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3463 def db_subnet_group(name) DBSubnetGroup.new( name: name, client: @client ) end |
#db_subnet_groups(options = {}) ⇒ DBSubnetGroup::Collection
3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3487 def db_subnet_groups( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_db_subnet_groups() end resp.each_page do |page| batch = [] page.data.db_subnet_groups.each do |d| batch << DBSubnetGroup.new( name: d.db_subnet_group_name, data: d, client: @client ) end y.yield(batch) end end DBSubnetGroup::Collection.new(batches) end |
#event_category_map(source_type) ⇒ EventCategoryMap
3509 3510 3511 3512 3513 3514 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3509 def event_category_map(source_type) EventCategoryMap.new( source_type: source_type, client: @client ) end |
#event_category_maps(options = {}) ⇒ EventCategoryMap::Collection
3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3538 def event_category_maps( = {}) batches = Enumerator.new do |y| batch = [] resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_event_categories() end resp.data.event_categories_map_list.each do |e| batch << EventCategoryMap.new( source_type: e.source_type, data: e, client: @client ) end y.yield(batch) end EventCategoryMap::Collection.new(batches) end |
#event_subscription(name) ⇒ EventSubscription
3558 3559 3560 3561 3562 3563 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3558 def event_subscription(name) EventSubscription.new( name: name, client: @client ) end |
#event_subscriptions(options = {}) ⇒ EventSubscription::Collection
3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3583 def event_subscriptions( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_event_subscriptions() end resp.each_page do |page| batch = [] page.data.event_subscriptions_list.each do |e| batch << EventSubscription.new( name: e.cust_subscription_id, data: e, client: @client ) end y.yield(batch) end end EventSubscription::Collection.new(batches) end |
#events(options = {}) ⇒ Event::Collection
3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3684 def events( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_events() end resp.each_page do |page| batch = [] page.data.events.each do |e| batch << Event.new( source_id: e.source_identifier, date: e.date, data: e, client: @client ) end y.yield(batch) end end Event::Collection.new(batches) end |
#option_group(name) ⇒ OptionGroup
3707 3708 3709 3710 3711 3712 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3707 def option_group(name) OptionGroup.new( name: name, client: @client ) end |
#option_groups(options = {}) ⇒ OptionGroup::Collection
3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3769 def option_groups( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_option_groups() end resp.each_page do |page| batch = [] page.data.option_groups_list.each do |o| batch << OptionGroup.new( name: o.option_group_name, data: o, client: @client ) end y.yield(batch) end end OptionGroup::Collection.new(batches) end |
#pending_maintenance_action(target_arn, name) ⇒ PendingMaintenanceAction
3792 3793 3794 3795 3796 3797 3798 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3792 def pending_maintenance_action(target_arn, name) PendingMaintenanceAction.new( target_arn: target_arn, name: name, client: @client ) end |
#reserved_db_instance(id) ⇒ ReservedDBInstance
3802 3803 3804 3805 3806 3807 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3802 def reserved_db_instance(id) ReservedDBInstance.new( id: id, client: @client ) end |
#reserved_db_instances(options = {}) ⇒ ReservedDBInstance::Collection
3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3866 def reserved_db_instances( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_reserved_db_instances() end resp.each_page do |page| batch = [] page.data.reserved_db_instances.each do |r| batch << ReservedDBInstance.new( id: r.reserved_db_instance_id, data: r, client: @client ) end y.yield(batch) end end ReservedDBInstance::Collection.new(batches) end |
#reserved_db_instances_offering(id) ⇒ ReservedDBInstancesOffering
3888 3889 3890 3891 3892 3893 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3888 def reserved_db_instances_offering(id) ReservedDBInstancesOffering.new( id: id, client: @client ) end |
#reserved_db_instances_offerings(options = {}) ⇒ ReservedDBInstancesOffering::Collection
3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3945 def reserved_db_instances_offerings( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_reserved_db_instances_offerings() end resp.each_page do |page| batch = [] page.data.reserved_db_instances_offerings.each do |r| batch << ReservedDBInstancesOffering.new( id: r.reserved_db_instances_offering_id, data: r, client: @client ) end y.yield(batch) end end ReservedDBInstancesOffering::Collection.new(batches) end |
#resource_with_pending_maintenance_actions(arn) ⇒ ResourcePendingMaintenanceActionList
3967 3968 3969 3970 3971 3972 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 3967 def resource_with_pending_maintenance_actions(arn) ResourcePendingMaintenanceActionList.new( arn: arn, client: @client ) end |
#resources_with_pending_maintenance_actions(options = {}) ⇒ ResourcePendingMaintenanceActionList::Collection
4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb', line 4002 def resources_with_pending_maintenance_actions( = {}) batches = Enumerator.new do |y| resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do @client.describe_pending_maintenance_actions() end resp.each_page do |page| batch = [] page.data.pending_maintenance_actions.each do |p| batch << ResourcePendingMaintenanceActionList.new( arn: p.resource_identifier, data: p, client: @client ) end y.yield(batch) end end ResourcePendingMaintenanceActionList::Collection.new(batches) end |