aws-sdk-rds 1.84.0 → 1.89.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aws-sdk-rds.rb +3 -1
  3. data/lib/aws-sdk-rds/account_quota.rb +2 -0
  4. data/lib/aws-sdk-rds/certificate.rb +2 -0
  5. data/lib/aws-sdk-rds/client.rb +204 -55
  6. data/lib/aws-sdk-rds/client_api.rb +56 -0
  7. data/lib/aws-sdk-rds/customizations.rb +2 -0
  8. data/lib/aws-sdk-rds/customizations/auth_token_generator.rb +2 -0
  9. data/lib/aws-sdk-rds/db_cluster.rb +59 -25
  10. data/lib/aws-sdk-rds/db_cluster_parameter_group.rb +2 -0
  11. data/lib/aws-sdk-rds/db_cluster_snapshot.rb +6 -0
  12. data/lib/aws-sdk-rds/db_engine.rb +2 -0
  13. data/lib/aws-sdk-rds/db_engine_version.rb +2 -0
  14. data/lib/aws-sdk-rds/db_instance.rb +70 -50
  15. data/lib/aws-sdk-rds/db_log_file.rb +2 -0
  16. data/lib/aws-sdk-rds/db_parameter_group.rb +2 -0
  17. data/lib/aws-sdk-rds/db_parameter_group_family.rb +2 -0
  18. data/lib/aws-sdk-rds/db_security_group.rb +2 -0
  19. data/lib/aws-sdk-rds/db_snapshot.rb +18 -9
  20. data/lib/aws-sdk-rds/db_snapshot_attribute.rb +2 -0
  21. data/lib/aws-sdk-rds/db_subnet_group.rb +2 -0
  22. data/lib/aws-sdk-rds/errors.rb +2 -0
  23. data/lib/aws-sdk-rds/event.rb +2 -0
  24. data/lib/aws-sdk-rds/event_category_map.rb +2 -0
  25. data/lib/aws-sdk-rds/event_subscription.rb +2 -0
  26. data/lib/aws-sdk-rds/option_group.rb +2 -0
  27. data/lib/aws-sdk-rds/option_group_option.rb +2 -0
  28. data/lib/aws-sdk-rds/parameter.rb +2 -0
  29. data/lib/aws-sdk-rds/pending_maintenance_action.rb +2 -0
  30. data/lib/aws-sdk-rds/plugins/cross_region_copying.rb +2 -0
  31. data/lib/aws-sdk-rds/reserved_db_instance.rb +2 -0
  32. data/lib/aws-sdk-rds/reserved_db_instances_offering.rb +2 -0
  33. data/lib/aws-sdk-rds/resource.rb +54 -77
  34. data/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb +2 -0
  35. data/lib/aws-sdk-rds/types.rb +502 -51
  36. data/lib/aws-sdk-rds/waiters.rb +2 -0
  37. metadata +4 -4
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -562,6 +564,7 @@ module Aws::RDS
562
564
  VpcSecurityGroupMembership = Shapes::StructureShape.new(name: 'VpcSecurityGroupMembership')
563
565
  VpcSecurityGroupMembershipList = Shapes::ListShape.new(name: 'VpcSecurityGroupMembershipList')
564
566
  VpnDetails = Shapes::StructureShape.new(name: 'VpnDetails')
567
+ WriteForwardingStatus = Shapes::StringShape.new(name: 'WriteForwardingStatus')
565
568
 
566
569
  AccountAttributesMessage.add_member(:account_quotas, Shapes::ShapeRef.new(shape: AccountQuotaList, location_name: "AccountQuotas"))
567
570
  AccountAttributesMessage.struct_class = Types::AccountAttributesMessage
@@ -788,6 +791,7 @@ module Aws::RDS
788
791
  CreateDBClusterMessage.add_member(:copy_tags_to_snapshot, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "CopyTagsToSnapshot"))
789
792
  CreateDBClusterMessage.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "Domain"))
790
793
  CreateDBClusterMessage.add_member(:domain_iam_role_name, Shapes::ShapeRef.new(shape: String, location_name: "DomainIAMRoleName"))
794
+ CreateDBClusterMessage.add_member(:enable_global_write_forwarding, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "EnableGlobalWriteForwarding"))
791
795
  CreateDBClusterMessage.add_member(:destination_region, Shapes::ShapeRef.new(shape: String, location_name: "DestinationRegion", metadata: {"documented"=>false}))
792
796
  CreateDBClusterMessage.add_member(:source_region, Shapes::ShapeRef.new(shape: String, location_name: "SourceRegion"))
793
797
  CreateDBClusterMessage.struct_class = Types::CreateDBClusterMessage
@@ -1053,6 +1057,8 @@ module Aws::RDS
1053
1057
  DBCluster.add_member(:copy_tags_to_snapshot, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "CopyTagsToSnapshot"))
1054
1058
  DBCluster.add_member(:cross_account_clone, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "CrossAccountClone"))
1055
1059
  DBCluster.add_member(:domain_memberships, Shapes::ShapeRef.new(shape: DomainMembershipList, location_name: "DomainMemberships"))
1060
+ DBCluster.add_member(:global_write_forwarding_status, Shapes::ShapeRef.new(shape: WriteForwardingStatus, location_name: "GlobalWriteForwardingStatus"))
1061
+ DBCluster.add_member(:global_write_forwarding_requested, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "GlobalWriteForwardingRequested"))
1056
1062
  DBCluster.struct_class = Types::DBCluster
1057
1063
 
1058
1064
  DBClusterAlreadyExistsFault.struct_class = Types::DBClusterAlreadyExistsFault
@@ -2096,6 +2102,7 @@ module Aws::RDS
2096
2102
  GlobalClusterMember.add_member(:db_cluster_arn, Shapes::ShapeRef.new(shape: String, location_name: "DBClusterArn"))
2097
2103
  GlobalClusterMember.add_member(:readers, Shapes::ShapeRef.new(shape: ReadersArnList, location_name: "Readers"))
2098
2104
  GlobalClusterMember.add_member(:is_writer, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsWriter"))
2105
+ GlobalClusterMember.add_member(:global_write_forwarding_status, Shapes::ShapeRef.new(shape: WriteForwardingStatus, location_name: "GlobalWriteForwardingStatus"))
2099
2106
  GlobalClusterMember.struct_class = Types::GlobalClusterMember
2100
2107
 
2101
2108
  GlobalClusterMemberList.member = Shapes::ShapeRef.new(shape: GlobalClusterMember, location_name: "GlobalClusterMember")
@@ -2260,6 +2267,7 @@ module Aws::RDS
2260
2267
  ModifyDBClusterMessage.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "DeletionProtection"))
2261
2268
  ModifyDBClusterMessage.add_member(:enable_http_endpoint, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "EnableHttpEndpoint"))
2262
2269
  ModifyDBClusterMessage.add_member(:copy_tags_to_snapshot, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "CopyTagsToSnapshot"))
2270
+ ModifyDBClusterMessage.add_member(:enable_global_write_forwarding, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "EnableGlobalWriteForwarding"))
2263
2271
  ModifyDBClusterMessage.struct_class = Types::ModifyDBClusterMessage
2264
2272
 
2265
2273
  ModifyDBClusterParameterGroupMessage.add_member(:db_cluster_parameter_group_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DBClusterParameterGroupName"))
@@ -3768,6 +3776,12 @@ module Aws::RDS
3768
3776
  o.input = Shapes::ShapeRef.new(shape: DescribeCertificatesMessage)
3769
3777
  o.output = Shapes::ShapeRef.new(shape: CertificateMessage)
3770
3778
  o.errors << Shapes::ShapeRef.new(shape: CertificateNotFoundFault)
3779
+ o[:pager] = Aws::Pager.new(
3780
+ limit_key: "max_records",
3781
+ tokens: {
3782
+ "marker" => "marker"
3783
+ }
3784
+ )
3771
3785
  end)
3772
3786
 
3773
3787
  api.add_operation(:describe_custom_availability_zones, Seahorse::Model::Operation.new.tap do |o|
@@ -3793,6 +3807,12 @@ module Aws::RDS
3793
3807
  o.output = Shapes::ShapeRef.new(shape: DBClusterBacktrackMessage)
3794
3808
  o.errors << Shapes::ShapeRef.new(shape: DBClusterNotFoundFault)
3795
3809
  o.errors << Shapes::ShapeRef.new(shape: DBClusterBacktrackNotFoundFault)
3810
+ o[:pager] = Aws::Pager.new(
3811
+ limit_key: "max_records",
3812
+ tokens: {
3813
+ "marker" => "marker"
3814
+ }
3815
+ )
3796
3816
  end)
3797
3817
 
3798
3818
  api.add_operation(:describe_db_cluster_endpoints, Seahorse::Model::Operation.new.tap do |o|
@@ -3802,6 +3822,12 @@ module Aws::RDS
3802
3822
  o.input = Shapes::ShapeRef.new(shape: DescribeDBClusterEndpointsMessage)
3803
3823
  o.output = Shapes::ShapeRef.new(shape: DBClusterEndpointMessage)
3804
3824
  o.errors << Shapes::ShapeRef.new(shape: DBClusterNotFoundFault)
3825
+ o[:pager] = Aws::Pager.new(
3826
+ limit_key: "max_records",
3827
+ tokens: {
3828
+ "marker" => "marker"
3829
+ }
3830
+ )
3805
3831
  end)
3806
3832
 
3807
3833
  api.add_operation(:describe_db_cluster_parameter_groups, Seahorse::Model::Operation.new.tap do |o|
@@ -3811,6 +3837,12 @@ module Aws::RDS
3811
3837
  o.input = Shapes::ShapeRef.new(shape: DescribeDBClusterParameterGroupsMessage)
3812
3838
  o.output = Shapes::ShapeRef.new(shape: DBClusterParameterGroupsMessage)
3813
3839
  o.errors << Shapes::ShapeRef.new(shape: DBParameterGroupNotFoundFault)
3840
+ o[:pager] = Aws::Pager.new(
3841
+ limit_key: "max_records",
3842
+ tokens: {
3843
+ "marker" => "marker"
3844
+ }
3845
+ )
3814
3846
  end)
3815
3847
 
3816
3848
  api.add_operation(:describe_db_cluster_parameters, Seahorse::Model::Operation.new.tap do |o|
@@ -3820,6 +3852,12 @@ module Aws::RDS
3820
3852
  o.input = Shapes::ShapeRef.new(shape: DescribeDBClusterParametersMessage)
3821
3853
  o.output = Shapes::ShapeRef.new(shape: DBClusterParameterGroupDetails)
3822
3854
  o.errors << Shapes::ShapeRef.new(shape: DBParameterGroupNotFoundFault)
3855
+ o[:pager] = Aws::Pager.new(
3856
+ limit_key: "max_records",
3857
+ tokens: {
3858
+ "marker" => "marker"
3859
+ }
3860
+ )
3823
3861
  end)
3824
3862
 
3825
3863
  api.add_operation(:describe_db_cluster_snapshot_attributes, Seahorse::Model::Operation.new.tap do |o|
@@ -3838,6 +3876,12 @@ module Aws::RDS
3838
3876
  o.input = Shapes::ShapeRef.new(shape: DescribeDBClusterSnapshotsMessage)
3839
3877
  o.output = Shapes::ShapeRef.new(shape: DBClusterSnapshotMessage)
3840
3878
  o.errors << Shapes::ShapeRef.new(shape: DBClusterSnapshotNotFoundFault)
3879
+ o[:pager] = Aws::Pager.new(
3880
+ limit_key: "max_records",
3881
+ tokens: {
3882
+ "marker" => "marker"
3883
+ }
3884
+ )
3841
3885
  end)
3842
3886
 
3843
3887
  api.add_operation(:describe_db_clusters, Seahorse::Model::Operation.new.tap do |o|
@@ -4202,6 +4246,12 @@ module Aws::RDS
4202
4246
  o.input = Shapes::ShapeRef.new(shape: DescribePendingMaintenanceActionsMessage)
4203
4247
  o.output = Shapes::ShapeRef.new(shape: PendingMaintenanceActionsMessage)
4204
4248
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundFault)
4249
+ o[:pager] = Aws::Pager.new(
4250
+ limit_key: "max_records",
4251
+ tokens: {
4252
+ "marker" => "marker"
4253
+ }
4254
+ )
4205
4255
  end)
4206
4256
 
4207
4257
  api.add_operation(:describe_reserved_db_instances, Seahorse::Model::Operation.new.tap do |o|
@@ -4240,6 +4290,12 @@ module Aws::RDS
4240
4290
  o.http_request_uri = "/"
4241
4291
  o.input = Shapes::ShapeRef.new(shape: DescribeSourceRegionsMessage)
4242
4292
  o.output = Shapes::ShapeRef.new(shape: SourceRegionMessage)
4293
+ o[:pager] = Aws::Pager.new(
4294
+ limit_key: "max_records",
4295
+ tokens: {
4296
+ "marker" => "marker"
4297
+ }
4298
+ )
4243
4299
  end)
4244
4300
 
4245
4301
  api.add_operation(:describe_valid_db_instance_modifications, Seahorse::Model::Operation.new.tap do |o|
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # customizations to generated classes
2
4
  require 'aws-sdk-rds/customizations/auth_token_generator'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'aws-sigv4'
2
4
 
3
5
  module Aws
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -438,6 +440,24 @@ module Aws::RDS
438
440
  data[:domain_memberships]
439
441
  end
440
442
 
443
+ # Specifies whether a secondary cluster in an Aurora global database has
444
+ # write forwarding enabled, not enabled, or is in the process of
445
+ # enabling it.
446
+ # @return [String]
447
+ def global_write_forwarding_status
448
+ data[:global_write_forwarding_status]
449
+ end
450
+
451
+ # Specifies whether you have requested to enable write forwarding for a
452
+ # secondary cluster in an Aurora global database. Because write
453
+ # forwarding takes time to enable, check the value of
454
+ # `GlobalWriteForwardingStatus` to confirm that the request has
455
+ # completed before using the write forwarding feature for this cluster.
456
+ # @return [Boolean]
457
+ def global_write_forwarding_requested
458
+ data[:global_write_forwarding_requested]
459
+ end
460
+
441
461
  # @!endgroup
442
462
 
443
463
  # @return [Client]
@@ -617,6 +637,7 @@ module Aws::RDS
617
637
  # copy_tags_to_snapshot: false,
618
638
  # domain: "String",
619
639
  # domain_iam_role_name: "String",
640
+ # enable_global_write_forwarding: false,
620
641
  # source_region: "String",
621
642
  # })
622
643
  # @param [Hash] options ({})
@@ -866,6 +887,10 @@ module Aws::RDS
866
887
  # The target backtrack window, in seconds. To disable backtracking, set
867
888
  # this value to 0.
868
889
  #
890
+ # <note markdown="1"> Currently, Backtrack is only supported for Aurora MySQL DB clusters.
891
+ #
892
+ # </note>
893
+ #
869
894
  # Default: 0
870
895
  #
871
896
  # Constraints:
@@ -954,6 +979,13 @@ module Aws::RDS
954
979
  # @option options [String] :domain_iam_role_name
955
980
  # Specify the name of the IAM role to be used when making API calls to
956
981
  # the Directory Service.
982
+ # @option options [Boolean] :enable_global_write_forwarding
983
+ # A value that indicates whether to enable write operations to be
984
+ # forwarded from this cluster to the primary cluster in an Aurora global
985
+ # database. The resulting changes are replicated back to this cluster.
986
+ # This parameter only applies to DB clusters that are secondary clusters
987
+ # in an Aurora global database. By default, Aurora disallows write
988
+ # operations for secondary clusters.
957
989
  # @option options [String] :destination_region
958
990
  # @option options [String] :source_region
959
991
  # The source region of the snapshot. This is only needed when the
@@ -1111,6 +1143,7 @@ module Aws::RDS
1111
1143
  # deletion_protection: false,
1112
1144
  # enable_http_endpoint: false,
1113
1145
  # copy_tags_to_snapshot: false,
1146
+ # enable_global_write_forwarding: false,
1114
1147
  # })
1115
1148
  # @param [Hash] options ({})
1116
1149
  # @option options [String] :new_db_cluster_identifier
@@ -1238,6 +1271,10 @@ module Aws::RDS
1238
1271
  # The target backtrack window, in seconds. To disable backtracking, set
1239
1272
  # this value to 0.
1240
1273
  #
1274
+ # <note markdown="1"> Currently, Backtrack is only supported for Aurora MySQL DB clusters.
1275
+ #
1276
+ # </note>
1277
+ #
1241
1278
  # Default: 0
1242
1279
  #
1243
1280
  # Constraints:
@@ -1331,6 +1368,13 @@ module Aws::RDS
1331
1368
  # @option options [Boolean] :copy_tags_to_snapshot
1332
1369
  # A value that indicates whether to copy all tags from the DB cluster to
1333
1370
  # snapshots of the DB cluster. The default is not to copy them.
1371
+ # @option options [Boolean] :enable_global_write_forwarding
1372
+ # A value that indicates whether to enable write operations to be
1373
+ # forwarded from this cluster to the primary cluster in an Aurora global
1374
+ # database. The resulting changes are replicated back to this cluster.
1375
+ # This parameter only applies to DB clusters that are secondary clusters
1376
+ # in an Aurora global database. By default, Aurora disallows write
1377
+ # operations for secondary clusters.
1334
1378
  # @return [DBCluster]
1335
1379
  def modify(options = {})
1336
1380
  options = options.merge(db_cluster_identifier: @id)
@@ -1488,6 +1532,10 @@ module Aws::RDS
1488
1532
  # The target backtrack window, in seconds. To disable backtracking, set
1489
1533
  # this value to 0.
1490
1534
  #
1535
+ # <note markdown="1"> Currently, Backtrack is only supported for Aurora MySQL DB clusters.
1536
+ #
1537
+ # </note>
1538
+ #
1491
1539
  # Default: 0
1492
1540
  #
1493
1541
  # Constraints:
@@ -1673,8 +1721,6 @@ module Aws::RDS
1673
1721
  # values: ["String"], # required
1674
1722
  # },
1675
1723
  # ],
1676
- # max_records: 1,
1677
- # marker: "String",
1678
1724
  # include_shared: false,
1679
1725
  # include_public: false,
1680
1726
  # })
@@ -1731,20 +1777,6 @@ module Aws::RDS
1731
1777
  # * `snapshot-type` - Accepts types of DB cluster snapshots.
1732
1778
  #
1733
1779
  # * `engine` - Accepts names of database engines.
1734
- # @option options [Integer] :max_records
1735
- # The maximum number of records to include in the response. If more
1736
- # records exist than the specified `MaxRecords` value, a pagination
1737
- # token called a marker is included in the response so you can retrieve
1738
- # the remaining results.
1739
- #
1740
- # Default: 100
1741
- #
1742
- # Constraints: Minimum 20, maximum 100.
1743
- # @option options [String] :marker
1744
- # An optional pagination token provided by a previous
1745
- # `DescribeDBClusterSnapshots` request. If this parameter is specified,
1746
- # the response includes only records beyond the marker, up to the value
1747
- # specified by `MaxRecords`.
1748
1780
  # @option options [Boolean] :include_shared
1749
1781
  # A value that indicates whether to include shared manual DB cluster
1750
1782
  # snapshots from other AWS accounts that this AWS account has been given
@@ -1764,18 +1796,20 @@ module Aws::RDS
1764
1796
  # @return [DBClusterSnapshot::Collection]
1765
1797
  def snapshots(options = {})
1766
1798
  batches = Enumerator.new do |y|
1767
- batch = []
1768
1799
  options = options.merge(db_cluster_identifier: @id)
1769
1800
  resp = @client.describe_db_cluster_snapshots(options)
1770
- resp.data.db_cluster_snapshots.each do |d|
1771
- batch << DBClusterSnapshot.new(
1772
- cluster_id: @id,
1773
- snapshot_id: d.db_cluster_snapshot_identifier,
1774
- data: d,
1775
- client: @client
1776
- )
1801
+ resp.each_page do |page|
1802
+ batch = []
1803
+ page.data.db_cluster_snapshots.each do |d|
1804
+ batch << DBClusterSnapshot.new(
1805
+ cluster_id: @id,
1806
+ snapshot_id: d.db_cluster_snapshot_identifier,
1807
+ data: d,
1808
+ client: @client
1809
+ )
1810
+ end
1811
+ y.yield(batch)
1777
1812
  end
1778
- y.yield(batch)
1779
1813
  end
1780
1814
  DBClusterSnapshot::Collection.new(batches)
1781
1815
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -613,6 +615,10 @@ module Aws::RDS
613
615
  # The target backtrack window, in seconds. To disable backtracking, set
614
616
  # this value to 0.
615
617
  #
618
+ # <note markdown="1"> Currently, Backtrack is only supported for Aurora MySQL DB clusters.
619
+ #
620
+ # </note>
621
+ #
616
622
  # Default: 0
617
623
  #
618
624
  # Constraints:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -255,11 +257,19 @@ module Aws::RDS
255
257
  data[:secondary_availability_zone]
256
258
  end
257
259
 
258
- # Specifies the accessibility options for the DB instance. A value of
259
- # true specifies an Internet-facing instance with a publicly resolvable
260
- # DNS name, which resolves to a public IP address. A value of false
261
- # specifies an internal instance with a DNS name that resolves to a
262
- # private IP address.
260
+ # Specifies the accessibility options for the DB instance.
261
+ #
262
+ # When the DB instance is publicly accessible, its DNS endpoint resolves
263
+ # to the private IP address from within the DB instance's VPC, and to
264
+ # the public IP address from outside of the DB instance's VPC. Access
265
+ # to the DB instance is ultimately controlled by the security group it
266
+ # uses, and that public access is not permitted if the security group
267
+ # assigned to the DB instance doesn't permit it.
268
+ #
269
+ # When the DB instance isn't publicly accessible, it is an internal DB
270
+ # instance with a DNS name that resolves to a private IP address.
271
+ #
272
+ # For more information, see CreateDBInstance.
263
273
  # @return [Boolean]
264
274
  def publicly_accessible
265
275
  data[:publicly_accessible]
@@ -1241,11 +1251,16 @@ module Aws::RDS
1241
1251
  # more information, see `CreateDBCluster`.
1242
1252
  # @option options [Boolean] :publicly_accessible
1243
1253
  # A value that indicates whether the DB instance is publicly accessible.
1244
- # When the DB instance is publicly accessible, it is an Internet-facing
1245
- # instance with a publicly resolvable DNS name, which resolves to a
1246
- # public IP address. When the DB instance isn't publicly accessible, it
1247
- # is an internal instance with a DNS name that resolves to a private IP
1248
- # address.
1254
+ #
1255
+ # When the DB instance is publicly accessible, its DNS endpoint resolves
1256
+ # to the private IP address from within the DB instance's VPC, and to
1257
+ # the public IP address from outside of the DB instance's VPC. Access
1258
+ # to the DB instance is ultimately controlled by the security group it
1259
+ # uses, and that public access is not permitted if the security group
1260
+ # assigned to the DB instance doesn't permit it.
1261
+ #
1262
+ # When the DB instance isn't publicly accessible, it is an internal DB
1263
+ # instance with a DNS name that resolves to a private IP address.
1249
1264
  #
1250
1265
  # Default: The default behavior varies depending on whether
1251
1266
  # `DBSubnetGroupName` is specified.
@@ -1608,11 +1623,18 @@ module Aws::RDS
1608
1623
  # * Can't end with a hyphen or contain two consecutive hyphens
1609
1624
  # @option options [Boolean] :publicly_accessible
1610
1625
  # A value that indicates whether the DB instance is publicly accessible.
1611
- # When the DB instance is publicly accessible, it is an Internet-facing
1612
- # instance with a publicly resolvable DNS name, which resolves to a
1613
- # public IP address. When the DB instance isn't publicly accessible, it
1614
- # is an internal instance with a DNS name that resolves to a private IP
1615
- # address. For more information, see CreateDBInstance.
1626
+ #
1627
+ # When the DB instance is publicly accessible, its DNS endpoint resolves
1628
+ # to the private IP address from within the DB instance's VPC, and to
1629
+ # the public IP address from outside of the DB instance's VPC. Access
1630
+ # to the DB instance is ultimately controlled by the security group it
1631
+ # uses, and that public access is not permitted if the security group
1632
+ # assigned to the DB instance doesn't permit it.
1633
+ #
1634
+ # When the DB instance isn't publicly accessible, it is an internal DB
1635
+ # instance with a DNS name that resolves to a private IP address.
1636
+ #
1637
+ # For more information, see CreateDBInstance.
1616
1638
  # @option options [Array<Types::Tag>] :tags
1617
1639
  # A list of tags. For more information, see [Tagging Amazon RDS
1618
1640
  # Resources][1] in the *Amazon RDS User Guide.*
@@ -2455,11 +2477,16 @@ module Aws::RDS
2455
2477
  # Valid values: `1150-65535`
2456
2478
  # @option options [Boolean] :publicly_accessible
2457
2479
  # A value that indicates whether the DB instance is publicly accessible.
2458
- # When the DB instance is publicly accessible, it is an Internet-facing
2459
- # instance with a publicly resolvable DNS name, which resolves to a
2460
- # public IP address. When the DB instance isn't publicly accessible, it
2461
- # is an internal instance with a DNS name that resolves to a private IP
2462
- # address.
2480
+ #
2481
+ # When the DB instance is publicly accessible, its DNS endpoint resolves
2482
+ # to the private IP address from within the DB instance's VPC, and to
2483
+ # the public IP address from outside of the DB instance's VPC. Access
2484
+ # to the DB instance is ultimately controlled by the security group it
2485
+ # uses, and that public access is not permitted if the security group
2486
+ # assigned to the DB instance doesn't permit it.
2487
+ #
2488
+ # When the DB instance isn't publicly accessible, it is an internal DB
2489
+ # instance with a DNS name that resolves to a private IP address.
2463
2490
  #
2464
2491
  # `PubliclyAccessible` only applies to DB instances in a VPC. The DB
2465
2492
  # instance must be part of a public subnet and `PubliclyAccessible` must
@@ -2788,11 +2815,18 @@ module Aws::RDS
2788
2815
  # DB instance is a Multi-AZ deployment.
2789
2816
  # @option options [Boolean] :publicly_accessible
2790
2817
  # A value that indicates whether the DB instance is publicly accessible.
2791
- # When the DB instance is publicly accessible, it is an Internet-facing
2792
- # instance with a publicly resolvable DNS name, which resolves to a
2793
- # public IP address. When the DB instance isn't publicly accessible, it
2794
- # is an internal instance with a DNS name that resolves to a private IP
2795
- # address. For more information, see CreateDBInstance.
2818
+ #
2819
+ # When the DB instance is publicly accessible, its DNS endpoint resolves
2820
+ # to the private IP address from within the DB instance's VPC, and to
2821
+ # the public IP address from outside of the DB instance's VPC. Access
2822
+ # to the DB instance is ultimately controlled by the security group it
2823
+ # uses, and that public access is not permitted if the security group
2824
+ # assigned to the DB instance doesn't permit it.
2825
+ #
2826
+ # When the DB instance isn't publicly accessible, it is an internal DB
2827
+ # instance with a DNS name that resolves to a private IP address.
2828
+ #
2829
+ # For more information, see CreateDBInstance.
2796
2830
  # @option options [Boolean] :auto_minor_version_upgrade
2797
2831
  # A value that indicates whether minor version upgrades are applied
2798
2832
  # automatically to the DB instance during the maintenance window.
@@ -3190,8 +3224,6 @@ module Aws::RDS
3190
3224
  # values: ["String"], # required
3191
3225
  # },
3192
3226
  # ],
3193
- # marker: "String",
3194
- # max_records: 1,
3195
3227
  # })
3196
3228
  # @param [Hash] options ({})
3197
3229
  # @option options [String] :resource_identifier
@@ -3210,38 +3242,26 @@ module Aws::RDS
3210
3242
  # * `db-instance-id` - Accepts DB instance identifiers and DB instance
3211
3243
  # ARNs. The results list will only include pending maintenance actions
3212
3244
  # for the DB instances identified by these ARNs.
3213
- # @option options [String] :marker
3214
- # An optional pagination token provided by a previous
3215
- # `DescribePendingMaintenanceActions` request. If this parameter is
3216
- # specified, the response includes only records beyond the marker, up to
3217
- # a number of records specified by `MaxRecords`.
3218
- # @option options [Integer] :max_records
3219
- # The maximum number of records to include in the response. If more
3220
- # records exist than the specified `MaxRecords` value, a pagination
3221
- # token called a marker is included in the response so that you can
3222
- # retrieve the remaining results.
3223
- #
3224
- # Default: 100
3225
- #
3226
- # Constraints: Minimum 20, maximum 100.
3227
3245
  # @return [PendingMaintenanceAction::Collection]
3228
3246
  def pending_maintenance_actions(options = {})
3229
3247
  batches = Enumerator.new do |y|
3230
- batch = []
3231
3248
  options = Aws::Util.deep_merge(options, filters: [{
3232
3249
  name: "db-instance-id",
3233
3250
  values: [@id]
3234
3251
  }])
3235
3252
  resp = @client.describe_pending_maintenance_actions(options)
3236
- resp.data.pending_maintenance_actions_0.pending_maintenance_action_details.each do |p|
3237
- batch << PendingMaintenanceAction.new(
3238
- target_arn: resp.data.pending_maintenance_actions[0].resource_identifier,
3239
- name: p.action,
3240
- data: p,
3241
- client: @client
3242
- )
3253
+ resp.each_page do |page|
3254
+ batch = []
3255
+ page.data.pending_maintenance_actions_0.pending_maintenance_action_details.each do |p|
3256
+ batch << PendingMaintenanceAction.new(
3257
+ target_arn: resp.data.pending_maintenance_actions[0].resource_identifier,
3258
+ name: p.action,
3259
+ data: p,
3260
+ client: @client
3261
+ )
3262
+ end
3263
+ y.yield(batch)
3243
3264
  end
3244
- y.yield(batch)
3245
3265
  end
3246
3266
  PendingMaintenanceAction::Collection.new(batches)
3247
3267
  end