aws-sdk-redshift 1.108.0 → 1.110.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: 3197ebcb900a8cc673ec0017e9211c9c91eb9cfeaa5cddaf4c33e42cf3dcdf8f
4
- data.tar.gz: ed91efeb4e81fd6320bf5fd600423b69ce4c4820faa6e4bc7baf95694cbfee5a
3
+ metadata.gz: 12ff5641eca1cb59ba0daafe618acdd9bff0df739e3dcda9b641093dcb59e2e3
4
+ data.tar.gz: 9f0191b4796c662b88c864bd2dc8dde02d6b2b292af87847c47794774dc207ba
5
5
  SHA512:
6
- metadata.gz: c5de85e8db7a8d9b0cf6d2208e276ee9106f6adfb3d1668fd5785c2dc44d8bbff9c1ca1d39d78be4fad4e22cbf755671618fb5e9e5fdfabe05158c037f15b244
7
- data.tar.gz: 9c2b6b52a1887383bc9c230430ed5314c7f0215a821a3b71ff02ecde29e27fd2ecae3518fc97693a3df96ed0fe96841ea6fe0e5bba1a70c1183d0f65669abc61
6
+ metadata.gz: 7d45a1276a7d3910a41d50d84956562cf9a09e4f74104d26f8b528b12f9dfb74f95b739624a34a4d63fa09d3664a41f7b60022fa96406505f807a9a380baad82
7
+ data.tar.gz: 333248b0b27526876ee6190b6a9677134c9b83b3c3cc418f1fc867a4b1abccefe9830530c0a8d7afe2795a079c43f44d7715afc6c0f6018e398519bdf4a7dde6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.110.0 (2024-03-06)
5
+ ------------------
6
+
7
+ * Feature - Update for documentation only. Covers port ranges, definition updates for data sharing, and definition updates to cluster-snapshot documentation.
8
+
9
+ 1.109.0 (2024-02-07)
10
+ ------------------
11
+
12
+ * Feature - LisRecommendations API to fetch Amazon Redshift Advisor recommendations.
13
+
4
14
  1.108.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.108.0
1
+ 1.110.0
@@ -492,15 +492,15 @@ module Aws::Redshift
492
492
  #
493
493
  # @option params [required, String] :data_share_arn
494
494
  # The Amazon Resource Name (ARN) of the datashare that the consumer is
495
- # to use with the account or the namespace.
495
+ # to use.
496
496
  #
497
497
  # @option params [Boolean] :associate_entire_account
498
498
  # A value that specifies whether the datashare is associated with the
499
499
  # entire account.
500
500
  #
501
501
  # @option params [String] :consumer_arn
502
- # The Amazon Resource Name (ARN) of the consumer that is associated with
503
- # the datashare.
502
+ # The Amazon Resource Name (ARN) of the consumer namespace associated
503
+ # with the datashare.
504
504
  #
505
505
  # @option params [String] :consumer_region
506
506
  # From a datashare consumer account, associates a datashare with all
@@ -644,8 +644,8 @@ module Aws::Redshift
644
644
  # correct access permissions.
645
645
  #
646
646
  # @option params [required, String] :data_share_arn
647
- # The Amazon Resource Name (ARN) of the datashare that producers are to
648
- # authorize sharing for.
647
+ # The Amazon Resource Name (ARN) of the datashare namespace that
648
+ # producers are to authorize sharing for.
649
649
  #
650
650
  # @option params [required, String] :consumer_identifier
651
651
  # The identifier of the data consumer that is authorized to access the
@@ -766,10 +766,16 @@ module Aws::Redshift
766
766
  # The Amazon Resource Name (ARN) of the snapshot to authorize access to.
767
767
  #
768
768
  # @option params [String] :snapshot_cluster_identifier
769
- # The identifier of the cluster the snapshot was created from. This
770
- # parameter is required if your IAM user has a policy containing a
771
- # snapshot resource element that specifies anything other than * for
772
- # the cluster name.
769
+ # The identifier of the cluster the snapshot was created from.
770
+ #
771
+ # * *If the snapshot to access doesn't exist and the associated IAM
772
+ # policy doesn't allow access to all (*) snapshots* - This parameter
773
+ # is required. Otherwise, permissions aren't available to check if
774
+ # the snapshot exists.
775
+ #
776
+ # * *If the snapshot to access exists* - This parameter isn't required.
777
+ # Redshift can retrieve the cluster identifier and use it to validate
778
+ # snapshot authorization.
773
779
  #
774
780
  # @option params [required, String] :account_with_restore_access
775
781
  # The identifier of the Amazon Web Services account authorized to
@@ -1391,7 +1397,15 @@ module Aws::Redshift
1391
1397
  #
1392
1398
  # Default: `5439`
1393
1399
  #
1394
- # Valid Values: `1150-65535`
1400
+ # Valid Values:
1401
+ #
1402
+ # * For clusters with ra3 nodes - Select a port within the ranges
1403
+ # `5431-5455` or `8191-8215`. (If you have an existing cluster with
1404
+ # ra3 nodes, it isn't required that you change the port to these
1405
+ # ranges.)
1406
+ #
1407
+ # * For clusters with ds2 or dc2 nodes - Select a port within the range
1408
+ # `1150-65535`.
1395
1409
  #
1396
1410
  # @option params [String] :cluster_version
1397
1411
  # The version of the Amazon Redshift engine software that you want to
@@ -2983,7 +2997,7 @@ module Aws::Redshift
2983
2997
  # specified datashare.
2984
2998
  #
2985
2999
  # @option params [required, String] :data_share_arn
2986
- # The Amazon Resource Name (ARN) of the datashare to remove
3000
+ # The namespace Amazon Resource Name (ARN) of the datashare to remove
2987
3001
  # authorization from.
2988
3002
  #
2989
3003
  # @option params [required, String] :consumer_identifier
@@ -5004,7 +5018,8 @@ module Aws::Redshift
5004
5018
  # the specified account.
5005
5019
  #
5006
5020
  # @option params [String] :data_share_arn
5007
- # The identifier of the datashare to describe details of.
5021
+ # The Amazon resource name (ARN) of the datashare to describe details
5022
+ # of.
5008
5023
  #
5009
5024
  # @option params [Integer] :max_records
5010
5025
  # The maximum number of response records to return in each call. If the
@@ -5067,8 +5082,8 @@ module Aws::Redshift
5067
5082
  # is a consumer account identifier.
5068
5083
  #
5069
5084
  # @option params [String] :consumer_arn
5070
- # The Amazon Resource Name (ARN) of the consumer that returns in the
5071
- # list of datashares.
5085
+ # The Amazon Resource Name (ARN) of the consumer namespace that returns
5086
+ # in the list of datashares.
5072
5087
  #
5073
5088
  # @option params [String] :status
5074
5089
  # An identifier giving the status of a datashare in the consumer
@@ -5137,8 +5152,8 @@ module Aws::Redshift
5137
5152
  # is a producer account identifier.
5138
5153
  #
5139
5154
  # @option params [String] :producer_arn
5140
- # The Amazon Resource Name (ARN) of the producer that returns in the
5141
- # list of datashares.
5155
+ # The Amazon Resource Name (ARN) of the producer namespace that returns
5156
+ # in the list of datashares.
5142
5157
  #
5143
5158
  # @option params [String] :status
5144
5159
  # An identifier giving the status of a datashare in the producer. If
@@ -7414,8 +7429,8 @@ module Aws::Redshift
7414
7429
  # removed from the entire account.
7415
7430
  #
7416
7431
  # @option params [String] :consumer_arn
7417
- # The Amazon Resource Name (ARN) of the consumer that association for
7418
- # the datashare is removed from.
7432
+ # The Amazon Resource Name (ARN) of the consumer namespace that
7433
+ # association for the datashare is removed from.
7419
7434
  #
7420
7435
  # @option params [String] :consumer_region
7421
7436
  # From a datashare consumer account, removes association of a datashare
@@ -8319,6 +8334,86 @@ module Aws::Redshift
8319
8334
  req.send_request(options)
8320
8335
  end
8321
8336
 
8337
+ # List the Amazon Redshift Advisor recommendations for one or multiple
8338
+ # Amazon Redshift clusters in an Amazon Web Services account.
8339
+ #
8340
+ # @option params [String] :cluster_identifier
8341
+ # The unique identifier of the Amazon Redshift cluster for which the
8342
+ # list of Advisor recommendations is returned. If the neither the
8343
+ # cluster identifier and the cluster namespace ARN parameters are
8344
+ # specified, then recommendations for all clusters in the account are
8345
+ # returned.
8346
+ #
8347
+ # @option params [String] :namespace_arn
8348
+ # The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for
8349
+ # which the list of Advisor recommendations is returned. If the neither
8350
+ # the cluster identifier and the cluster namespace ARN parameters are
8351
+ # specified, then recommendations for all clusters in the account are
8352
+ # returned.
8353
+ #
8354
+ # @option params [Integer] :max_records
8355
+ # The maximum number of response records to return in each call. If the
8356
+ # number of remaining response records exceeds the specified MaxRecords
8357
+ # value, a value is returned in a marker field of the response. You can
8358
+ # retrieve the next set of records by retrying the command with the
8359
+ # returned marker value.
8360
+ #
8361
+ # @option params [String] :marker
8362
+ # A value that indicates the starting point for the next set of response
8363
+ # records in a subsequent request. If a value is returned in a response,
8364
+ # you can retrieve the next set of records by providing this returned
8365
+ # marker value in the Marker parameter and retrying the command. If the
8366
+ # Marker field is empty, all response records have been retrieved for
8367
+ # the request.
8368
+ #
8369
+ # @return [Types::ListRecommendationsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8370
+ #
8371
+ # * {Types::ListRecommendationsResult#recommendations #recommendations} => Array<Types::Recommendation>
8372
+ # * {Types::ListRecommendationsResult#marker #marker} => String
8373
+ #
8374
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
8375
+ #
8376
+ # @example Request syntax with placeholder values
8377
+ #
8378
+ # resp = client.list_recommendations({
8379
+ # cluster_identifier: "String",
8380
+ # namespace_arn: "String",
8381
+ # max_records: 1,
8382
+ # marker: "String",
8383
+ # })
8384
+ #
8385
+ # @example Response structure
8386
+ #
8387
+ # resp.recommendations #=> Array
8388
+ # resp.recommendations[0].id #=> String
8389
+ # resp.recommendations[0].cluster_identifier #=> String
8390
+ # resp.recommendations[0].namespace_arn #=> String
8391
+ # resp.recommendations[0].created_at #=> Time
8392
+ # resp.recommendations[0].recommendation_type #=> String
8393
+ # resp.recommendations[0].title #=> String
8394
+ # resp.recommendations[0].description #=> String
8395
+ # resp.recommendations[0].observation #=> String
8396
+ # resp.recommendations[0].impact_ranking #=> String, one of "HIGH", "MEDIUM", "LOW"
8397
+ # resp.recommendations[0].recommendation_text #=> String
8398
+ # resp.recommendations[0].recommended_actions #=> Array
8399
+ # resp.recommendations[0].recommended_actions[0].text #=> String
8400
+ # resp.recommendations[0].recommended_actions[0].database #=> String
8401
+ # resp.recommendations[0].recommended_actions[0].command #=> String
8402
+ # resp.recommendations[0].recommended_actions[0].type #=> String, one of "SQL", "CLI"
8403
+ # resp.recommendations[0].reference_links #=> Array
8404
+ # resp.recommendations[0].reference_links[0].text #=> String
8405
+ # resp.recommendations[0].reference_links[0].link #=> String
8406
+ # resp.marker #=> String
8407
+ #
8408
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ListRecommendations AWS API Documentation
8409
+ #
8410
+ # @overload list_recommendations(params = {})
8411
+ # @param [Hash] params ({})
8412
+ def list_recommendations(params = {}, options = {})
8413
+ req = build_request(:list_recommendations, params)
8414
+ req.send_request(options)
8415
+ end
8416
+
8322
8417
  # This operation is retired. Calling this operation does not change AQUA
8323
8418
  # configuration. Amazon Redshift automatically determines whether to use
8324
8419
  # AQUA (Advanced Query Accelerator).
@@ -8676,6 +8771,16 @@ module Aws::Redshift
8676
8771
  # @option params [Integer] :port
8677
8772
  # The option to change the port of an Amazon Redshift cluster.
8678
8773
  #
8774
+ # Valid Values:
8775
+ #
8776
+ # * For clusters with ra3 nodes - Select a port within the ranges
8777
+ # `5431-5455` or `8191-8215`. (If you have an existing cluster with
8778
+ # ra3 nodes, it isn't required that you change the port to these
8779
+ # ranges.)
8780
+ #
8781
+ # * For clusters with ds2 or dc2 nodes - Select a port within the range
8782
+ # `1150-65535`.
8783
+ #
8679
8784
  # @option params [Boolean] :manage_master_password
8680
8785
  # If `true`, Amazon Redshift uses Secrets Manager to manage this
8681
8786
  # cluster's admin credentials. You can't use `MasterUserPassword` if
@@ -11140,7 +11245,9 @@ module Aws::Redshift
11140
11245
  #
11141
11246
  # Default: The same port as the original cluster.
11142
11247
  #
11143
- # Constraints: Must be between `1115` and `65535`.
11248
+ # Valid values: For clusters with ds2 or dc2 nodes, must be within the
11249
+ # range `1150`-`65535`. For clusters with ra3 nodes, must be within the
11250
+ # ranges `5431`-`5455` or `8191`-`8215`.
11144
11251
  #
11145
11252
  # @option params [String] :availability_zone
11146
11253
  # The Amazon EC2 Availability Zone in which to restore the cluster.
@@ -12285,7 +12392,7 @@ module Aws::Redshift
12285
12392
  params: params,
12286
12393
  config: config)
12287
12394
  context[:gem_name] = 'aws-sdk-redshift'
12288
- context[:gem_version] = '1.108.0'
12395
+ context[:gem_version] = '1.110.0'
12289
12396
  Seahorse::Client::Request.new(handlers, context)
12290
12397
  end
12291
12398
 
@@ -312,6 +312,7 @@ module Aws::Redshift
312
312
  IamRoleArnList = Shapes::ListShape.new(name: 'IamRoleArnList')
313
313
  IdcDisplayNameString = Shapes::StringShape.new(name: 'IdcDisplayNameString')
314
314
  IdentityNamespaceString = Shapes::StringShape.new(name: 'IdentityNamespaceString')
315
+ ImpactRankingType = Shapes::StringShape.new(name: 'ImpactRankingType')
315
316
  ImportTablesCompleted = Shapes::ListShape.new(name: 'ImportTablesCompleted')
316
317
  ImportTablesInProgress = Shapes::ListShape.new(name: 'ImportTablesInProgress')
317
318
  ImportTablesNotStarted = Shapes::ListShape.new(name: 'ImportTablesNotStarted')
@@ -363,6 +364,8 @@ module Aws::Redshift
363
364
  LakeFormationScopeUnion = Shapes::UnionShape.new(name: 'LakeFormationScopeUnion')
364
365
  LakeFormationServiceIntegrations = Shapes::ListShape.new(name: 'LakeFormationServiceIntegrations')
365
366
  LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
367
+ ListRecommendationsMessage = Shapes::StructureShape.new(name: 'ListRecommendationsMessage')
368
+ ListRecommendationsResult = Shapes::StructureShape.new(name: 'ListRecommendationsResult')
366
369
  LogDestinationType = Shapes::StringShape.new(name: 'LogDestinationType')
367
370
  LogTypeList = Shapes::ListShape.new(name: 'LogTypeList')
368
371
  LoggingStatus = Shapes::StructureShape.new(name: 'LoggingStatus')
@@ -439,6 +442,11 @@ module Aws::Redshift
439
442
  PutResourcePolicyResult = Shapes::StructureShape.new(name: 'PutResourcePolicyResult')
440
443
  RebootClusterMessage = Shapes::StructureShape.new(name: 'RebootClusterMessage')
441
444
  RebootClusterResult = Shapes::StructureShape.new(name: 'RebootClusterResult')
445
+ Recommendation = Shapes::StructureShape.new(name: 'Recommendation')
446
+ RecommendationList = Shapes::ListShape.new(name: 'RecommendationList')
447
+ RecommendedAction = Shapes::StructureShape.new(name: 'RecommendedAction')
448
+ RecommendedActionList = Shapes::ListShape.new(name: 'RecommendedActionList')
449
+ RecommendedActionType = Shapes::StringShape.new(name: 'RecommendedActionType')
442
450
  RecurringCharge = Shapes::StructureShape.new(name: 'RecurringCharge')
443
451
  RecurringChargeList = Shapes::ListShape.new(name: 'RecurringChargeList')
444
452
  RedshiftIdcApplication = Shapes::StructureShape.new(name: 'RedshiftIdcApplication')
@@ -447,6 +455,8 @@ module Aws::Redshift
447
455
  RedshiftIdcApplicationName = Shapes::StringShape.new(name: 'RedshiftIdcApplicationName')
448
456
  RedshiftIdcApplicationNotExistsFault = Shapes::StructureShape.new(name: 'RedshiftIdcApplicationNotExistsFault')
449
457
  RedshiftIdcApplicationQuotaExceededFault = Shapes::StructureShape.new(name: 'RedshiftIdcApplicationQuotaExceededFault')
458
+ ReferenceLink = Shapes::StructureShape.new(name: 'ReferenceLink')
459
+ ReferenceLinkList = Shapes::ListShape.new(name: 'ReferenceLinkList')
450
460
  RejectDataShareMessage = Shapes::StructureShape.new(name: 'RejectDataShareMessage')
451
461
  ReservedNode = Shapes::StructureShape.new(name: 'ReservedNode')
452
462
  ReservedNodeAlreadyExistsFault = Shapes::StructureShape.new(name: 'ReservedNodeAlreadyExistsFault')
@@ -1960,6 +1970,16 @@ module Aws::Redshift
1960
1970
 
1961
1971
  LimitExceededFault.struct_class = Types::LimitExceededFault
1962
1972
 
1973
+ ListRecommendationsMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "ClusterIdentifier"))
1974
+ ListRecommendationsMessage.add_member(:namespace_arn, Shapes::ShapeRef.new(shape: String, location_name: "NamespaceArn"))
1975
+ ListRecommendationsMessage.add_member(:max_records, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "MaxRecords"))
1976
+ ListRecommendationsMessage.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
1977
+ ListRecommendationsMessage.struct_class = Types::ListRecommendationsMessage
1978
+
1979
+ ListRecommendationsResult.add_member(:recommendations, Shapes::ShapeRef.new(shape: RecommendationList, location_name: "Recommendations"))
1980
+ ListRecommendationsResult.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
1981
+ ListRecommendationsResult.struct_class = Types::ListRecommendationsResult
1982
+
1963
1983
  LogTypeList.member = Shapes::ShapeRef.new(shape: String)
1964
1984
 
1965
1985
  LoggingStatus.add_member(:logging_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LoggingEnabled"))
@@ -2265,6 +2285,30 @@ module Aws::Redshift
2265
2285
  RebootClusterResult.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "Cluster"))
2266
2286
  RebootClusterResult.struct_class = Types::RebootClusterResult
2267
2287
 
2288
+ Recommendation.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
2289
+ Recommendation.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "ClusterIdentifier"))
2290
+ Recommendation.add_member(:namespace_arn, Shapes::ShapeRef.new(shape: String, location_name: "NamespaceArn"))
2291
+ Recommendation.add_member(:created_at, Shapes::ShapeRef.new(shape: TStamp, location_name: "CreatedAt"))
2292
+ Recommendation.add_member(:recommendation_type, Shapes::ShapeRef.new(shape: String, location_name: "RecommendationType"))
2293
+ Recommendation.add_member(:title, Shapes::ShapeRef.new(shape: String, location_name: "Title"))
2294
+ Recommendation.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
2295
+ Recommendation.add_member(:observation, Shapes::ShapeRef.new(shape: String, location_name: "Observation"))
2296
+ Recommendation.add_member(:impact_ranking, Shapes::ShapeRef.new(shape: ImpactRankingType, location_name: "ImpactRanking"))
2297
+ Recommendation.add_member(:recommendation_text, Shapes::ShapeRef.new(shape: String, location_name: "RecommendationText"))
2298
+ Recommendation.add_member(:recommended_actions, Shapes::ShapeRef.new(shape: RecommendedActionList, location_name: "RecommendedActions"))
2299
+ Recommendation.add_member(:reference_links, Shapes::ShapeRef.new(shape: ReferenceLinkList, location_name: "ReferenceLinks"))
2300
+ Recommendation.struct_class = Types::Recommendation
2301
+
2302
+ RecommendationList.member = Shapes::ShapeRef.new(shape: Recommendation, location_name: "Recommendation")
2303
+
2304
+ RecommendedAction.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
2305
+ RecommendedAction.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "Database"))
2306
+ RecommendedAction.add_member(:command, Shapes::ShapeRef.new(shape: String, location_name: "Command"))
2307
+ RecommendedAction.add_member(:type, Shapes::ShapeRef.new(shape: RecommendedActionType, location_name: "Type"))
2308
+ RecommendedAction.struct_class = Types::RecommendedAction
2309
+
2310
+ RecommendedActionList.member = Shapes::ShapeRef.new(shape: RecommendedAction, location_name: "RecommendedAction")
2311
+
2268
2312
  RecurringCharge.add_member(:recurring_charge_amount, Shapes::ShapeRef.new(shape: Double, location_name: "RecurringChargeAmount"))
2269
2313
  RecurringCharge.add_member(:recurring_charge_frequency, Shapes::ShapeRef.new(shape: String, location_name: "RecurringChargeFrequency"))
2270
2314
  RecurringCharge.struct_class = Types::RecurringCharge
@@ -2291,6 +2335,12 @@ module Aws::Redshift
2291
2335
 
2292
2336
  RedshiftIdcApplicationQuotaExceededFault.struct_class = Types::RedshiftIdcApplicationQuotaExceededFault
2293
2337
 
2338
+ ReferenceLink.add_member(:text, Shapes::ShapeRef.new(shape: String, location_name: "Text"))
2339
+ ReferenceLink.add_member(:link, Shapes::ShapeRef.new(shape: String, location_name: "Link"))
2340
+ ReferenceLink.struct_class = Types::ReferenceLink
2341
+
2342
+ ReferenceLinkList.member = Shapes::ShapeRef.new(shape: ReferenceLink, location_name: "ReferenceLink")
2343
+
2294
2344
  RejectDataShareMessage.add_member(:data_share_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DataShareArn"))
2295
2345
  RejectDataShareMessage.struct_class = Types::RejectDataShareMessage
2296
2346
 
@@ -4194,6 +4244,22 @@ module Aws::Redshift
4194
4244
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationFault)
4195
4245
  end)
4196
4246
 
4247
+ api.add_operation(:list_recommendations, Seahorse::Model::Operation.new.tap do |o|
4248
+ o.name = "ListRecommendations"
4249
+ o.http_method = "POST"
4250
+ o.http_request_uri = "/"
4251
+ o.input = Shapes::ShapeRef.new(shape: ListRecommendationsMessage)
4252
+ o.output = Shapes::ShapeRef.new(shape: ListRecommendationsResult)
4253
+ o.errors << Shapes::ShapeRef.new(shape: ClusterNotFoundFault)
4254
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationFault)
4255
+ o[:pager] = Aws::Pager.new(
4256
+ limit_key: "max_records",
4257
+ tokens: {
4258
+ "marker" => "marker"
4259
+ }
4260
+ )
4261
+ end)
4262
+
4197
4263
  api.add_operation(:modify_aqua_configuration, Seahorse::Model::Operation.new.tap do |o|
4198
4264
  o.name = "ModifyAquaConfiguration"
4199
4265
  o.http_method = "POST"
@@ -1398,6 +1398,20 @@ module Aws::Redshift
1398
1398
  end
1399
1399
  end
1400
1400
 
1401
+ class ListRecommendations
1402
+ def self.build(context)
1403
+ unless context.config.regional_endpoint
1404
+ endpoint = context.config.endpoint.to_s
1405
+ end
1406
+ Aws::Redshift::EndpointParameters.new(
1407
+ region: context.config.region,
1408
+ use_dual_stack: context.config.use_dualstack_endpoint,
1409
+ use_fips: context.config.use_fips_endpoint,
1410
+ endpoint: endpoint,
1411
+ )
1412
+ end
1413
+ end
1414
+
1401
1415
  class ModifyAquaConfiguration
1402
1416
  def self.build(context)
1403
1417
  unless context.config.regional_endpoint
@@ -256,6 +256,8 @@ module Aws::Redshift
256
256
  Aws::Redshift::Endpoints::GetReservedNodeExchangeOfferings.build(context)
257
257
  when :get_resource_policy
258
258
  Aws::Redshift::Endpoints::GetResourcePolicy.build(context)
259
+ when :list_recommendations
260
+ Aws::Redshift::Endpoints::ListRecommendations.build(context)
259
261
  when :modify_aqua_configuration
260
262
  Aws::Redshift::Endpoints::ModifyAquaConfiguration.build(context)
261
263
  when :modify_authentication_profile
@@ -133,7 +133,7 @@ module Aws::Redshift
133
133
 
134
134
  # @!attribute [rw] data_share_arn
135
135
  # The Amazon Resource Name (ARN) of the datashare that the consumer is
136
- # to use with the account or the namespace.
136
+ # to use.
137
137
  # @return [String]
138
138
  #
139
139
  # @!attribute [rw] associate_entire_account
@@ -142,7 +142,7 @@ module Aws::Redshift
142
142
  # @return [Boolean]
143
143
  #
144
144
  # @!attribute [rw] consumer_arn
145
- # The Amazon Resource Name (ARN) of the consumer that is associated
145
+ # The Amazon Resource Name (ARN) of the consumer namespace associated
146
146
  # with the datashare.
147
147
  # @return [String]
148
148
  #
@@ -315,8 +315,8 @@ module Aws::Redshift
315
315
  end
316
316
 
317
317
  # @!attribute [rw] data_share_arn
318
- # The Amazon Resource Name (ARN) of the datashare that producers are
319
- # to authorize sharing for.
318
+ # The Amazon Resource Name (ARN) of the datashare namespace that
319
+ # producers are to authorize sharing for.
320
320
  # @return [String]
321
321
  #
322
322
  # @!attribute [rw] consumer_identifier
@@ -371,10 +371,16 @@ module Aws::Redshift
371
371
  # @return [String]
372
372
  #
373
373
  # @!attribute [rw] snapshot_cluster_identifier
374
- # The identifier of the cluster the snapshot was created from. This
375
- # parameter is required if your IAM user has a policy containing a
376
- # snapshot resource element that specifies anything other than * for
377
- # the cluster name.
374
+ # The identifier of the cluster the snapshot was created from.
375
+ #
376
+ # * *If the snapshot to access doesn't exist and the associated IAM
377
+ # policy doesn't allow access to all (*) snapshots* - This
378
+ # parameter is required. Otherwise, permissions aren't available to
379
+ # check if the snapshot exists.
380
+ #
381
+ # * *If the snapshot to access exists* - This parameter isn't
382
+ # required. Redshift can retrieve the cluster identifier and use it
383
+ # to validate snapshot authorization.
378
384
  # @return [String]
379
385
  #
380
386
  # @!attribute [rw] account_with_restore_access
@@ -2132,7 +2138,15 @@ module Aws::Redshift
2132
2138
  #
2133
2139
  # Default: `5439`
2134
2140
  #
2135
- # Valid Values: `1150-65535`
2141
+ # Valid Values:
2142
+ #
2143
+ # * For clusters with ra3 nodes - Select a port within the ranges
2144
+ # `5431-5455` or `8191-8215`. (If you have an existing cluster with
2145
+ # ra3 nodes, it isn't required that you change the port to these
2146
+ # ranges.)
2147
+ #
2148
+ # * For clusters with ds2 or dc2 nodes - Select a port within the
2149
+ # range `1150-65535`.
2136
2150
  # @return [Integer]
2137
2151
  #
2138
2152
  # @!attribute [rw] cluster_version
@@ -3229,15 +3243,12 @@ module Aws::Redshift
3229
3243
  end
3230
3244
 
3231
3245
  # @!attribute [rw] data_share_arn
3232
- # An Amazon Resource Name (ARN) that references the datashare that is
3233
- # owned by a specific namespace of the producer cluster. A datashare
3234
- # ARN is in the
3235
- # `arn:aws:redshift:\{region\}:\{account-id\}:\{datashare\}:\{namespace-guid\}/\{datashare-name\}`
3236
- # format.
3246
+ # The Amazon Resource Name (ARN) of the datashare that the consumer is
3247
+ # to use.
3237
3248
  # @return [String]
3238
3249
  #
3239
3250
  # @!attribute [rw] producer_arn
3240
- # The Amazon Resource Name (ARN) of the producer.
3251
+ # The Amazon Resource Name (ARN) of the producer namespace.
3241
3252
  # @return [String]
3242
3253
  #
3243
3254
  # @!attribute [rw] allow_publicly_accessible_consumers
@@ -3360,7 +3371,7 @@ module Aws::Redshift
3360
3371
  end
3361
3372
 
3362
3373
  # @!attribute [rw] data_share_arn
3363
- # The Amazon Resource Name (ARN) of the datashare to remove
3374
+ # The namespace Amazon Resource Name (ARN) of the datashare to remove
3364
3375
  # authorization from.
3365
3376
  # @return [String]
3366
3377
  #
@@ -4425,8 +4436,8 @@ module Aws::Redshift
4425
4436
  end
4426
4437
 
4427
4438
  # @!attribute [rw] consumer_arn
4428
- # The Amazon Resource Name (ARN) of the consumer that returns in the
4429
- # list of datashares.
4439
+ # The Amazon Resource Name (ARN) of the consumer namespace that
4440
+ # returns in the list of datashares.
4430
4441
  # @return [String]
4431
4442
  #
4432
4443
  # @!attribute [rw] status
@@ -4488,8 +4499,8 @@ module Aws::Redshift
4488
4499
  end
4489
4500
 
4490
4501
  # @!attribute [rw] producer_arn
4491
- # The Amazon Resource Name (ARN) of the producer that returns in the
4492
- # list of datashares.
4502
+ # The Amazon Resource Name (ARN) of the producer namespace that
4503
+ # returns in the list of datashares.
4493
4504
  # @return [String]
4494
4505
  #
4495
4506
  # @!attribute [rw] status
@@ -4551,7 +4562,8 @@ module Aws::Redshift
4551
4562
  end
4552
4563
 
4553
4564
  # @!attribute [rw] data_share_arn
4554
- # The identifier of the datashare to describe details of.
4565
+ # The Amazon resource name (ARN) of the datashare to describe details
4566
+ # of.
4555
4567
  # @return [String]
4556
4568
  #
4557
4569
  # @!attribute [rw] max_records
@@ -5911,8 +5923,8 @@ module Aws::Redshift
5911
5923
  # @return [Boolean]
5912
5924
  #
5913
5925
  # @!attribute [rw] consumer_arn
5914
- # The Amazon Resource Name (ARN) of the consumer that association for
5915
- # the datashare is removed from.
5926
+ # The Amazon Resource Name (ARN) of the consumer namespace that
5927
+ # association for the datashare is removed from.
5916
5928
  # @return [String]
5917
5929
  #
5918
5930
  # @!attribute [rw] consumer_region
@@ -7513,6 +7525,73 @@ module Aws::Redshift
7513
7525
  #
7514
7526
  class LimitExceededFault < Aws::EmptyStructure; end
7515
7527
 
7528
+ # @!attribute [rw] cluster_identifier
7529
+ # The unique identifier of the Amazon Redshift cluster for which the
7530
+ # list of Advisor recommendations is returned. If the neither the
7531
+ # cluster identifier and the cluster namespace ARN parameters are
7532
+ # specified, then recommendations for all clusters in the account are
7533
+ # returned.
7534
+ # @return [String]
7535
+ #
7536
+ # @!attribute [rw] namespace_arn
7537
+ # The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for
7538
+ # which the list of Advisor recommendations is returned. If the
7539
+ # neither the cluster identifier and the cluster namespace ARN
7540
+ # parameters are specified, then recommendations for all clusters in
7541
+ # the account are returned.
7542
+ # @return [String]
7543
+ #
7544
+ # @!attribute [rw] max_records
7545
+ # The maximum number of response records to return in each call. If
7546
+ # the number of remaining response records exceeds the specified
7547
+ # MaxRecords value, a value is returned in a marker field of the
7548
+ # response. You can retrieve the next set of records by retrying the
7549
+ # command with the returned marker value.
7550
+ # @return [Integer]
7551
+ #
7552
+ # @!attribute [rw] marker
7553
+ # A value that indicates the starting point for the next set of
7554
+ # response records in a subsequent request. If a value is returned in
7555
+ # a response, you can retrieve the next set of records by providing
7556
+ # this returned marker value in the Marker parameter and retrying the
7557
+ # command. If the Marker field is empty, all response records have
7558
+ # been retrieved for the request.
7559
+ # @return [String]
7560
+ #
7561
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ListRecommendationsMessage AWS API Documentation
7562
+ #
7563
+ class ListRecommendationsMessage < Struct.new(
7564
+ :cluster_identifier,
7565
+ :namespace_arn,
7566
+ :max_records,
7567
+ :marker)
7568
+ SENSITIVE = []
7569
+ include Aws::Structure
7570
+ end
7571
+
7572
+ # @!attribute [rw] recommendations
7573
+ # The Advisor recommendations for action on the Amazon Redshift
7574
+ # cluster.
7575
+ # @return [Array<Types::Recommendation>]
7576
+ #
7577
+ # @!attribute [rw] marker
7578
+ # A value that indicates the starting point for the next set of
7579
+ # response records in a subsequent request. If a value is returned in
7580
+ # a response, you can retrieve the next set of records by providing
7581
+ # this returned marker value in the Marker parameter and retrying the
7582
+ # command. If the Marker field is empty, all response records have
7583
+ # been retrieved for the request.
7584
+ # @return [String]
7585
+ #
7586
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ListRecommendationsResult AWS API Documentation
7587
+ #
7588
+ class ListRecommendationsResult < Struct.new(
7589
+ :recommendations,
7590
+ :marker)
7591
+ SENSITIVE = []
7592
+ include Aws::Structure
7593
+ end
7594
+
7516
7595
  # Describes the status of logging for a cluster.
7517
7596
  #
7518
7597
  # @!attribute [rw] logging_enabled
@@ -8084,6 +8163,16 @@ module Aws::Redshift
8084
8163
  #
8085
8164
  # @!attribute [rw] port
8086
8165
  # The option to change the port of an Amazon Redshift cluster.
8166
+ #
8167
+ # Valid Values:
8168
+ #
8169
+ # * For clusters with ra3 nodes - Select a port within the ranges
8170
+ # `5431-5455` or `8191-8215`. (If you have an existing cluster with
8171
+ # ra3 nodes, it isn't required that you change the port to these
8172
+ # ranges.)
8173
+ #
8174
+ # * For clusters with ds2 or dc2 nodes - Select a port within the
8175
+ # range `1150-65535`.
8087
8176
  # @return [Integer]
8088
8177
  #
8089
8178
  # @!attribute [rw] manage_master_password
@@ -9204,6 +9293,111 @@ module Aws::Redshift
9204
9293
  include Aws::Structure
9205
9294
  end
9206
9295
 
9296
+ # An Amazon Redshift Advisor recommended action on the Amazon Redshift
9297
+ # cluster.
9298
+ #
9299
+ # @!attribute [rw] id
9300
+ # A unique identifier of the Advisor recommendation.
9301
+ # @return [String]
9302
+ #
9303
+ # @!attribute [rw] cluster_identifier
9304
+ # The unique identifier of the cluster for which the recommendation is
9305
+ # returned.
9306
+ # @return [String]
9307
+ #
9308
+ # @!attribute [rw] namespace_arn
9309
+ # The Amazon Redshift cluster namespace ARN for which the
9310
+ # recommendations is returned.
9311
+ # @return [String]
9312
+ #
9313
+ # @!attribute [rw] created_at
9314
+ # The date and time (UTC) that the recommendation was created.
9315
+ # @return [Time]
9316
+ #
9317
+ # @!attribute [rw] recommendation_type
9318
+ # The type of Advisor recommendation.
9319
+ # @return [String]
9320
+ #
9321
+ # @!attribute [rw] title
9322
+ # The title of the recommendation.
9323
+ # @return [String]
9324
+ #
9325
+ # @!attribute [rw] description
9326
+ # The description of the recommendation.
9327
+ # @return [String]
9328
+ #
9329
+ # @!attribute [rw] observation
9330
+ # The description of what was observed about your cluster.
9331
+ # @return [String]
9332
+ #
9333
+ # @!attribute [rw] impact_ranking
9334
+ # The scale of the impact that the Advisor recommendation has to the
9335
+ # performance and cost of the cluster.
9336
+ # @return [String]
9337
+ #
9338
+ # @!attribute [rw] recommendation_text
9339
+ # The description of the recommendation.
9340
+ # @return [String]
9341
+ #
9342
+ # @!attribute [rw] recommended_actions
9343
+ # List of Amazon Redshift recommended actions.
9344
+ # @return [Array<Types::RecommendedAction>]
9345
+ #
9346
+ # @!attribute [rw] reference_links
9347
+ # List of helpful links for more information about the Advisor
9348
+ # recommendation.
9349
+ # @return [Array<Types::ReferenceLink>]
9350
+ #
9351
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Recommendation AWS API Documentation
9352
+ #
9353
+ class Recommendation < Struct.new(
9354
+ :id,
9355
+ :cluster_identifier,
9356
+ :namespace_arn,
9357
+ :created_at,
9358
+ :recommendation_type,
9359
+ :title,
9360
+ :description,
9361
+ :observation,
9362
+ :impact_ranking,
9363
+ :recommendation_text,
9364
+ :recommended_actions,
9365
+ :reference_links)
9366
+ SENSITIVE = []
9367
+ include Aws::Structure
9368
+ end
9369
+
9370
+ # The recommended action from the Amazon Redshift Advisor
9371
+ # recommendation.
9372
+ #
9373
+ # @!attribute [rw] text
9374
+ # The specific instruction about the command.
9375
+ # @return [String]
9376
+ #
9377
+ # @!attribute [rw] database
9378
+ # The database name to perform the action on. Only applicable if the
9379
+ # type of command is SQL.
9380
+ # @return [String]
9381
+ #
9382
+ # @!attribute [rw] command
9383
+ # The command to run.
9384
+ # @return [String]
9385
+ #
9386
+ # @!attribute [rw] type
9387
+ # The type of command.
9388
+ # @return [String]
9389
+ #
9390
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RecommendedAction AWS API Documentation
9391
+ #
9392
+ class RecommendedAction < Struct.new(
9393
+ :text,
9394
+ :database,
9395
+ :command,
9396
+ :type)
9397
+ SENSITIVE = []
9398
+ include Aws::Structure
9399
+ end
9400
+
9207
9401
  # Describes a recurring charge.
9208
9402
  #
9209
9403
  # @!attribute [rw] recurring_charge_amount
@@ -9312,6 +9506,26 @@ module Aws::Redshift
9312
9506
  #
9313
9507
  class RedshiftIdcApplicationQuotaExceededFault < Aws::EmptyStructure; end
9314
9508
 
9509
+ # A link to an Amazon Redshift Advisor reference for more information
9510
+ # about a recommendation.
9511
+ #
9512
+ # @!attribute [rw] text
9513
+ # The hyperlink text that describes the link to more information.
9514
+ # @return [String]
9515
+ #
9516
+ # @!attribute [rw] link
9517
+ # The URL address to find more information.
9518
+ # @return [String]
9519
+ #
9520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ReferenceLink AWS API Documentation
9521
+ #
9522
+ class ReferenceLink < Struct.new(
9523
+ :text,
9524
+ :link)
9525
+ SENSITIVE = []
9526
+ include Aws::Structure
9527
+ end
9528
+
9315
9529
  # @!attribute [rw] data_share_arn
9316
9530
  # The Amazon Resource Name (ARN) of the datashare to reject.
9317
9531
  # @return [String]
@@ -9954,7 +10168,9 @@ module Aws::Redshift
9954
10168
  #
9955
10169
  # Default: The same port as the original cluster.
9956
10170
  #
9957
- # Constraints: Must be between `1115` and `65535`.
10171
+ # Valid values: For clusters with ds2 or dc2 nodes, must be within the
10172
+ # range `1150`-`65535`. For clusters with ra3 nodes, must be within
10173
+ # the ranges `5431`-`5455` or `8191`-`8215`.
9958
10174
  # @return [Integer]
9959
10175
  #
9960
10176
  # @!attribute [rw] availability_zone
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-redshift/customizations'
53
53
  # @!group service
54
54
  module Aws::Redshift
55
55
 
56
- GEM_VERSION = '1.108.0'
56
+ GEM_VERSION = '1.110.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -1563,6 +1563,20 @@ module Aws
1563
1563
  ) -> _GetResourcePolicyResponseSuccess
1564
1564
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
1565
1565
 
1566
+ interface _ListRecommendationsResponseSuccess
1567
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListRecommendationsResult]
1568
+ def recommendations: () -> ::Array[Types::Recommendation]
1569
+ def marker: () -> ::String
1570
+ end
1571
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Redshift/Client.html#list_recommendations-instance_method
1572
+ def list_recommendations: (
1573
+ ?cluster_identifier: ::String,
1574
+ ?namespace_arn: ::String,
1575
+ ?max_records: ::Integer,
1576
+ ?marker: ::String
1577
+ ) -> _ListRecommendationsResponseSuccess
1578
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListRecommendationsResponseSuccess
1579
+
1566
1580
  interface _ModifyAquaConfigurationResponseSuccess
1567
1581
  include ::Seahorse::Client::_ResponseSuccess[Types::ModifyAquaOutputMessage]
1568
1582
  def aqua_configuration: () -> Types::AquaConfiguration
data/sig/types.rbs CHANGED
@@ -1755,6 +1755,20 @@ module Aws::Redshift
1755
1755
  class LimitExceededFault < Aws::EmptyStructure
1756
1756
  end
1757
1757
 
1758
+ class ListRecommendationsMessage
1759
+ attr_accessor cluster_identifier: ::String
1760
+ attr_accessor namespace_arn: ::String
1761
+ attr_accessor max_records: ::Integer
1762
+ attr_accessor marker: ::String
1763
+ SENSITIVE: []
1764
+ end
1765
+
1766
+ class ListRecommendationsResult
1767
+ attr_accessor recommendations: ::Array[Types::Recommendation]
1768
+ attr_accessor marker: ::String
1769
+ SENSITIVE: []
1770
+ end
1771
+
1758
1772
  class LoggingStatus
1759
1773
  attr_accessor logging_enabled: bool
1760
1774
  attr_accessor bucket_name: ::String
@@ -2147,6 +2161,30 @@ module Aws::Redshift
2147
2161
  SENSITIVE: []
2148
2162
  end
2149
2163
 
2164
+ class Recommendation
2165
+ attr_accessor id: ::String
2166
+ attr_accessor cluster_identifier: ::String
2167
+ attr_accessor namespace_arn: ::String
2168
+ attr_accessor created_at: ::Time
2169
+ attr_accessor recommendation_type: ::String
2170
+ attr_accessor title: ::String
2171
+ attr_accessor description: ::String
2172
+ attr_accessor observation: ::String
2173
+ attr_accessor impact_ranking: ("HIGH" | "MEDIUM" | "LOW")
2174
+ attr_accessor recommendation_text: ::String
2175
+ attr_accessor recommended_actions: ::Array[Types::RecommendedAction]
2176
+ attr_accessor reference_links: ::Array[Types::ReferenceLink]
2177
+ SENSITIVE: []
2178
+ end
2179
+
2180
+ class RecommendedAction
2181
+ attr_accessor text: ::String
2182
+ attr_accessor database: ::String
2183
+ attr_accessor command: ::String
2184
+ attr_accessor type: ("SQL" | "CLI")
2185
+ SENSITIVE: []
2186
+ end
2187
+
2150
2188
  class RecurringCharge
2151
2189
  attr_accessor recurring_charge_amount: ::Float
2152
2190
  attr_accessor recurring_charge_frequency: ::String
@@ -2176,6 +2214,12 @@ module Aws::Redshift
2176
2214
  class RedshiftIdcApplicationQuotaExceededFault < Aws::EmptyStructure
2177
2215
  end
2178
2216
 
2217
+ class ReferenceLink
2218
+ attr_accessor text: ::String
2219
+ attr_accessor link: ::String
2220
+ SENSITIVE: []
2221
+ end
2222
+
2179
2223
  class RejectDataShareMessage
2180
2224
  attr_accessor data_share_arn: ::String
2181
2225
  SENSITIVE: []
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.108.0
4
+ version: 1.110.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: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core