aws-sdk-rds 1.158.0 → 1.159.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rds/client.rb +43 -3
- data/lib/aws-sdk-rds/client_api.rb +3 -1
- data/lib/aws-sdk-rds/db_instance.rb +6 -0
- data/lib/aws-sdk-rds/db_snapshot.rb +30 -0
- data/lib/aws-sdk-rds/resource.rb +2 -0
- data/lib/aws-sdk-rds/types.rb +47 -2
- data/lib/aws-sdk-rds.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6ccd836131c67f7bccab927d6f2e1a1bcdf4cfa1f18ebdee1e3d6cd03e1e76c
|
4
|
+
data.tar.gz: 3d4e46ae22d3f8ee83727c2fd62f7d079363f77615b19082279265a44e3eecd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1230ccc9f46122d10bbcb2461fbaec11608453afbb1ff9edb6a27eb0e6fb2c6c7c499171f4a7301d25be4db1b1a42af1aac32889a7b2df75f1c66c3803df95c
|
7
|
+
data.tar.gz: a1cd670ddb5c1d98cdbfb0c8c8a22b3b4ef0d9e68c7841ae9054e7b62211a650cedd2353fe21e4e845c356be9e372db0c27a2869eaa1b5b142f55d9ddb10dff5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.159.0 (2022-11-14)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for restoring an RDS Multi-AZ DB cluster snapshot to a Single-AZ deployment or a Multi-AZ DB instance deployment.
|
8
|
+
|
4
9
|
1.158.0 (2022-11-01)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.159.0
|
data/lib/aws-sdk-rds/client.rb
CHANGED
@@ -4520,6 +4520,8 @@ module Aws::RDS
|
|
4520
4520
|
# @option params [Integer] :storage_throughput
|
4521
4521
|
# Specifies the storage throughput value for the DB instance.
|
4522
4522
|
#
|
4523
|
+
# This setting applies only to the `gp3` storage type.
|
4524
|
+
#
|
4523
4525
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
4524
4526
|
#
|
4525
4527
|
# @return [Types::CreateDBInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -15289,6 +15291,8 @@ module Aws::RDS
|
|
15289
15291
|
# @option params [Integer] :storage_throughput
|
15290
15292
|
# Specifies the storage throughput value for the DB instance.
|
15291
15293
|
#
|
15294
|
+
# This setting applies only to the `gp3` storage type.
|
15295
|
+
#
|
15292
15296
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
15293
15297
|
#
|
15294
15298
|
# @return [Types::ModifyDBInstanceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -19666,13 +19670,18 @@ module Aws::RDS
|
|
19666
19670
|
#
|
19667
19671
|
# Example: `my-snapshot-id`
|
19668
19672
|
#
|
19669
|
-
# @option params [
|
19673
|
+
# @option params [String] :db_snapshot_identifier
|
19670
19674
|
# The identifier for the DB snapshot to restore from.
|
19671
19675
|
#
|
19672
19676
|
# Constraints:
|
19673
19677
|
#
|
19674
19678
|
# * Must match the identifier of an existing DBSnapshot.
|
19675
19679
|
#
|
19680
|
+
# * Can't be specified when `DBClusterSnapshotIdentifier` is specified.
|
19681
|
+
#
|
19682
|
+
# * Must be specified when `DBClusterSnapshotIdentifier` isn't
|
19683
|
+
# specified.
|
19684
|
+
#
|
19676
19685
|
# * If you are restoring from a shared manual DB snapshot, the
|
19677
19686
|
# `DBSnapshotIdentifier` must be the ARN of the shared DB snapshot.
|
19678
19687
|
#
|
@@ -20051,6 +20060,36 @@ module Aws::RDS
|
|
20051
20060
|
#
|
20052
20061
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
20053
20062
|
#
|
20063
|
+
# @option params [String] :db_cluster_snapshot_identifier
|
20064
|
+
# The identifier for the RDS for MySQL Multi-AZ DB cluster snapshot to
|
20065
|
+
# restore from.
|
20066
|
+
#
|
20067
|
+
# For more information on Multi-AZ DB clusters, see [ Multi-AZ
|
20068
|
+
# deployments with two readable standby DB instances][1] in the *Amazon
|
20069
|
+
# RDS User Guide*.
|
20070
|
+
#
|
20071
|
+
# Constraints:
|
20072
|
+
#
|
20073
|
+
# * Must match the identifier of an existing Multi-AZ DB cluster
|
20074
|
+
# snapshot.
|
20075
|
+
#
|
20076
|
+
# * Can't be specified when `DBSnapshotIdentifier` is specified.
|
20077
|
+
#
|
20078
|
+
# * Must be specified when `DBSnapshotIdentifier` isn't specified.
|
20079
|
+
#
|
20080
|
+
# * If you are restoring from a shared manual Multi-AZ DB cluster
|
20081
|
+
# snapshot, the `DBClusterSnapshotIdentifier` must be the ARN of the
|
20082
|
+
# shared snapshot.
|
20083
|
+
#
|
20084
|
+
# * Can't be the identifier of an Aurora DB cluster snapshot.
|
20085
|
+
#
|
20086
|
+
# * Can't be the identifier of an RDS for PostgreSQL Multi-AZ DB
|
20087
|
+
# cluster snapshot.
|
20088
|
+
#
|
20089
|
+
#
|
20090
|
+
#
|
20091
|
+
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html
|
20092
|
+
#
|
20054
20093
|
# @return [Types::RestoreDBInstanceFromDBSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
20055
20094
|
#
|
20056
20095
|
# * {Types::RestoreDBInstanceFromDBSnapshotResult#db_instance #db_instance} => Types::DBInstance
|
@@ -20154,7 +20193,7 @@ module Aws::RDS
|
|
20154
20193
|
#
|
20155
20194
|
# resp = client.restore_db_instance_from_db_snapshot({
|
20156
20195
|
# db_instance_identifier: "String", # required
|
20157
|
-
# db_snapshot_identifier: "String",
|
20196
|
+
# db_snapshot_identifier: "String",
|
20158
20197
|
# db_instance_class: "String",
|
20159
20198
|
# port: 1,
|
20160
20199
|
# availability_zone: "String",
|
@@ -20196,6 +20235,7 @@ module Aws::RDS
|
|
20196
20235
|
# backup_target: "String",
|
20197
20236
|
# network_type: "String",
|
20198
20237
|
# storage_throughput: 1,
|
20238
|
+
# db_cluster_snapshot_identifier: "String",
|
20199
20239
|
# })
|
20200
20240
|
#
|
20201
20241
|
# @example Response structure
|
@@ -23149,7 +23189,7 @@ module Aws::RDS
|
|
23149
23189
|
params: params,
|
23150
23190
|
config: config)
|
23151
23191
|
context[:gem_name] = 'aws-sdk-rds'
|
23152
|
-
context[:gem_version] = '1.
|
23192
|
+
context[:gem_version] = '1.159.0'
|
23153
23193
|
Seahorse::Client::Request.new(handlers, context)
|
23154
23194
|
end
|
23155
23195
|
|
@@ -3105,7 +3105,7 @@ module Aws::RDS
|
|
3105
3105
|
RestoreDBClusterToPointInTimeResult.struct_class = Types::RestoreDBClusterToPointInTimeResult
|
3106
3106
|
|
3107
3107
|
RestoreDBInstanceFromDBSnapshotMessage.add_member(:db_instance_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DBInstanceIdentifier"))
|
3108
|
-
RestoreDBInstanceFromDBSnapshotMessage.add_member(:db_snapshot_identifier, Shapes::ShapeRef.new(shape: String,
|
3108
|
+
RestoreDBInstanceFromDBSnapshotMessage.add_member(:db_snapshot_identifier, Shapes::ShapeRef.new(shape: String, location_name: "DBSnapshotIdentifier"))
|
3109
3109
|
RestoreDBInstanceFromDBSnapshotMessage.add_member(:db_instance_class, Shapes::ShapeRef.new(shape: String, location_name: "DBInstanceClass"))
|
3110
3110
|
RestoreDBInstanceFromDBSnapshotMessage.add_member(:port, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "Port"))
|
3111
3111
|
RestoreDBInstanceFromDBSnapshotMessage.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZone"))
|
@@ -3137,6 +3137,7 @@ module Aws::RDS
|
|
3137
3137
|
RestoreDBInstanceFromDBSnapshotMessage.add_member(:backup_target, Shapes::ShapeRef.new(shape: String, location_name: "BackupTarget"))
|
3138
3138
|
RestoreDBInstanceFromDBSnapshotMessage.add_member(:network_type, Shapes::ShapeRef.new(shape: String, location_name: "NetworkType"))
|
3139
3139
|
RestoreDBInstanceFromDBSnapshotMessage.add_member(:storage_throughput, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "StorageThroughput"))
|
3140
|
+
RestoreDBInstanceFromDBSnapshotMessage.add_member(:db_cluster_snapshot_identifier, Shapes::ShapeRef.new(shape: String, location_name: "DBClusterSnapshotIdentifier"))
|
3140
3141
|
RestoreDBInstanceFromDBSnapshotMessage.struct_class = Types::RestoreDBInstanceFromDBSnapshotMessage
|
3141
3142
|
|
3142
3143
|
RestoreDBInstanceFromDBSnapshotResult.add_member(:db_instance, Shapes::ShapeRef.new(shape: DBInstance, location_name: "DBInstance"))
|
@@ -5139,6 +5140,7 @@ module Aws::RDS
|
|
5139
5140
|
o.errors << Shapes::ShapeRef.new(shape: DBParameterGroupNotFoundFault)
|
5140
5141
|
o.errors << Shapes::ShapeRef.new(shape: BackupPolicyNotFoundFault)
|
5141
5142
|
o.errors << Shapes::ShapeRef.new(shape: NetworkTypeNotSupported)
|
5143
|
+
o.errors << Shapes::ShapeRef.new(shape: DBClusterSnapshotNotFoundFault)
|
5142
5144
|
end)
|
5143
5145
|
|
5144
5146
|
api.add_operation(:restore_db_instance_from_s3, Seahorse::Model::Operation.new.tap do |o|
|
@@ -726,6 +726,8 @@ module Aws::RDS
|
|
726
726
|
end
|
727
727
|
|
728
728
|
# Specifies the storage throughput for the DB instance.
|
729
|
+
#
|
730
|
+
# This setting applies only to the `gp3` storage type.
|
729
731
|
# @return [Integer]
|
730
732
|
def storage_throughput
|
731
733
|
data[:storage_throughput]
|
@@ -1968,6 +1970,8 @@ module Aws::RDS
|
|
1968
1970
|
# @option options [Integer] :storage_throughput
|
1969
1971
|
# Specifies the storage throughput value for the DB instance.
|
1970
1972
|
#
|
1973
|
+
# This setting applies only to the `gp3` storage type.
|
1974
|
+
#
|
1971
1975
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
1972
1976
|
# @return [DBInstance]
|
1973
1977
|
def create(options = {})
|
@@ -3445,6 +3449,8 @@ module Aws::RDS
|
|
3445
3449
|
# @option options [Integer] :storage_throughput
|
3446
3450
|
# Specifies the storage throughput value for the DB instance.
|
3447
3451
|
#
|
3452
|
+
# This setting applies only to the `gp3` storage type.
|
3453
|
+
#
|
3448
3454
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
3449
3455
|
# @return [DBInstance]
|
3450
3456
|
def modify(options = {})
|
@@ -660,6 +660,7 @@ module Aws::RDS
|
|
660
660
|
# backup_target: "String",
|
661
661
|
# network_type: "String",
|
662
662
|
# storage_throughput: 1,
|
663
|
+
# db_cluster_snapshot_identifier: "String",
|
663
664
|
# })
|
664
665
|
# @param [Hash] options ({})
|
665
666
|
# @option options [required, String] :db_instance_identifier
|
@@ -1019,6 +1020,35 @@ module Aws::RDS
|
|
1019
1020
|
# Specifies the storage throughput value for the DB instance.
|
1020
1021
|
#
|
1021
1022
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
1023
|
+
# @option options [String] :db_cluster_snapshot_identifier
|
1024
|
+
# The identifier for the RDS for MySQL Multi-AZ DB cluster snapshot to
|
1025
|
+
# restore from.
|
1026
|
+
#
|
1027
|
+
# For more information on Multi-AZ DB clusters, see [ Multi-AZ
|
1028
|
+
# deployments with two readable standby DB instances][1] in the *Amazon
|
1029
|
+
# RDS User Guide*.
|
1030
|
+
#
|
1031
|
+
# Constraints:
|
1032
|
+
#
|
1033
|
+
# * Must match the identifier of an existing Multi-AZ DB cluster
|
1034
|
+
# snapshot.
|
1035
|
+
#
|
1036
|
+
# * Can't be specified when `DBSnapshotIdentifier` is specified.
|
1037
|
+
#
|
1038
|
+
# * Must be specified when `DBSnapshotIdentifier` isn't specified.
|
1039
|
+
#
|
1040
|
+
# * If you are restoring from a shared manual Multi-AZ DB cluster
|
1041
|
+
# snapshot, the `DBClusterSnapshotIdentifier` must be the ARN of the
|
1042
|
+
# shared snapshot.
|
1043
|
+
#
|
1044
|
+
# * Can't be the identifier of an Aurora DB cluster snapshot.
|
1045
|
+
#
|
1046
|
+
# * Can't be the identifier of an RDS for PostgreSQL Multi-AZ DB
|
1047
|
+
# cluster snapshot.
|
1048
|
+
#
|
1049
|
+
#
|
1050
|
+
#
|
1051
|
+
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html
|
1022
1052
|
# @return [DBInstance]
|
1023
1053
|
def restore(options = {})
|
1024
1054
|
options = options.merge(db_snapshot_identifier: @snapshot_id)
|
data/lib/aws-sdk-rds/resource.rb
CHANGED
@@ -2045,6 +2045,8 @@ module Aws::RDS
|
|
2045
2045
|
# @option options [Integer] :storage_throughput
|
2046
2046
|
# Specifies the storage throughput value for the DB instance.
|
2047
2047
|
#
|
2048
|
+
# This setting applies only to the `gp3` storage type.
|
2049
|
+
#
|
2048
2050
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
2049
2051
|
# @return [DBInstance]
|
2050
2052
|
def create_db_instance(options = {})
|
data/lib/aws-sdk-rds/types.rb
CHANGED
@@ -4224,6 +4224,8 @@ module Aws::RDS
|
|
4224
4224
|
# @!attribute [rw] storage_throughput
|
4225
4225
|
# Specifies the storage throughput value for the DB instance.
|
4226
4226
|
#
|
4227
|
+
# This setting applies only to the `gp3` storage type.
|
4228
|
+
#
|
4227
4229
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
4228
4230
|
# @return [Integer]
|
4229
4231
|
#
|
@@ -7970,6 +7972,8 @@ module Aws::RDS
|
|
7970
7972
|
#
|
7971
7973
|
# @!attribute [rw] storage_throughput
|
7972
7974
|
# Specifies the storage throughput for the DB instance.
|
7975
|
+
#
|
7976
|
+
# This setting applies only to the `gp3` storage type.
|
7973
7977
|
# @return [Integer]
|
7974
7978
|
#
|
7975
7979
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBInstance AWS API Documentation
|
@@ -16687,6 +16691,8 @@ module Aws::RDS
|
|
16687
16691
|
# @!attribute [rw] storage_throughput
|
16688
16692
|
# Specifies the storage throughput value for the DB instance.
|
16689
16693
|
#
|
16694
|
+
# This setting applies only to the `gp3` storage type.
|
16695
|
+
#
|
16690
16696
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
16691
16697
|
# @return [Integer]
|
16692
16698
|
#
|
@@ -21322,7 +21328,7 @@ module Aws::RDS
|
|
21322
21328
|
#
|
21323
21329
|
# {
|
21324
21330
|
# db_instance_identifier: "String", # required
|
21325
|
-
# db_snapshot_identifier: "String",
|
21331
|
+
# db_snapshot_identifier: "String",
|
21326
21332
|
# db_instance_class: "String",
|
21327
21333
|
# port: 1,
|
21328
21334
|
# availability_zone: "String",
|
@@ -21364,6 +21370,7 @@ module Aws::RDS
|
|
21364
21370
|
# backup_target: "String",
|
21365
21371
|
# network_type: "String",
|
21366
21372
|
# storage_throughput: 1,
|
21373
|
+
# db_cluster_snapshot_identifier: "String",
|
21367
21374
|
# }
|
21368
21375
|
#
|
21369
21376
|
# @!attribute [rw] db_instance_identifier
|
@@ -21388,6 +21395,12 @@ module Aws::RDS
|
|
21388
21395
|
#
|
21389
21396
|
# * Must match the identifier of an existing DBSnapshot.
|
21390
21397
|
#
|
21398
|
+
# * Can't be specified when `DBClusterSnapshotIdentifier` is
|
21399
|
+
# specified.
|
21400
|
+
#
|
21401
|
+
# * Must be specified when `DBClusterSnapshotIdentifier` isn't
|
21402
|
+
# specified.
|
21403
|
+
#
|
21391
21404
|
# * If you are restoring from a shared manual DB snapshot, the
|
21392
21405
|
# `DBSnapshotIdentifier` must be the ARN of the shared DB snapshot.
|
21393
21406
|
# @return [String]
|
@@ -21803,6 +21816,37 @@ module Aws::RDS
|
|
21803
21816
|
# This setting doesn't apply to RDS Custom or Amazon Aurora.
|
21804
21817
|
# @return [Integer]
|
21805
21818
|
#
|
21819
|
+
# @!attribute [rw] db_cluster_snapshot_identifier
|
21820
|
+
# The identifier for the RDS for MySQL Multi-AZ DB cluster snapshot to
|
21821
|
+
# restore from.
|
21822
|
+
#
|
21823
|
+
# For more information on Multi-AZ DB clusters, see [ Multi-AZ
|
21824
|
+
# deployments with two readable standby DB instances][1] in the
|
21825
|
+
# *Amazon RDS User Guide*.
|
21826
|
+
#
|
21827
|
+
# Constraints:
|
21828
|
+
#
|
21829
|
+
# * Must match the identifier of an existing Multi-AZ DB cluster
|
21830
|
+
# snapshot.
|
21831
|
+
#
|
21832
|
+
# * Can't be specified when `DBSnapshotIdentifier` is specified.
|
21833
|
+
#
|
21834
|
+
# * Must be specified when `DBSnapshotIdentifier` isn't specified.
|
21835
|
+
#
|
21836
|
+
# * If you are restoring from a shared manual Multi-AZ DB cluster
|
21837
|
+
# snapshot, the `DBClusterSnapshotIdentifier` must be the ARN of the
|
21838
|
+
# shared snapshot.
|
21839
|
+
#
|
21840
|
+
# * Can't be the identifier of an Aurora DB cluster snapshot.
|
21841
|
+
#
|
21842
|
+
# * Can't be the identifier of an RDS for PostgreSQL Multi-AZ DB
|
21843
|
+
# cluster snapshot.
|
21844
|
+
#
|
21845
|
+
#
|
21846
|
+
#
|
21847
|
+
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html
|
21848
|
+
# @return [String]
|
21849
|
+
#
|
21806
21850
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromDBSnapshotMessage AWS API Documentation
|
21807
21851
|
#
|
21808
21852
|
class RestoreDBInstanceFromDBSnapshotMessage < Struct.new(
|
@@ -21838,7 +21882,8 @@ module Aws::RDS
|
|
21838
21882
|
:custom_iam_instance_profile,
|
21839
21883
|
:backup_target,
|
21840
21884
|
:network_type,
|
21841
|
-
:storage_throughput
|
21885
|
+
:storage_throughput,
|
21886
|
+
:db_cluster_snapshot_identifier)
|
21842
21887
|
SENSITIVE = []
|
21843
21888
|
include Aws::Structure
|
21844
21889
|
end
|
data/lib/aws-sdk-rds.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.159.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|