aws-sdk-rds 1.93.0 → 1.94.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d129b7c49cd98d39819d57d51af738ad5065bf598d24c3de779332db7e8a75b7
4
- data.tar.gz: ff7d2f3e6bec679350b20ef24fa58a8b4973baa1bc88524006fc96a70160dae2
3
+ metadata.gz: 4e41805325afd57c9079fc89b0269928bb0e812d0a1752b0b9ee09e3045facbe
4
+ data.tar.gz: 121d8605e0c9565e17ff265f55d2e6533fe2bfed7a8954415d07c971d1c0524b
5
5
  SHA512:
6
- metadata.gz: f2ec1e6866037e2b37993035953fbcfff8f202a13e0f9b870fc399c58e110f950d6398b77a54615039b81317c2dd18aeb68fc0571a9af295a58fff91ec4a95a3
7
- data.tar.gz: 9d2dd5c068c0c1aac31f7feee42ecaa77c071e4533d3491eefbfa0eb94d2a1246c397abd56038890098496976f238d63f9499d419bc5cc061b9c7f7a993b628b
6
+ metadata.gz: e268e9ca0f32aea481b6cb07f93d7ff971c77bdc33cf170839036f9b2bc383d8f11f18f4cd7acf88c3f295058c87e8a39dd7c1902fd2d5a5afafaa03559814f9
7
+ data.tar.gz: 98100b783b69742ccefbfe56ae6fea8b362f429c37a48d64362ef8f67138e8fa72e95b92e5f633d9d9894cc74d8df84afb538e555b152abd91e86bca5c619db3
@@ -73,6 +73,6 @@ require_relative 'aws-sdk-rds/customizations'
73
73
  # @service
74
74
  module Aws::RDS
75
75
 
76
- GEM_VERSION = '1.93.0'
76
+ GEM_VERSION = '1.94.0'
77
77
 
78
78
  end
@@ -7652,6 +7652,8 @@ module Aws::RDS
7652
7652
  # resp.db_engine_versions[0].supported_feature_names #=> Array
7653
7653
  # resp.db_engine_versions[0].supported_feature_names[0] #=> String
7654
7654
  # resp.db_engine_versions[0].status #=> String
7655
+ # resp.db_engine_versions[0].supports_parallel_query #=> Boolean
7656
+ # resp.db_engine_versions[0].supports_global_databases #=> Boolean
7655
7657
  #
7656
7658
  # @see http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBEngineVersions AWS API Documentation
7657
7659
  #
@@ -10064,6 +10066,7 @@ module Aws::RDS
10064
10066
  # resp.orderable_db_instance_options[0].supports_storage_autoscaling #=> Boolean
10065
10067
  # resp.orderable_db_instance_options[0].supports_kerberos_authentication #=> Boolean
10066
10068
  # resp.orderable_db_instance_options[0].outpost_capable #=> Boolean
10069
+ # resp.orderable_db_instance_options[0].supports_global_databases #=> Boolean
10067
10070
  # resp.marker #=> String
10068
10071
  #
10069
10072
  # @see http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOrderableDBInstanceOptions AWS API Documentation
@@ -18533,7 +18536,7 @@ module Aws::RDS
18533
18536
  params: params,
18534
18537
  config: config)
18535
18538
  context[:gem_name] = 'aws-sdk-rds'
18536
- context[:gem_version] = '1.93.0'
18539
+ context[:gem_version] = '1.94.0'
18537
18540
  Seahorse::Client::Request.new(handlers, context)
18538
18541
  end
18539
18542
 
@@ -1226,6 +1226,8 @@ module Aws::RDS
1226
1226
  DBEngineVersion.add_member(:supported_engine_modes, Shapes::ShapeRef.new(shape: EngineModeList, location_name: "SupportedEngineModes"))
1227
1227
  DBEngineVersion.add_member(:supported_feature_names, Shapes::ShapeRef.new(shape: FeatureNameList, location_name: "SupportedFeatureNames"))
1228
1228
  DBEngineVersion.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
1229
+ DBEngineVersion.add_member(:supports_parallel_query, Shapes::ShapeRef.new(shape: Boolean, location_name: "SupportsParallelQuery"))
1230
+ DBEngineVersion.add_member(:supports_global_databases, Shapes::ShapeRef.new(shape: Boolean, location_name: "SupportsGlobalDatabases"))
1229
1231
  DBEngineVersion.struct_class = Types::DBEngineVersion
1230
1232
 
1231
1233
  DBEngineVersionList.member = Shapes::ShapeRef.new(shape: DBEngineVersion, location_name: "DBEngineVersion")
@@ -2552,6 +2554,7 @@ module Aws::RDS
2552
2554
  OrderableDBInstanceOption.add_member(:supports_storage_autoscaling, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "SupportsStorageAutoscaling"))
2553
2555
  OrderableDBInstanceOption.add_member(:supports_kerberos_authentication, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "SupportsKerberosAuthentication"))
2554
2556
  OrderableDBInstanceOption.add_member(:outpost_capable, Shapes::ShapeRef.new(shape: Boolean, location_name: "OutpostCapable"))
2557
+ OrderableDBInstanceOption.add_member(:supports_global_databases, Shapes::ShapeRef.new(shape: Boolean, location_name: "SupportsGlobalDatabases"))
2555
2558
  OrderableDBInstanceOption.struct_class = Types::OrderableDBInstanceOption
2556
2559
 
2557
2560
  OrderableDBInstanceOptionsList.member = Shapes::ShapeRef.new(shape: OrderableDBInstanceOption, location_name: "OrderableDBInstanceOption")
@@ -4,30 +4,20 @@ require 'aws-sigv4'
4
4
 
5
5
  module Aws
6
6
  module RDS
7
-
8
- # The utility class helps generate an auth token that supports database login
9
- # It provides a method:
7
+ # A utility class that generates an auth token that supports database
8
+ # logins. IAM credentials are used for authentication instead of the
9
+ # database password.
10
10
  #
11
- # * {#auth_token} - Computes a login token which is similar to
12
- # a presigned url
11
+ # @see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html
13
12
  class AuthTokenGenerator
14
-
15
- # @option options [required, Credentials] :credentials
16
- # You need provide an object that responds to `#credentials`
17
- # returning another object that responds to `#access_key_id`, `#secret_access_key`,
18
- # and `#session_token`.
19
- #
20
- # For example, you could provide an instance of following classes:
21
- # * `Aws::Credentials`
22
- # * `Aws::SharedCredentials`
23
- # * `Aws::InstanceProfileCredentials`
24
- # * `Aws::AssumeRoleCredentials`
25
- # * `Aws::ECSCredentials`
13
+ # @option options [required, Credentials] :credentials An object that
14
+ # responds to `#credentials` returning another object that responds to
15
+ # `#access_key_id`, `#secret_access_key`, and `#session_token`.
26
16
  def initialize(options = {})
27
17
  @credentials = options.fetch(:credentials)
28
18
  end
29
19
 
30
- # To create a auth login token, following parameters are required:
20
+ # Creates an auth login token.
31
21
  #
32
22
  # @param [Hash] params The parameters for auth token creation.
33
23
  # @option params [required, String] :region Region where the database
@@ -35,7 +25,7 @@ module Aws
35
25
  # @option params [required, String] :endpoint Hostname of the database
36
26
  # with a port number.
37
27
  # For example: my-instance.us-west-2.rds.amazonaws.com:3306
38
- # @option params [required, String] :user_name Username to login as
28
+ # @option params [required, String] :user_name Username to login as.
39
29
  #
40
30
  # @return [String]
41
31
  def auth_token(params)
@@ -52,17 +42,16 @@ module Aws
52
42
  region: region,
53
43
  credentials_provider: @credentials
54
44
  )
55
- url = "https://" + endpoint + "/?#{param_list.to_s}"
45
+
56
46
  presigned_url = signer.presign_url(
57
47
  http_method: 'GET',
58
- url: url,
48
+ url: "https://#{endpoint}/?#{param_list}",
59
49
  body: '',
60
50
  expires_in: 900
61
51
  ).to_s
62
52
  # Remove extra scheme for token
63
53
  presigned_url[8..-1]
64
54
  end
65
-
66
55
  end
67
56
  end
68
57
  end
@@ -141,6 +141,20 @@ module Aws::RDS
141
141
  data[:status]
142
142
  end
143
143
 
144
+ # A value that indicates whether you can use Aurora parallel query with
145
+ # a specific DB engine version.
146
+ # @return [Boolean]
147
+ def supports_parallel_query
148
+ data[:supports_parallel_query]
149
+ end
150
+
151
+ # A value that indicates whether you can use Aurora global databases
152
+ # with a specific DB engine version.
153
+ # @return [Boolean]
154
+ def supports_global_databases
155
+ data[:supports_global_databases]
156
+ end
157
+
144
158
  # @!endgroup
145
159
 
146
160
  # @return [Client]
@@ -19,7 +19,7 @@ module Aws
19
19
 
20
20
  def call(context)
21
21
  params = context.params
22
- if params[:source_region] && !params[:pre_signed_url]
22
+ if params.is_a?(Hash) && params[:source_region] && !params[:pre_signed_url]
23
23
  params[:pre_signed_url] = presigned_url(context, params)
24
24
  params[:destination_region] = context.config.region
25
25
  end
@@ -5886,6 +5886,16 @@ module Aws::RDS
5886
5886
  # `deprecated`.
5887
5887
  # @return [String]
5888
5888
  #
5889
+ # @!attribute [rw] supports_parallel_query
5890
+ # A value that indicates whether you can use Aurora parallel query
5891
+ # with a specific DB engine version.
5892
+ # @return [Boolean]
5893
+ #
5894
+ # @!attribute [rw] supports_global_databases
5895
+ # A value that indicates whether you can use Aurora global databases
5896
+ # with a specific DB engine version.
5897
+ # @return [Boolean]
5898
+ #
5889
5899
  # @see http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBEngineVersion AWS API Documentation
5890
5900
  #
5891
5901
  class DBEngineVersion < Struct.new(
@@ -5903,7 +5913,9 @@ module Aws::RDS
5903
5913
  :supports_read_replica,
5904
5914
  :supported_engine_modes,
5905
5915
  :supported_feature_names,
5906
- :status)
5916
+ :status,
5917
+ :supports_parallel_query,
5918
+ :supports_global_databases)
5907
5919
  SENSITIVE = []
5908
5920
  include Aws::Structure
5909
5921
  end
@@ -15071,6 +15083,11 @@ module Aws::RDS
15071
15083
  # [1]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html
15072
15084
  # @return [Boolean]
15073
15085
  #
15086
+ # @!attribute [rw] supports_global_databases
15087
+ # A value that indicates whether you can use Aurora global databases
15088
+ # with a specific combination of other DB engine attributes.
15089
+ # @return [Boolean]
15090
+ #
15074
15091
  # @see http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/OrderableDBInstanceOption AWS API Documentation
15075
15092
  #
15076
15093
  class OrderableDBInstanceOption < Struct.new(
@@ -15099,7 +15116,8 @@ module Aws::RDS
15099
15116
  :supported_engine_modes,
15100
15117
  :supports_storage_autoscaling,
15101
15118
  :supports_kerberos_authentication,
15102
- :outpost_capable)
15119
+ :outpost_capable,
15120
+ :supports_global_databases)
15103
15121
  SENSITIVE = []
15104
15122
  include Aws::Structure
15105
15123
  end
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.93.0
4
+ version: 1.94.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: 2020-07-06 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4