lib/aws-sdk-rds/resource.rb in aws-sdk-rds-1.179.0 vs lib/aws-sdk-rds/resource.rb in aws-sdk-rds-1.180.0
- old
+ new
@@ -635,10 +635,20 @@
# (Multi-AZ DB clusters)
#
# Default: `aurora` (Aurora DB clusters); `io1` (Multi-AZ DB clusters)
#
# Valid for: Aurora DB clusters and Multi-AZ DB clusters
+ #
+ # For more information on storage types for Aurora DB clusters, see
+ # [Storage configurations for Amazon Aurora DB clusters][1]. For more
+ # information on storage types for Multi-AZ DB clusters, see [Settings
+ # for creating Multi-AZ DB clusters][2].
+ #
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type
+ # [2]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings
# @option options [Integer] :iops
# The amount of Provisioned IOPS (input/output operations per second) to
# be initially allocated for each DB instance in the Multi-AZ DB
# cluster.
#
@@ -854,11 +864,13 @@
# @option options [String] :source_region
# The source region of the snapshot. This is only needed when the
# shapshot is encrypted and in a different region.
# @return [DBCluster]
def create_db_cluster(options = {})
- resp = @client.create_db_cluster(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.create_db_cluster(options)
+ end
DBCluster.new(
id: options[:db_cluster][:db_cluster_identifier],
data: resp.data.db_cluster,
client: @client
)
@@ -943,11 +955,13 @@
# The description for the DB cluster parameter group.
# @option options [Array<Types::Tag>] :tags
# Tags to assign to the DB cluster parameter group.
# @return [DBClusterParameterGroup]
def create_db_cluster_parameter_group(options = {})
- resp = @client.create_db_cluster_parameter_group(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.create_db_cluster_parameter_group(options)
+ end
DBClusterParameterGroup.new(
name: resp.data.db_cluster_parameter_group.db_cluster_parameter_group_name,
data: resp.data.db_cluster_parameter_group,
client: @client
)
@@ -2132,11 +2146,13 @@
#
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html
# [2]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.SSL.html
# @return [DBInstance]
def create_db_instance(options = {})
- resp = @client.create_db_instance(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.create_db_instance(options)
+ end
DBInstance.new(
id: resp.data.db_instance.db_instance_identifier,
data: resp.data.db_instance,
client: @client
)
@@ -2223,11 +2239,13 @@
# The description for the DB parameter group.
# @option options [Array<Types::Tag>] :tags
# Tags to assign to the DB parameter group.
# @return [DBParameterGroup]
def create_db_parameter_group(options = {})
- resp = @client.create_db_parameter_group(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.create_db_parameter_group(options)
+ end
DBParameterGroup.new(
name: resp.data.db_parameter_group.db_parameter_group_name,
data: resp.data.db_parameter_group,
client: @client
)
@@ -2265,11 +2283,13 @@
# The description for the DB security group.
# @option options [Array<Types::Tag>] :tags
# Tags to assign to the DB security group.
# @return [DBSecurityGroup]
def create_db_security_group(options = {})
- resp = @client.create_db_security_group(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.create_db_security_group(options)
+ end
DBSecurityGroup.new(
name: resp.data.db_security_group.db_security_group_name,
data: resp.data.db_security_group,
client: @client
)
@@ -2309,11 +2329,13 @@
# The EC2 Subnet IDs for the DB subnet group.
# @option options [Array<Types::Tag>] :tags
# Tags to assign to the DB subnet group.
# @return [DBSubnetGroup]
def create_db_subnet_group(options = {})
- resp = @client.create_db_subnet_group(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.create_db_subnet_group(options)
+ end
DBSubnetGroup.new(
name: resp.data.db_subnet_group.db_subnet_group_name,
data: resp.data.db_subnet_group,
client: @client
)
@@ -2407,11 +2429,13 @@
#
#
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html
# @return [EventSubscription]
def create_event_subscription(options = {})
- resp = @client.create_event_subscription(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.create_event_subscription(options)
+ end
EventSubscription.new(
name: resp.data.event_subscription.cust_subscription_id,
data: resp.data.event_subscription,
client: @client
)
@@ -2478,11 +2502,13 @@
# The description of the option group.
# @option options [Array<Types::Tag>] :tags
# Tags to assign to the option group.
# @return [OptionGroup]
def create_option_group(options = {})
- resp = @client.create_option_group(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.create_option_group(options)
+ end
OptionGroup.new(
name: resp.data.option_group.option_group_name,
data: resp.data.option_group,
client: @client
)
@@ -2496,11 +2522,13 @@
# @param [Hash] options ({})
# @return [AccountQuota::Collection]
def account_quotas(options = {})
batches = Enumerator.new do |y|
batch = []
- resp = @client.describe_account_attributes(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_account_attributes(options)
+ end
resp.data.account_quotas.each do |a|
batch << AccountQuota.new(
name: a.account_quota_name,
data: a,
client: @client
@@ -2545,11 +2573,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [Certificate::Collection]
def certificates(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_certificates(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_certificates(options)
+ end
resp.each_page do |page|
batch = []
page.data.certificates.each do |c|
batch << Certificate.new(
id: c.certificate_identifier,
@@ -2606,11 +2636,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [DBClusterParameterGroup::Collection]
def db_cluster_parameter_groups(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_db_cluster_parameter_groups(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_db_cluster_parameter_groups(options)
+ 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,
@@ -2676,11 +2708,13 @@
# information about clusters shared from other Amazon Web Services
# accounts.
# @return [DBCluster::Collection]
def db_clusters(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_db_clusters(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_db_clusters(options)
+ end
resp.each_page do |page|
batch = []
page.data.db_clusters.each do |d|
batch << DBCluster.new(
id: d.db_cluster_identifier,
@@ -2844,11 +2878,13 @@
# available in the list. The default is to list only available engine
# versions.
# @return [DBEngineVersion::Collection]
def db_engine_versions(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_db_engine_versions(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_db_engine_versions(options)
+ end
resp.each_page do |page|
batch = []
page.data.db_engine_versions.each do |d|
batch << DBEngineVersion.new(
engine_name: d.engine,
@@ -2920,11 +2956,13 @@
# * `engine` - Accepts engine names. The results list only includes
# information about the DB instances for these engines.
# @return [DBInstance::Collection]
def db_instances(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_db_instances(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_db_instances(options)
+ end
resp.each_page do |page|
batch = []
page.data.db_instances.each do |d|
batch << DBInstance.new(
id: d.db_instance_identifier,
@@ -2980,11 +3018,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [DBParameterGroup::Collection]
def db_parameter_groups(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_db_parameter_groups(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_db_parameter_groups(options)
+ end
resp.each_page do |page|
batch = []
page.data.db_parameter_groups.each do |d|
batch << DBParameterGroup.new(
name: d.db_parameter_group_name,
@@ -3024,11 +3064,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [DBSecurityGroup::Collection]
def db_security_groups(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_db_security_groups(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_db_security_groups(options)
+ end
resp.each_page do |page|
batch = []
page.data.db_security_groups.each do |d|
batch << DBSecurityGroup.new(
name: d.db_security_group_name,
@@ -3155,11 +3197,13 @@
# @option options [String] :dbi_resource_id
# A specific DB resource ID to describe.
# @return [DBSnapshot::Collection]
def db_snapshots(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_db_snapshots(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_db_snapshots(options)
+ end
resp.each_page do |page|
batch = []
page.data.db_snapshots.each do |d|
batch << DBSnapshot.new(
instance_id: d.db_instance_identifier,
@@ -3200,11 +3244,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [DBSubnetGroup::Collection]
def db_subnet_groups(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_db_subnet_groups(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_db_subnet_groups(options)
+ end
resp.each_page do |page|
batch = []
page.data.db_subnet_groups.each do |d|
batch << DBSubnetGroup.new(
name: d.db_subnet_group_name,
@@ -3250,11 +3296,13 @@
# This parameter isn't currently supported.
# @return [EventCategoryMap::Collection]
def event_category_maps(options = {})
batches = Enumerator.new do |y|
batch = []
- resp = @client.describe_event_categories(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_event_categories(options)
+ end
resp.data.event_categories_map_list.each do |e|
batch << EventCategoryMap.new(
source_type: e.source_type,
data: e,
client: @client
@@ -3292,11 +3340,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [EventSubscription::Collection]
def event_subscriptions(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_event_subscriptions(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_event_subscriptions(options)
+ end
resp.each_page do |page|
batch = []
page.data.event_subscriptions_list.each do |e|
batch << EventSubscription.new(
name: e.cust_subscription_id,
@@ -3391,11 +3441,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [Event::Collection]
def events(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_events(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_events(options)
+ end
resp.each_page do |page|
batch = []
page.data.events.each do |e|
batch << Event.new(
source_id: e.source_identifier,
@@ -3470,11 +3522,13 @@
# with a specific database engine version. If specified, then EngineName
# must also be specified.
# @return [OptionGroup::Collection]
def option_groups(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_option_groups(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_option_groups(options)
+ end
resp.each_page do |page|
batch = []
page.data.option_groups_list.each do |o|
batch << OptionGroup.new(
name: o.option_group_name,
@@ -3565,11 +3619,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [ReservedDBInstance::Collection]
def reserved_db_instances(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_reserved_db_instances(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_reserved_db_instances(options)
+ end
resp.each_page do |page|
batch = []
page.data.reserved_db_instances.each do |r|
batch << ReservedDBInstance.new(
id: r.reserved_db_instance_id,
@@ -3642,11 +3698,13 @@
# @option options [Array<Types::Filter>] :filters
# This parameter isn't currently supported.
# @return [ReservedDBInstancesOffering::Collection]
def reserved_db_instances_offerings(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_reserved_db_instances_offerings(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_reserved_db_instances_offerings(options)
+ 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,
@@ -3697,10 +3755,12 @@
# ARNs. The results list only includes pending maintenance actions for
# the DB instances identified by these ARNs.
# @return [ResourcePendingMaintenanceActionList::Collection]
def resources_with_pending_maintenance_actions(options = {})
batches = Enumerator.new do |y|
- resp = @client.describe_pending_maintenance_actions(options)
+ resp = Aws::Plugins::UserAgent.feature('resource') do
+ @client.describe_pending_maintenance_actions(options)
+ end
resp.each_page do |page|
batch = []
page.data.pending_maintenance_actions.each do |p|
batch << ResourcePendingMaintenanceActionList.new(
arn: p.resource_identifier,