aws-sdk-redshift 1.90.0 → 1.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-redshift/client.rb +20 -20
- data/lib/aws-sdk-redshift/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-redshift/endpoint_provider.rb +34 -31
- data/lib/aws-sdk-redshift/types.rb +22 -22
- data/lib/aws-sdk-redshift.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: c49df28c429016ad7b5d37e2f6e70f4d37c38c084cf457fab81005bf5ee138e5
|
|
4
|
+
data.tar.gz: 33e606ef43b054598f9a937db80cfb33a58c54d6fb1912d21c719c4e1ef886d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a40692bd541fdaa4f9abaee1c1f2fbe35164dcf860218a12e7b95fa290004656719b80e4519c73159287d97f3993e78444aae7dbe320335110ab73666232c885
|
|
7
|
+
data.tar.gz: 624b494e95332ab3c44d7bd032ac88daa966834d91edea8ab710b36de62328abbc8f1ac1cd7240e332915de6c893e0cda1208f5fce9dfe2568fa751d1acc455e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.91.0
|
|
@@ -735,8 +735,8 @@ module Aws::Redshift
|
|
|
735
735
|
#
|
|
736
736
|
# @option params [String] :snapshot_cluster_identifier
|
|
737
737
|
# The identifier of the cluster the snapshot was created from. This
|
|
738
|
-
# parameter is required if your IAM user has a policy containing
|
|
739
|
-
# snapshot resource element that specifies anything other than * for
|
|
738
|
+
# parameter is required if your IAM user or role has a policy containing
|
|
739
|
+
# a snapshot resource element that specifies anything other than * for
|
|
740
740
|
# the cluster name.
|
|
741
741
|
#
|
|
742
742
|
# @option params [required, String] :account_with_restore_access
|
|
@@ -995,9 +995,9 @@ module Aws::Redshift
|
|
|
995
995
|
#
|
|
996
996
|
# @option params [String] :source_snapshot_cluster_identifier
|
|
997
997
|
# The identifier of the cluster the source snapshot was created from.
|
|
998
|
-
# This parameter is required if your IAM user has a policy
|
|
999
|
-
# snapshot resource element that specifies anything other
|
|
1000
|
-
# the cluster name.
|
|
998
|
+
# This parameter is required if your IAM user or role has a policy
|
|
999
|
+
# containing a snapshot resource element that specifies anything other
|
|
1000
|
+
# than * for the cluster name.
|
|
1001
1001
|
#
|
|
1002
1002
|
# Constraints:
|
|
1003
1003
|
#
|
|
@@ -1213,8 +1213,8 @@ module Aws::Redshift
|
|
|
1213
1213
|
# [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes
|
|
1214
1214
|
#
|
|
1215
1215
|
# @option params [required, String] :master_username
|
|
1216
|
-
# The user name associated with the admin user
|
|
1217
|
-
#
|
|
1216
|
+
# The user name associated with the admin user for the cluster that is
|
|
1217
|
+
# being created.
|
|
1218
1218
|
#
|
|
1219
1219
|
# Constraints:
|
|
1220
1220
|
#
|
|
@@ -1236,8 +1236,8 @@ module Aws::Redshift
|
|
|
1236
1236
|
# [1]: https://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html
|
|
1237
1237
|
#
|
|
1238
1238
|
# @option params [required, String] :master_user_password
|
|
1239
|
-
# The password associated with the admin user
|
|
1240
|
-
#
|
|
1239
|
+
# The password associated with the admin user for the cluster that is
|
|
1240
|
+
# being created.
|
|
1241
1241
|
#
|
|
1242
1242
|
# Constraints:
|
|
1243
1243
|
#
|
|
@@ -3135,9 +3135,9 @@ module Aws::Redshift
|
|
|
3135
3135
|
#
|
|
3136
3136
|
# @option params [String] :snapshot_cluster_identifier
|
|
3137
3137
|
# The unique identifier of the cluster the snapshot was created from.
|
|
3138
|
-
# This parameter is required if your IAM user has a policy
|
|
3139
|
-
# snapshot resource element that specifies anything other
|
|
3140
|
-
# the cluster name.
|
|
3138
|
+
# This parameter is required if your IAM user or role has a policy
|
|
3139
|
+
# containing a snapshot resource element that specifies anything other
|
|
3140
|
+
# than * for the cluster name.
|
|
3141
3141
|
#
|
|
3142
3142
|
# Constraints: Must be the name of valid cluster.
|
|
3143
3143
|
#
|
|
@@ -4019,7 +4019,7 @@ module Aws::Redshift
|
|
|
4019
4019
|
#
|
|
4020
4020
|
# Default: `100`
|
|
4021
4021
|
#
|
|
4022
|
-
# Constraints: minimum 20, maximum
|
|
4022
|
+
# Constraints: minimum 20, maximum 500.
|
|
4023
4023
|
#
|
|
4024
4024
|
# @option params [String] :marker
|
|
4025
4025
|
# An optional parameter that specifies the starting point to return a
|
|
@@ -7741,8 +7741,8 @@ module Aws::Redshift
|
|
|
7741
7741
|
# response.
|
|
7742
7742
|
#
|
|
7743
7743
|
# <note markdown="1"> Operations never return the password, so this operation provides a way
|
|
7744
|
-
# to regain access to the admin user
|
|
7745
|
-
#
|
|
7744
|
+
# to regain access to the admin user for a cluster if the password is
|
|
7745
|
+
# lost.
|
|
7746
7746
|
#
|
|
7747
7747
|
# </note>
|
|
7748
7748
|
#
|
|
@@ -10086,8 +10086,8 @@ module Aws::Redshift
|
|
|
10086
10086
|
#
|
|
10087
10087
|
# @option params [String] :snapshot_cluster_identifier
|
|
10088
10088
|
# The name of the cluster the source snapshot was created from. This
|
|
10089
|
-
# parameter is required if your IAM user has a policy containing
|
|
10090
|
-
# snapshot resource element that specifies anything other than * for
|
|
10089
|
+
# parameter is required if your IAM user or role has a policy containing
|
|
10090
|
+
# a snapshot resource element that specifies anything other than * for
|
|
10091
10091
|
# the cluster name.
|
|
10092
10092
|
#
|
|
10093
10093
|
# @option params [Integer] :port
|
|
@@ -10890,8 +10890,8 @@ module Aws::Redshift
|
|
|
10890
10890
|
#
|
|
10891
10891
|
# @option params [String] :snapshot_cluster_identifier
|
|
10892
10892
|
# The identifier of the cluster the snapshot was created from. This
|
|
10893
|
-
# parameter is required if your IAM user has a policy containing
|
|
10894
|
-
# snapshot resource element that specifies anything other than * for
|
|
10893
|
+
# parameter is required if your IAM user or role has a policy containing
|
|
10894
|
+
# a snapshot resource element that specifies anything other than * for
|
|
10895
10895
|
# the cluster name.
|
|
10896
10896
|
#
|
|
10897
10897
|
# @option params [required, String] :account_with_restore_access
|
|
@@ -11176,7 +11176,7 @@ module Aws::Redshift
|
|
|
11176
11176
|
params: params,
|
|
11177
11177
|
config: config)
|
|
11178
11178
|
context[:gem_name] = 'aws-sdk-redshift'
|
|
11179
|
-
context[:gem_version] = '1.
|
|
11179
|
+
context[:gem_version] = '1.91.0'
|
|
11180
11180
|
Seahorse::Client::Request.new(handlers, context)
|
|
11181
11181
|
end
|
|
11182
11182
|
|
|
@@ -50,9 +50,6 @@ module Aws::Redshift
|
|
|
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,45 +14,48 @@ module Aws::Redshift
|
|
|
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.
|
|
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"
|
|
20
|
+
end
|
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
23
|
+
end
|
|
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://redshift-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
31
|
+
end
|
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
33
|
+
end
|
|
19
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
20
|
-
|
|
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://redshift.#{region}.amazonaws.com", headers: {}, properties: {})
|
|
38
|
+
end
|
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
40
|
+
end
|
|
41
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
21
42
|
end
|
|
22
43
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
26
|
-
end
|
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
28
|
-
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"))
|
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://redshift-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"
|
|
32
|
-
end
|
|
33
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
|
35
|
-
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://redshift.#{region}.amazonaws.com", headers: {}, properties: {})
|
|
44
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
37
46
|
end
|
|
38
|
-
|
|
47
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
39
48
|
end
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
43
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
44
|
-
return Aws::Endpoints::Endpoint.new(url: "https://redshift.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
49
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
|
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
|
45
51
|
end
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return Aws::Endpoints::Endpoint.new(url: "https://redshift
|
|
50
|
-
end
|
|
51
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
|
52
|
-
return Aws::Endpoints::Endpoint.new(url: "https://redshift.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
|
52
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
|
53
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
|
54
|
+
end
|
|
55
|
+
return Aws::Endpoints::Endpoint.new(url: "https://redshift.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
53
56
|
end
|
|
54
|
-
return Aws::Endpoints::Endpoint.new(url: "https://redshift.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
55
57
|
end
|
|
58
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
56
59
|
raise ArgumentError, 'No endpoint could be resolved'
|
|
57
60
|
|
|
58
61
|
end
|
|
@@ -336,9 +336,9 @@ module Aws::Redshift
|
|
|
336
336
|
#
|
|
337
337
|
# @!attribute [rw] snapshot_cluster_identifier
|
|
338
338
|
# The identifier of the cluster the snapshot was created from. This
|
|
339
|
-
# parameter is required if your IAM user has a policy
|
|
340
|
-
# snapshot resource element that specifies anything other
|
|
341
|
-
# the cluster name.
|
|
339
|
+
# parameter is required if your IAM user or role has a policy
|
|
340
|
+
# containing a snapshot resource element that specifies anything other
|
|
341
|
+
# than * for the cluster name.
|
|
342
342
|
# @return [String]
|
|
343
343
|
#
|
|
344
344
|
# @!attribute [rw] account_with_restore_access
|
|
@@ -1662,9 +1662,9 @@ module Aws::Redshift
|
|
|
1662
1662
|
#
|
|
1663
1663
|
# @!attribute [rw] source_snapshot_cluster_identifier
|
|
1664
1664
|
# The identifier of the cluster the source snapshot was created from.
|
|
1665
|
-
# This parameter is required if your IAM user has a policy
|
|
1666
|
-
# a snapshot resource element that specifies anything other
|
|
1667
|
-
# for the cluster name.
|
|
1665
|
+
# This parameter is required if your IAM user or role has a policy
|
|
1666
|
+
# containing a snapshot resource element that specifies anything other
|
|
1667
|
+
# than * for the cluster name.
|
|
1668
1668
|
#
|
|
1669
1669
|
# Constraints:
|
|
1670
1670
|
#
|
|
@@ -1841,8 +1841,8 @@ module Aws::Redshift
|
|
|
1841
1841
|
# @return [String]
|
|
1842
1842
|
#
|
|
1843
1843
|
# @!attribute [rw] master_username
|
|
1844
|
-
# The user name associated with the admin user
|
|
1845
|
-
#
|
|
1844
|
+
# The user name associated with the admin user for the cluster that is
|
|
1845
|
+
# being created.
|
|
1846
1846
|
#
|
|
1847
1847
|
# Constraints:
|
|
1848
1848
|
#
|
|
@@ -1866,8 +1866,8 @@ module Aws::Redshift
|
|
|
1866
1866
|
# @return [String]
|
|
1867
1867
|
#
|
|
1868
1868
|
# @!attribute [rw] master_user_password
|
|
1869
|
-
# The password associated with the admin user
|
|
1870
|
-
#
|
|
1869
|
+
# The password associated with the admin user for the cluster that is
|
|
1870
|
+
# being created.
|
|
1871
1871
|
#
|
|
1872
1872
|
# Constraints:
|
|
1873
1873
|
#
|
|
@@ -3242,9 +3242,9 @@ module Aws::Redshift
|
|
|
3242
3242
|
#
|
|
3243
3243
|
# @!attribute [rw] snapshot_cluster_identifier
|
|
3244
3244
|
# The unique identifier of the cluster the snapshot was created from.
|
|
3245
|
-
# This parameter is required if your IAM user has a policy
|
|
3246
|
-
# a snapshot resource element that specifies anything other
|
|
3247
|
-
# for the cluster name.
|
|
3245
|
+
# This parameter is required if your IAM user or role has a policy
|
|
3246
|
+
# containing a snapshot resource element that specifies anything other
|
|
3247
|
+
# than * for the cluster name.
|
|
3248
3248
|
#
|
|
3249
3249
|
# Constraints: Must be the name of valid cluster.
|
|
3250
3250
|
# @return [String]
|
|
@@ -3728,7 +3728,7 @@ module Aws::Redshift
|
|
|
3728
3728
|
#
|
|
3729
3729
|
# Default: `100`
|
|
3730
3730
|
#
|
|
3731
|
-
# Constraints: minimum 20, maximum
|
|
3731
|
+
# Constraints: minimum 20, maximum 500.
|
|
3732
3732
|
# @return [Integer]
|
|
3733
3733
|
#
|
|
3734
3734
|
# @!attribute [rw] marker
|
|
@@ -7169,8 +7169,8 @@ module Aws::Redshift
|
|
|
7169
7169
|
# operation response.
|
|
7170
7170
|
#
|
|
7171
7171
|
# <note markdown="1"> Operations never return the password, so this operation provides a
|
|
7172
|
-
# way to regain access to the admin user
|
|
7173
|
-
#
|
|
7172
|
+
# way to regain access to the admin user for a cluster if the password
|
|
7173
|
+
# is lost.
|
|
7174
7174
|
#
|
|
7175
7175
|
# </note>
|
|
7176
7176
|
#
|
|
@@ -8954,9 +8954,9 @@ module Aws::Redshift
|
|
|
8954
8954
|
#
|
|
8955
8955
|
# @!attribute [rw] snapshot_cluster_identifier
|
|
8956
8956
|
# The name of the cluster the source snapshot was created from. This
|
|
8957
|
-
# parameter is required if your IAM user has a policy
|
|
8958
|
-
# snapshot resource element that specifies anything other
|
|
8959
|
-
# the cluster name.
|
|
8957
|
+
# parameter is required if your IAM user or role has a policy
|
|
8958
|
+
# containing a snapshot resource element that specifies anything other
|
|
8959
|
+
# than * for the cluster name.
|
|
8960
8960
|
# @return [String]
|
|
8961
8961
|
#
|
|
8962
8962
|
# @!attribute [rw] port
|
|
@@ -9538,9 +9538,9 @@ module Aws::Redshift
|
|
|
9538
9538
|
#
|
|
9539
9539
|
# @!attribute [rw] snapshot_cluster_identifier
|
|
9540
9540
|
# The identifier of the cluster the snapshot was created from. This
|
|
9541
|
-
# parameter is required if your IAM user has a policy
|
|
9542
|
-
# snapshot resource element that specifies anything other
|
|
9543
|
-
# the cluster name.
|
|
9541
|
+
# parameter is required if your IAM user or role has a policy
|
|
9542
|
+
# containing a snapshot resource element that specifies anything other
|
|
9543
|
+
# than * for the cluster name.
|
|
9544
9544
|
# @return [String]
|
|
9545
9545
|
#
|
|
9546
9546
|
# @!attribute [rw] account_with_restore_access
|
data/lib/aws-sdk-redshift.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-redshift
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.91.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-02-
|
|
11
|
+
date: 2023-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|