aws-sdk-docdb 1.46.0 → 1.48.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-docdb/client.rb +23 -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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5eaf4428a6ed6667465f10366568b80c5a0dc21ef56c7779be5714015b7e9be6
|
4
|
+
data.tar.gz: '09b820b14d369b43db0382de5682907f741e143ffa6c23f2d11b9512f345aa9c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de8c6d38492c6e9b396a6ec029d399c2d4d09ea5ba39c3c99c6c1c411bf24685313f1a6c12c8de0aeddc467defeaaafdb851a1c3e55c25eb9fd04d5735d7005d
|
7
|
+
data.tar.gz: e38a820857ca116444ca8e75329a8a25603a00d2a9aafe94eb44ec30cd6ca8c3d8cfb8a79b1cfb4a0ad94aaace347e87b4824d18afbe0b2b4ab164adb71ebe99
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.48.0 (2023-05-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.47.0 (2023-04-07)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds a new parameter 'DBClusterParameterGroupName' to 'RestoreDBClusterFromSnapshot' API to associate the name of the DB cluster parameter group while performing restore.
|
13
|
+
|
4
14
|
1.46.0 (2023-01-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.48.0
|
data/lib/aws-sdk-docdb/client.rb
CHANGED
@@ -277,6 +277,11 @@ module Aws::DocDB
|
|
277
277
|
# in the future.
|
278
278
|
#
|
279
279
|
#
|
280
|
+
# @option options [String] :sdk_ua_app_id
|
281
|
+
# A unique and opaque application ID that is appended to the
|
282
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
283
|
+
# maximum length of 50.
|
284
|
+
#
|
280
285
|
# @option options [String] :secret_access_key
|
281
286
|
#
|
282
287
|
# @option options [String] :session_token
|
@@ -889,7 +894,7 @@ module Aws::DocDB
|
|
889
894
|
# encrypt the new cluster, you can use the KMS key alias instead of the
|
890
895
|
# ARN for the KMS encryption key.
|
891
896
|
#
|
892
|
-
# If an encryption key is not specified in `KmsKeyId
|
897
|
+
# If an encryption key is not specified in `KmsKeyId`:
|
893
898
|
#
|
894
899
|
# * If the `StorageEncrypted` parameter is `true`, Amazon DocumentDB
|
895
900
|
# uses your default encryption key.
|
@@ -4737,6 +4742,18 @@ module Aws::DocDB
|
|
4737
4742
|
# `DeletionProtection` is disabled. `DeletionProtection` protects
|
4738
4743
|
# clusters from being accidentally deleted.
|
4739
4744
|
#
|
4745
|
+
# @option params [String] :db_cluster_parameter_group_name
|
4746
|
+
# The name of the DB cluster parameter group to associate with this DB
|
4747
|
+
# cluster.
|
4748
|
+
#
|
4749
|
+
# *Type:* String. *Required:* No.
|
4750
|
+
#
|
4751
|
+
# If this argument is omitted, the default DB cluster parameter group is
|
4752
|
+
# used. If supplied, must match the name of an existing default DB
|
4753
|
+
# cluster parameter group. The string must consist of from 1 to 255
|
4754
|
+
# letters, numbers or hyphens. Its first character must be a letter, and
|
4755
|
+
# it cannot end with a hyphen or contain two consecutive hyphens.
|
4756
|
+
#
|
4740
4757
|
# @return [Types::RestoreDBClusterFromSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4741
4758
|
#
|
4742
4759
|
# * {Types::RestoreDBClusterFromSnapshotResult#db_cluster #db_cluster} => Types::DBCluster
|
@@ -4761,6 +4778,7 @@ module Aws::DocDB
|
|
4761
4778
|
# kms_key_id: "String",
|
4762
4779
|
# enable_cloudwatch_logs_exports: ["String"],
|
4763
4780
|
# deletion_protection: false,
|
4781
|
+
# db_cluster_parameter_group_name: "String",
|
4764
4782
|
# })
|
4765
4783
|
#
|
4766
4784
|
# @example Response structure
|
@@ -4846,6 +4864,9 @@ module Aws::DocDB
|
|
4846
4864
|
# * `copy-on-write` - The new DB cluster is restored as a clone of the
|
4847
4865
|
# source DB cluster.
|
4848
4866
|
#
|
4867
|
+
# Constraints: You can't specify `copy-on-write` if the engine version
|
4868
|
+
# of the source DB cluster is earlier than 1.11.
|
4869
|
+
#
|
4849
4870
|
# If you don't specify a `RestoreType` value, then the new DB cluster
|
4850
4871
|
# is restored as a full copy of the source DB cluster.
|
4851
4872
|
#
|
@@ -5193,7 +5214,7 @@ module Aws::DocDB
|
|
5193
5214
|
params: params,
|
5194
5215
|
config: config)
|
5195
5216
|
context[:gem_name] = 'aws-sdk-docdb'
|
5196
|
-
context[:gem_version] = '1.
|
5217
|
+
context[:gem_version] = '1.48.0'
|
5197
5218
|
Seahorse::Client::Request.new(handlers, context)
|
5198
5219
|
end
|
5199
5220
|
|
@@ -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.48.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-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.174.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.174.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|