aws-sdk-rds 1.171.0 → 1.173.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rds/client.rb +199 -210
- data/lib/aws-sdk-rds/client_api.rb +4 -0
- data/lib/aws-sdk-rds/db_cluster.rb +26 -53
- data/lib/aws-sdk-rds/db_cluster_snapshot.rb +6 -10
- data/lib/aws-sdk-rds/db_instance.rb +5 -5
- data/lib/aws-sdk-rds/db_snapshot.rb +5 -6
- data/lib/aws-sdk-rds/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-rds/endpoint_provider.rb +28 -40
- data/lib/aws-sdk-rds/errors.rb +11 -0
- data/lib/aws-sdk-rds/resource.rb +23 -47
- data/lib/aws-sdk-rds/types.rb +172 -170
- data/lib/aws-sdk-rds.rb +1 -1
- metadata +2 -2
@@ -85,6 +85,7 @@ module Aws::RDS
|
|
85
85
|
CopyOptionGroupResult = Shapes::StructureShape.new(name: 'CopyOptionGroupResult')
|
86
86
|
CreateBlueGreenDeploymentRequest = Shapes::StructureShape.new(name: 'CreateBlueGreenDeploymentRequest')
|
87
87
|
CreateBlueGreenDeploymentResponse = Shapes::StructureShape.new(name: 'CreateBlueGreenDeploymentResponse')
|
88
|
+
CreateCustomDBEngineVersionFault = Shapes::StructureShape.new(name: 'CreateCustomDBEngineVersionFault')
|
88
89
|
CreateCustomDBEngineVersionMessage = Shapes::StructureShape.new(name: 'CreateCustomDBEngineVersionMessage')
|
89
90
|
CreateDBClusterEndpointMessage = Shapes::StructureShape.new(name: 'CreateDBClusterEndpointMessage')
|
90
91
|
CreateDBClusterMessage = Shapes::StructureShape.new(name: 'CreateDBClusterMessage')
|
@@ -877,6 +878,8 @@ module Aws::RDS
|
|
877
878
|
CreateBlueGreenDeploymentResponse.add_member(:blue_green_deployment, Shapes::ShapeRef.new(shape: BlueGreenDeployment, location_name: "BlueGreenDeployment"))
|
878
879
|
CreateBlueGreenDeploymentResponse.struct_class = Types::CreateBlueGreenDeploymentResponse
|
879
880
|
|
881
|
+
CreateCustomDBEngineVersionFault.struct_class = Types::CreateCustomDBEngineVersionFault
|
882
|
+
|
880
883
|
CreateCustomDBEngineVersionMessage.add_member(:engine, Shapes::ShapeRef.new(shape: CustomEngineName, required: true, location_name: "Engine"))
|
881
884
|
CreateCustomDBEngineVersionMessage.add_member(:engine_version, Shapes::ShapeRef.new(shape: CustomEngineVersion, required: true, location_name: "EngineVersion"))
|
882
885
|
CreateCustomDBEngineVersionMessage.add_member(:database_installation_files_s3_bucket_name, Shapes::ShapeRef.new(shape: BucketName, location_name: "DatabaseInstallationFilesS3BucketName"))
|
@@ -3852,6 +3855,7 @@ module Aws::RDS
|
|
3852
3855
|
o.errors << Shapes::ShapeRef.new(shape: CustomDBEngineVersionQuotaExceededFault)
|
3853
3856
|
o.errors << Shapes::ShapeRef.new(shape: Ec2ImagePropertiesNotSupportedFault)
|
3854
3857
|
o.errors << Shapes::ShapeRef.new(shape: KMSKeyNotAccessibleFault)
|
3858
|
+
o.errors << Shapes::ShapeRef.new(shape: CreateCustomDBEngineVersionFault)
|
3855
3859
|
end)
|
3856
3860
|
|
3857
3861
|
api.add_operation(:create_db_cluster, Seahorse::Model::Operation.new.tap do |o|
|
@@ -938,10 +938,7 @@ module Aws::RDS
|
|
938
938
|
#
|
939
939
|
# Valid Values:
|
940
940
|
#
|
941
|
-
# * `aurora`
|
942
|
-
#
|
943
|
-
# * `aurora-mysql` (for MySQL 5.7-compatible and MySQL 8.0-compatible
|
944
|
-
# Aurora)
|
941
|
+
# * `aurora-mysql`
|
945
942
|
#
|
946
943
|
# * `aurora-postgresql`
|
947
944
|
#
|
@@ -953,18 +950,16 @@ module Aws::RDS
|
|
953
950
|
# @option options [String] :engine_version
|
954
951
|
# The version number of the database engine to use.
|
955
952
|
#
|
956
|
-
# To list all of the available engine versions for MySQL
|
957
|
-
#
|
958
|
-
#
|
959
|
-
# `aws rds describe-db-engine-versions --engine aurora --query
|
960
|
-
# "DBEngineVersions[].EngineVersion"`
|
961
|
-
#
|
962
|
-
# To list all of the available engine versions for MySQL 5.7-compatible
|
963
|
-
# and MySQL 8.0-compatible Aurora, use the following command:
|
953
|
+
# To list all of the available engine versions for Aurora MySQL version
|
954
|
+
# 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the
|
955
|
+
# following command:
|
964
956
|
#
|
965
957
|
# `aws rds describe-db-engine-versions --engine aurora-mysql --query
|
966
958
|
# "DBEngineVersions[].EngineVersion"`
|
967
959
|
#
|
960
|
+
# You can supply either `5.7` or `8.0` to use the default engine version
|
961
|
+
# for Aurora MySQL version 2 or version 3, respectively.
|
962
|
+
#
|
968
963
|
# To list all of the available engine versions for Aurora PostgreSQL,
|
969
964
|
# use the following command:
|
970
965
|
#
|
@@ -985,8 +980,8 @@ module Aws::RDS
|
|
985
980
|
#
|
986
981
|
# **Aurora MySQL**
|
987
982
|
#
|
988
|
-
# For information, see [
|
989
|
-
# Aurora User Guide*.
|
983
|
+
# For information, see [Database engine updates for Amazon Aurora
|
984
|
+
# MySQL][1] in the *Amazon Aurora User Guide*.
|
990
985
|
#
|
991
986
|
# **Aurora PostgreSQL**
|
992
987
|
#
|
@@ -995,13 +990,13 @@ module Aws::RDS
|
|
995
990
|
#
|
996
991
|
# **MySQL**
|
997
992
|
#
|
998
|
-
# For information, see [
|
999
|
-
#
|
993
|
+
# For information, see [Amazon RDS for MySQL][3] in the *Amazon RDS User
|
994
|
+
# Guide*.
|
1000
995
|
#
|
1001
996
|
# **PostgreSQL**
|
1002
997
|
#
|
1003
|
-
# For information, see [Amazon RDS for PostgreSQL
|
1004
|
-
#
|
998
|
+
# For information, see [Amazon RDS for PostgreSQL][4] in the *Amazon RDS
|
999
|
+
# User Guide*.
|
1005
1000
|
#
|
1006
1001
|
# Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
1007
1002
|
#
|
@@ -1107,7 +1102,8 @@ module Aws::RDS
|
|
1107
1102
|
# The Amazon Resource Name (ARN) of the source DB instance or DB cluster
|
1108
1103
|
# if this DB cluster is created as a read replica.
|
1109
1104
|
#
|
1110
|
-
# Valid for: Aurora DB clusters
|
1105
|
+
# Valid for: Aurora DB clusters and RDS for PostgreSQL Multi-AZ DB
|
1106
|
+
# clusters
|
1111
1107
|
# @option options [Array<Types::Tag>] :tags
|
1112
1108
|
# Tags to assign to the DB cluster.
|
1113
1109
|
#
|
@@ -1125,7 +1121,7 @@ module Aws::RDS
|
|
1125
1121
|
# different Amazon Web Services account, specify the key ARN or alias
|
1126
1122
|
# ARN.
|
1127
1123
|
#
|
1128
|
-
# When a KMS key isn't specified in `KmsKeyId
|
1124
|
+
# When a KMS key isn't specified in `KmsKeyId`:
|
1129
1125
|
#
|
1130
1126
|
# * If `ReplicationSourceIdentifier` identifies an encrypted source,
|
1131
1127
|
# then Amazon RDS will use the KMS key used to encrypt the source.
|
@@ -1260,40 +1256,23 @@ module Aws::RDS
|
|
1260
1256
|
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch
|
1261
1257
|
# [2]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch
|
1262
1258
|
# @option options [String] :engine_mode
|
1263
|
-
# The DB engine mode of the DB cluster, either `provisioned
|
1264
|
-
# `serverless
|
1265
|
-
#
|
1266
|
-
# The `parallelquery` engine mode isn't required for Aurora MySQL
|
1267
|
-
# version 1.23 and higher 1.x versions, and version 2.09 and higher 2.x
|
1268
|
-
# versions.
|
1269
|
-
#
|
1270
|
-
# The `global` engine mode isn't required for Aurora MySQL version 1.22
|
1271
|
-
# and higher 1.x versions, and `global` engine mode isn't required for
|
1272
|
-
# any 2.x versions.
|
1273
|
-
#
|
1274
|
-
# The `multimaster` engine mode only applies for DB clusters created
|
1275
|
-
# with Aurora MySQL version 5.6.10a.
|
1259
|
+
# The DB engine mode of the DB cluster, either `provisioned` or
|
1260
|
+
# `serverless`.
|
1276
1261
|
#
|
1277
1262
|
# The `serverless` engine mode only applies for Aurora Serverless v1 DB
|
1278
1263
|
# clusters.
|
1279
1264
|
#
|
1280
|
-
# For Aurora PostgreSQL, the `global` engine mode isn't required, and
|
1281
|
-
# both the `parallelquery` and the `multimaster` engine modes currently
|
1282
|
-
# aren't supported.
|
1283
|
-
#
|
1284
1265
|
# Limitations and requirements apply to some DB engine modes. For more
|
1285
1266
|
# information, see the following sections in the *Amazon Aurora User
|
1286
|
-
# Guide
|
1267
|
+
# Guide*:
|
1287
1268
|
#
|
1288
1269
|
# * [Limitations of Aurora Serverless v1][1]
|
1289
1270
|
#
|
1290
1271
|
# * [Requirements for Aurora Serverless v2][2]
|
1291
1272
|
#
|
1292
|
-
# * [Limitations of
|
1273
|
+
# * [Limitations of parallel query][3]
|
1293
1274
|
#
|
1294
|
-
# * [Limitations of Aurora
|
1295
|
-
#
|
1296
|
-
# * [Limitations of Multi-Master Clusters][5]
|
1275
|
+
# * [Limitations of Aurora global databases][4]
|
1297
1276
|
#
|
1298
1277
|
# Valid for: Aurora DB clusters only
|
1299
1278
|
#
|
@@ -1303,7 +1282,6 @@ module Aws::RDS
|
|
1303
1282
|
# [2]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html
|
1304
1283
|
# [3]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysql-parallel-query.html#aurora-mysql-parallel-query-limitations
|
1305
1284
|
# [4]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html#aurora-global-database.limitations
|
1306
|
-
# [5]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-multi-master.html#aurora-multi-master-limitations
|
1307
1285
|
# @option options [Types::ScalingConfiguration] :scaling_configuration
|
1308
1286
|
# For DB clusters in `serverless` DB engine mode, the scaling properties
|
1309
1287
|
# of the DB cluster.
|
@@ -1418,8 +1396,8 @@ module Aws::RDS
|
|
1418
1396
|
# be initially allocated for each DB instance in the Multi-AZ DB
|
1419
1397
|
# cluster.
|
1420
1398
|
#
|
1421
|
-
# For information about valid IOPS values, see [
|
1422
|
-
#
|
1399
|
+
# For information about valid IOPS values, see [Provisioned IOPS
|
1400
|
+
# storage][1] in the *Amazon RDS User Guide*.
|
1423
1401
|
#
|
1424
1402
|
# This setting is required to create a Multi-AZ DB cluster.
|
1425
1403
|
#
|
@@ -2002,14 +1980,9 @@ module Aws::RDS
|
|
2002
1980
|
# applied during the next maintenance window unless `ApplyImmediately`
|
2003
1981
|
# is enabled.
|
2004
1982
|
#
|
2005
|
-
# To list all of the available engine versions for MySQL
|
2006
|
-
#
|
2007
|
-
#
|
2008
|
-
# `aws rds describe-db-engine-versions --engine aurora --query
|
2009
|
-
# "DBEngineVersions[].EngineVersion"`
|
2010
|
-
#
|
2011
|
-
# To list all of the available engine versions for MySQL 5.7-compatible
|
2012
|
-
# and MySQL 8.0-compatible Aurora, use the following command:
|
1983
|
+
# To list all of the available engine versions for Aurora MySQL version
|
1984
|
+
# 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the
|
1985
|
+
# following command:
|
2013
1986
|
#
|
2014
1987
|
# `aws rds describe-db-engine-versions --engine aurora-mysql --query
|
2015
1988
|
# "DBEngineVersions[].EngineVersion"`
|
@@ -586,13 +586,9 @@ module Aws::RDS
|
|
586
586
|
#
|
587
587
|
# Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
588
588
|
# @option options [String] :engine_version
|
589
|
-
# The version of the database engine to use for the new DB cluster.
|
590
|
-
#
|
591
|
-
#
|
592
|
-
# Aurora, use the following command:
|
593
|
-
#
|
594
|
-
# `aws rds describe-db-engine-versions --engine aurora --query
|
595
|
-
# "DBEngineVersions[].EngineVersion"`
|
589
|
+
# The version of the database engine to use for the new DB cluster. If
|
590
|
+
# you don't specify an engine version, the default version for the
|
591
|
+
# database engine in the Amazon Web Services Region is used.
|
596
592
|
#
|
597
593
|
# To list all of the available engine versions for MySQL 5.7-compatible
|
598
594
|
# and MySQL 8.0-compatible Aurora, use the following command:
|
@@ -620,8 +616,8 @@ module Aws::RDS
|
|
620
616
|
#
|
621
617
|
# **Aurora MySQL**
|
622
618
|
#
|
623
|
-
# See [
|
624
|
-
# Guide*.
|
619
|
+
# See [Database engine updates for Amazon Aurora MySQL][1] in the
|
620
|
+
# *Amazon Aurora User Guide*.
|
625
621
|
#
|
626
622
|
# **Aurora PostgreSQL**
|
627
623
|
#
|
@@ -630,7 +626,7 @@ module Aws::RDS
|
|
630
626
|
#
|
631
627
|
# **MySQL**
|
632
628
|
#
|
633
|
-
# See [
|
629
|
+
# See [Amazon RDS for MySQL][3] in the *Amazon RDS User Guide.*
|
634
630
|
#
|
635
631
|
# **PostgreSQL**
|
636
632
|
#
|
@@ -2622,8 +2622,8 @@ module Aws::RDS
|
|
2622
2622
|
# read replica. Follow the allocation rules specified in
|
2623
2623
|
# `CreateDBInstance`.
|
2624
2624
|
#
|
2625
|
-
# <note markdown="1"> Be sure to allocate enough
|
2626
|
-
# create operation can succeed. You can also allocate additional
|
2625
|
+
# <note markdown="1"> Be sure to allocate enough storage for your read replica so that the
|
2626
|
+
# create operation can succeed. You can also allocate additional storage
|
2627
2627
|
# for future growth.
|
2628
2628
|
#
|
2629
2629
|
# </note>
|
@@ -4202,9 +4202,9 @@ module Aws::RDS
|
|
4202
4202
|
# The amount of storage (in gibibytes) to allocate initially for the DB
|
4203
4203
|
# instance. Follow the allocation rules specified in `CreateDBInstance`.
|
4204
4204
|
#
|
4205
|
-
# <note markdown="1"> Be sure to allocate enough
|
4206
|
-
# restore operation can succeed. You can also allocate additional
|
4207
|
-
# for future growth.
|
4205
|
+
# <note markdown="1"> Be sure to allocate enough storage for your new DB instance so that
|
4206
|
+
# the restore operation can succeed. You can also allocate additional
|
4207
|
+
# storage for future growth.
|
4208
4208
|
#
|
4209
4209
|
# </note>
|
4210
4210
|
# @return [DBInstance]
|
@@ -1031,9 +1031,8 @@ module Aws::RDS
|
|
1031
1031
|
# The identifier for the RDS for MySQL Multi-AZ DB cluster snapshot to
|
1032
1032
|
# restore from.
|
1033
1033
|
#
|
1034
|
-
# For more information on Multi-AZ DB clusters, see [ Multi-AZ
|
1035
|
-
# deployments
|
1036
|
-
# RDS User Guide*.
|
1034
|
+
# For more information on Multi-AZ DB clusters, see [ Multi-AZ DB
|
1035
|
+
# cluster deployments][1] in the *Amazon RDS User Guide*.
|
1037
1036
|
#
|
1038
1037
|
# Constraints:
|
1039
1038
|
#
|
@@ -1060,9 +1059,9 @@ module Aws::RDS
|
|
1060
1059
|
# The amount of storage (in gibibytes) to allocate initially for the DB
|
1061
1060
|
# instance. Follow the allocation rules specified in CreateDBInstance.
|
1062
1061
|
#
|
1063
|
-
# <note markdown="1"> Be sure to allocate enough
|
1064
|
-
# restore operation can succeed. You can also allocate additional
|
1065
|
-
# for future growth.
|
1062
|
+
# <note markdown="1"> Be sure to allocate enough storage for your new DB instance so that
|
1063
|
+
# the restore operation can succeed. You can also allocate additional
|
1064
|
+
# storage for future growth.
|
1066
1065
|
#
|
1067
1066
|
# </note>
|
1068
1067
|
# @return [DBInstance]
|
@@ -50,9 +50,6 @@ module Aws::RDS
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,54 +14,42 @@ module Aws::RDS
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
if Aws::Endpoints::Matchers.
|
39
|
-
return Aws::Endpoints::Endpoint.new(url: "https://rds-fips
|
40
|
-
end
|
41
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "rds.us-east-2")
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.us-east-2.amazonaws.com", headers: {}, properties: {})
|
43
|
-
end
|
44
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "rds.us-west-1")
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.us-west-1.amazonaws.com", headers: {}, properties: {})
|
46
|
-
end
|
47
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "rds.us-west-2")
|
48
|
-
return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.us-west-2.amazonaws.com", headers: {}, properties: {})
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
31
|
end
|
50
|
-
|
51
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://rds.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
52
40
|
end
|
53
|
-
|
41
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
54
42
|
end
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
44
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://rds.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
60
48
|
end
|
61
|
-
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://rds.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
62
50
|
end
|
63
|
-
return Aws::Endpoints::Endpoint.new(url: "https://rds.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
64
51
|
end
|
52
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
65
53
|
raise ArgumentError, 'No endpoint could be resolved'
|
66
54
|
|
67
55
|
end
|
data/lib/aws-sdk-rds/errors.rb
CHANGED
@@ -34,6 +34,7 @@ module Aws::RDS
|
|
34
34
|
# * {BlueGreenDeploymentAlreadyExistsFault}
|
35
35
|
# * {BlueGreenDeploymentNotFoundFault}
|
36
36
|
# * {CertificateNotFoundFault}
|
37
|
+
# * {CreateCustomDBEngineVersionFault}
|
37
38
|
# * {CustomAvailabilityZoneNotFoundFault}
|
38
39
|
# * {CustomDBEngineVersionAlreadyExistsFault}
|
39
40
|
# * {CustomDBEngineVersionNotFoundFault}
|
@@ -228,6 +229,16 @@ module Aws::RDS
|
|
228
229
|
end
|
229
230
|
end
|
230
231
|
|
232
|
+
class CreateCustomDBEngineVersionFault < ServiceError
|
233
|
+
|
234
|
+
# @param [Seahorse::Client::RequestContext] context
|
235
|
+
# @param [String] message
|
236
|
+
# @param [Aws::RDS::Types::CreateCustomDBEngineVersionFault] data
|
237
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
238
|
+
super(context, message, data)
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
231
242
|
class CustomAvailabilityZoneNotFoundFault < ServiceError
|
232
243
|
|
233
244
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-rds/resource.rb
CHANGED
@@ -189,10 +189,7 @@ module Aws::RDS
|
|
189
189
|
#
|
190
190
|
# Valid Values:
|
191
191
|
#
|
192
|
-
# * `aurora`
|
193
|
-
#
|
194
|
-
# * `aurora-mysql` (for MySQL 5.7-compatible and MySQL 8.0-compatible
|
195
|
-
# Aurora)
|
192
|
+
# * `aurora-mysql`
|
196
193
|
#
|
197
194
|
# * `aurora-postgresql`
|
198
195
|
#
|
@@ -204,18 +201,16 @@ module Aws::RDS
|
|
204
201
|
# @option options [String] :engine_version
|
205
202
|
# The version number of the database engine to use.
|
206
203
|
#
|
207
|
-
# To list all of the available engine versions for MySQL
|
208
|
-
#
|
209
|
-
#
|
210
|
-
# `aws rds describe-db-engine-versions --engine aurora --query
|
211
|
-
# "DBEngineVersions[].EngineVersion"`
|
212
|
-
#
|
213
|
-
# To list all of the available engine versions for MySQL 5.7-compatible
|
214
|
-
# and MySQL 8.0-compatible Aurora, use the following command:
|
204
|
+
# To list all of the available engine versions for Aurora MySQL version
|
205
|
+
# 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the
|
206
|
+
# following command:
|
215
207
|
#
|
216
208
|
# `aws rds describe-db-engine-versions --engine aurora-mysql --query
|
217
209
|
# "DBEngineVersions[].EngineVersion"`
|
218
210
|
#
|
211
|
+
# You can supply either `5.7` or `8.0` to use the default engine version
|
212
|
+
# for Aurora MySQL version 2 or version 3, respectively.
|
213
|
+
#
|
219
214
|
# To list all of the available engine versions for Aurora PostgreSQL,
|
220
215
|
# use the following command:
|
221
216
|
#
|
@@ -236,8 +231,8 @@ module Aws::RDS
|
|
236
231
|
#
|
237
232
|
# **Aurora MySQL**
|
238
233
|
#
|
239
|
-
# For information, see [
|
240
|
-
# Aurora User Guide*.
|
234
|
+
# For information, see [Database engine updates for Amazon Aurora
|
235
|
+
# MySQL][1] in the *Amazon Aurora User Guide*.
|
241
236
|
#
|
242
237
|
# **Aurora PostgreSQL**
|
243
238
|
#
|
@@ -246,13 +241,13 @@ module Aws::RDS
|
|
246
241
|
#
|
247
242
|
# **MySQL**
|
248
243
|
#
|
249
|
-
# For information, see [
|
250
|
-
#
|
244
|
+
# For information, see [Amazon RDS for MySQL][3] in the *Amazon RDS User
|
245
|
+
# Guide*.
|
251
246
|
#
|
252
247
|
# **PostgreSQL**
|
253
248
|
#
|
254
|
-
# For information, see [Amazon RDS for PostgreSQL
|
255
|
-
#
|
249
|
+
# For information, see [Amazon RDS for PostgreSQL][4] in the *Amazon RDS
|
250
|
+
# User Guide*.
|
256
251
|
#
|
257
252
|
# Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
258
253
|
#
|
@@ -358,7 +353,8 @@ module Aws::RDS
|
|
358
353
|
# The Amazon Resource Name (ARN) of the source DB instance or DB cluster
|
359
354
|
# if this DB cluster is created as a read replica.
|
360
355
|
#
|
361
|
-
# Valid for: Aurora DB clusters
|
356
|
+
# Valid for: Aurora DB clusters and RDS for PostgreSQL Multi-AZ DB
|
357
|
+
# clusters
|
362
358
|
# @option options [Array<Types::Tag>] :tags
|
363
359
|
# Tags to assign to the DB cluster.
|
364
360
|
#
|
@@ -376,7 +372,7 @@ module Aws::RDS
|
|
376
372
|
# different Amazon Web Services account, specify the key ARN or alias
|
377
373
|
# ARN.
|
378
374
|
#
|
379
|
-
# When a KMS key isn't specified in `KmsKeyId
|
375
|
+
# When a KMS key isn't specified in `KmsKeyId`:
|
380
376
|
#
|
381
377
|
# * If `ReplicationSourceIdentifier` identifies an encrypted source,
|
382
378
|
# then Amazon RDS will use the KMS key used to encrypt the source.
|
@@ -511,40 +507,23 @@ module Aws::RDS
|
|
511
507
|
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch
|
512
508
|
# [2]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch
|
513
509
|
# @option options [String] :engine_mode
|
514
|
-
# The DB engine mode of the DB cluster, either `provisioned
|
515
|
-
# `serverless
|
516
|
-
#
|
517
|
-
# The `parallelquery` engine mode isn't required for Aurora MySQL
|
518
|
-
# version 1.23 and higher 1.x versions, and version 2.09 and higher 2.x
|
519
|
-
# versions.
|
520
|
-
#
|
521
|
-
# The `global` engine mode isn't required for Aurora MySQL version 1.22
|
522
|
-
# and higher 1.x versions, and `global` engine mode isn't required for
|
523
|
-
# any 2.x versions.
|
524
|
-
#
|
525
|
-
# The `multimaster` engine mode only applies for DB clusters created
|
526
|
-
# with Aurora MySQL version 5.6.10a.
|
510
|
+
# The DB engine mode of the DB cluster, either `provisioned` or
|
511
|
+
# `serverless`.
|
527
512
|
#
|
528
513
|
# The `serverless` engine mode only applies for Aurora Serverless v1 DB
|
529
514
|
# clusters.
|
530
515
|
#
|
531
|
-
# For Aurora PostgreSQL, the `global` engine mode isn't required, and
|
532
|
-
# both the `parallelquery` and the `multimaster` engine modes currently
|
533
|
-
# aren't supported.
|
534
|
-
#
|
535
516
|
# Limitations and requirements apply to some DB engine modes. For more
|
536
517
|
# information, see the following sections in the *Amazon Aurora User
|
537
|
-
# Guide
|
518
|
+
# Guide*:
|
538
519
|
#
|
539
520
|
# * [Limitations of Aurora Serverless v1][1]
|
540
521
|
#
|
541
522
|
# * [Requirements for Aurora Serverless v2][2]
|
542
523
|
#
|
543
|
-
# * [Limitations of
|
544
|
-
#
|
545
|
-
# * [Limitations of Aurora Global Databases][4]
|
524
|
+
# * [Limitations of parallel query][3]
|
546
525
|
#
|
547
|
-
# * [Limitations of
|
526
|
+
# * [Limitations of Aurora global databases][4]
|
548
527
|
#
|
549
528
|
# Valid for: Aurora DB clusters only
|
550
529
|
#
|
@@ -554,7 +533,6 @@ module Aws::RDS
|
|
554
533
|
# [2]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html
|
555
534
|
# [3]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-mysql-parallel-query.html#aurora-mysql-parallel-query-limitations
|
556
535
|
# [4]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html#aurora-global-database.limitations
|
557
|
-
# [5]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-multi-master.html#aurora-multi-master-limitations
|
558
536
|
# @option options [Types::ScalingConfiguration] :scaling_configuration
|
559
537
|
# For DB clusters in `serverless` DB engine mode, the scaling properties
|
560
538
|
# of the DB cluster.
|
@@ -669,8 +647,8 @@ module Aws::RDS
|
|
669
647
|
# be initially allocated for each DB instance in the Multi-AZ DB
|
670
648
|
# cluster.
|
671
649
|
#
|
672
|
-
# For information about valid IOPS values, see [
|
673
|
-
#
|
650
|
+
# For information about valid IOPS values, see [Provisioned IOPS
|
651
|
+
# storage][1] in the *Amazon RDS User Guide*.
|
674
652
|
#
|
675
653
|
# This setting is required to create a Multi-AZ DB cluster.
|
676
654
|
#
|
@@ -2767,8 +2745,6 @@ module Aws::RDS
|
|
2767
2745
|
#
|
2768
2746
|
# Valid Values:
|
2769
2747
|
#
|
2770
|
-
# * `aurora` (for MySQL 5.6-compatible Aurora)
|
2771
|
-
#
|
2772
2748
|
# * `aurora-mysql` (for MySQL 5.7-compatible and MySQL 8.0-compatible
|
2773
2749
|
# Aurora)
|
2774
2750
|
#
|