aws-sdk-docdb 1.46.0 → 1.47.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-docdb/client.rb +18 -2
- data/lib/aws-sdk-docdb/client_api.rb +1 -0
- data/lib/aws-sdk-docdb/endpoint_provider.rb +28 -40
- data/lib/aws-sdk-docdb/types.rb +22 -5
- data/lib/aws-sdk-docdb.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: 8572008fad542c13e45b86c2e503b47de0868db3d50149d3d6e1c74cf15d49d2
|
4
|
+
data.tar.gz: 2850096f338e7396b1920c6b2637b9fbd9d68d9e550d260dec5b42a959578da1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 997948cae2ade29ade20f4371fcabd9e19ee40c7b514e17a7eca17f0c750cf3634079b39b2e61fd875ed565423cd54e55d12f7da28329cfda7010213af23eae5
|
7
|
+
data.tar.gz: 2b8e807b2506f378fdc34b8dd548d1902b7ebd0e52cf2027e3bc1330a15a61de7cdead263f7be28d1ea5b3fba344ce5aed48bc22c5be97765f8ddd1f1010cfda
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.47.0 (2023-04-07)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds a new parameter 'DBClusterParameterGroupName' to 'RestoreDBClusterFromSnapshot' API to associate the name of the DB cluster parameter group while performing restore.
|
8
|
+
|
4
9
|
1.46.0 (2023-01-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.47.0
|
data/lib/aws-sdk-docdb/client.rb
CHANGED
@@ -889,7 +889,7 @@ module Aws::DocDB
|
|
889
889
|
# encrypt the new cluster, you can use the KMS key alias instead of the
|
890
890
|
# ARN for the KMS encryption key.
|
891
891
|
#
|
892
|
-
# If an encryption key is not specified in `KmsKeyId
|
892
|
+
# If an encryption key is not specified in `KmsKeyId`:
|
893
893
|
#
|
894
894
|
# * If the `StorageEncrypted` parameter is `true`, Amazon DocumentDB
|
895
895
|
# uses your default encryption key.
|
@@ -4737,6 +4737,18 @@ module Aws::DocDB
|
|
4737
4737
|
# `DeletionProtection` is disabled. `DeletionProtection` protects
|
4738
4738
|
# clusters from being accidentally deleted.
|
4739
4739
|
#
|
4740
|
+
# @option params [String] :db_cluster_parameter_group_name
|
4741
|
+
# The name of the DB cluster parameter group to associate with this DB
|
4742
|
+
# cluster.
|
4743
|
+
#
|
4744
|
+
# *Type:* String. *Required:* No.
|
4745
|
+
#
|
4746
|
+
# If this argument is omitted, the default DB cluster parameter group is
|
4747
|
+
# used. If supplied, must match the name of an existing default DB
|
4748
|
+
# cluster parameter group. The string must consist of from 1 to 255
|
4749
|
+
# letters, numbers or hyphens. Its first character must be a letter, and
|
4750
|
+
# it cannot end with a hyphen or contain two consecutive hyphens.
|
4751
|
+
#
|
4740
4752
|
# @return [Types::RestoreDBClusterFromSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4741
4753
|
#
|
4742
4754
|
# * {Types::RestoreDBClusterFromSnapshotResult#db_cluster #db_cluster} => Types::DBCluster
|
@@ -4761,6 +4773,7 @@ module Aws::DocDB
|
|
4761
4773
|
# kms_key_id: "String",
|
4762
4774
|
# enable_cloudwatch_logs_exports: ["String"],
|
4763
4775
|
# deletion_protection: false,
|
4776
|
+
# db_cluster_parameter_group_name: "String",
|
4764
4777
|
# })
|
4765
4778
|
#
|
4766
4779
|
# @example Response structure
|
@@ -4846,6 +4859,9 @@ module Aws::DocDB
|
|
4846
4859
|
# * `copy-on-write` - The new DB cluster is restored as a clone of the
|
4847
4860
|
# source DB cluster.
|
4848
4861
|
#
|
4862
|
+
# Constraints: You can't specify `copy-on-write` if the engine version
|
4863
|
+
# of the source DB cluster is earlier than 1.11.
|
4864
|
+
#
|
4849
4865
|
# If you don't specify a `RestoreType` value, then the new DB cluster
|
4850
4866
|
# is restored as a full copy of the source DB cluster.
|
4851
4867
|
#
|
@@ -5193,7 +5209,7 @@ module Aws::DocDB
|
|
5193
5209
|
params: params,
|
5194
5210
|
config: config)
|
5195
5211
|
context[:gem_name] = 'aws-sdk-docdb'
|
5196
|
-
context[:gem_version] = '1.
|
5212
|
+
context[:gem_version] = '1.47.0'
|
5197
5213
|
Seahorse::Client::Request.new(handlers, context)
|
5198
5214
|
end
|
5199
5215
|
|
@@ -1123,6 +1123,7 @@ module Aws::DocDB
|
|
1123
1123
|
RestoreDBClusterFromSnapshotMessage.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
|
1124
1124
|
RestoreDBClusterFromSnapshotMessage.add_member(:enable_cloudwatch_logs_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "EnableCloudwatchLogsExports"))
|
1125
1125
|
RestoreDBClusterFromSnapshotMessage.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "DeletionProtection"))
|
1126
|
+
RestoreDBClusterFromSnapshotMessage.add_member(:db_cluster_parameter_group_name, Shapes::ShapeRef.new(shape: String, location_name: "DBClusterParameterGroupName"))
|
1126
1127
|
RestoreDBClusterFromSnapshotMessage.struct_class = Types::RestoreDBClusterFromSnapshotMessage
|
1127
1128
|
|
1128
1129
|
RestoreDBClusterFromSnapshotResult.add_member(:db_cluster, Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster"))
|
@@ -14,54 +14,42 @@ module Aws::DocDB
|
|
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-docdb/types.rb
CHANGED
@@ -599,7 +599,7 @@ module Aws::DocDB
|
|
599
599
|
# to encrypt the new cluster, you can use the KMS key alias instead of
|
600
600
|
# the ARN for the KMS encryption key.
|
601
601
|
#
|
602
|
-
# If an encryption key is not specified in `KmsKeyId
|
602
|
+
# If an encryption key is not specified in `KmsKeyId`:
|
603
603
|
#
|
604
604
|
# * If the `StorageEncrypted` parameter is `true`, Amazon DocumentDB
|
605
605
|
# uses your default encryption key.
|
@@ -3599,9 +3599,9 @@ module Aws::DocDB
|
|
3599
3599
|
#
|
3600
3600
|
# @!attribute [rw] global_cluster_resource_id
|
3601
3601
|
# The Amazon Web Services Region-unique, immutable identifier for the
|
3602
|
-
# global database cluster. This identifier is found in
|
3603
|
-
#
|
3604
|
-
#
|
3602
|
+
# global database cluster. This identifier is found in CloudTrail log
|
3603
|
+
# entries whenever the KMS customer master key (CMK) for the cluster
|
3604
|
+
# is accessed.
|
3605
3605
|
# @return [String]
|
3606
3606
|
#
|
3607
3607
|
# @!attribute [rw] global_cluster_arn
|
@@ -5016,6 +5016,19 @@ module Aws::DocDB
|
|
5016
5016
|
# deleted.
|
5017
5017
|
# @return [Boolean]
|
5018
5018
|
#
|
5019
|
+
# @!attribute [rw] db_cluster_parameter_group_name
|
5020
|
+
# The name of the DB cluster parameter group to associate with this DB
|
5021
|
+
# cluster.
|
5022
|
+
#
|
5023
|
+
# *Type:* String. *Required:* No.
|
5024
|
+
#
|
5025
|
+
# If this argument is omitted, the default DB cluster parameter group
|
5026
|
+
# is used. If supplied, must match the name of an existing default DB
|
5027
|
+
# cluster parameter group. The string must consist of from 1 to 255
|
5028
|
+
# letters, numbers or hyphens. Its first character must be a letter,
|
5029
|
+
# and it cannot end with a hyphen or contain two consecutive hyphens.
|
5030
|
+
# @return [String]
|
5031
|
+
#
|
5019
5032
|
# @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterFromSnapshotMessage AWS API Documentation
|
5020
5033
|
#
|
5021
5034
|
class RestoreDBClusterFromSnapshotMessage < Struct.new(
|
@@ -5030,7 +5043,8 @@ module Aws::DocDB
|
|
5030
5043
|
:tags,
|
5031
5044
|
:kms_key_id,
|
5032
5045
|
:enable_cloudwatch_logs_exports,
|
5033
|
-
:deletion_protection
|
5046
|
+
:deletion_protection,
|
5047
|
+
:db_cluster_parameter_group_name)
|
5034
5048
|
SENSITIVE = []
|
5035
5049
|
include Aws::Structure
|
5036
5050
|
end
|
@@ -5071,6 +5085,9 @@ module Aws::DocDB
|
|
5071
5085
|
# * `copy-on-write` - The new DB cluster is restored as a clone of the
|
5072
5086
|
# source DB cluster.
|
5073
5087
|
#
|
5088
|
+
# Constraints: You can't specify `copy-on-write` if the engine
|
5089
|
+
# version of the source DB cluster is earlier than 1.11.
|
5090
|
+
#
|
5074
5091
|
# If you don't specify a `RestoreType` value, then the new DB cluster
|
5075
5092
|
# is restored as a full copy of the source DB cluster.
|
5076
5093
|
# @return [String]
|
data/lib/aws-sdk-docdb.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-docdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.47.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: 2023-
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|