aws-sdk-redshift 1.80.0 → 1.83.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8acbad17b7838dd36967fe5f1a73775ec9fd751e1233fbc3806afee1d210f37d
4
- data.tar.gz: b1032f5b71ccd35801324aa3a9d74e5df0bbb30331ed20494f14dae6f554b057
3
+ metadata.gz: 85047529a68b7d7236c95a180e4a2021b8242f7e0e84184a165ac94328059d1f
4
+ data.tar.gz: 60d42f3b1412ef01ce8f51f617cc143ef8888cc0692fb250acf5384a41a9ae14
5
5
  SHA512:
6
- metadata.gz: 22fd0890847ab270cb3ec265b4145fa3ff2a4f169e4dc5ea6f902588d05c5c1f8189e53b80da44f0988f6bd5c835745d119dc5dc3e7affce32bb7ed1674daa77
7
- data.tar.gz: 58b364d7bd9497bc767cd4bcf0572a269801fa62a8e72ba5c520e74e0da3382c32fa0bba2ec3ca9255edc69db8e3c7fd1130732b92a663fb1c5cf1bccab4eca8
6
+ metadata.gz: 430520944de80e9bd4e65aaddff2db700873dffb2bcd0f571c57a527dc244bd99775a6f454353df7f8b2832368c8b1c978c047b4fde7a6cf240ecd2a9e630515
7
+ data.tar.gz: c9958792fd2d43ddc08475cc66ceec7fcca1db445905f7efbf5cbf04bcc9d45ead2af7253dfcb2c9478271ffbcf6b9f30605466ea8de363a726e0b10047b05d2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.83.0 (2022-06-08)
5
+ ------------------
6
+
7
+ * Feature - Adds new API GetClusterCredentialsWithIAM to return temporary credentials.
8
+
9
+ 1.82.0 (2022-05-06)
10
+ ------------------
11
+
12
+ * Feature - Introduces new field 'LoadSampleData' in CreateCluster operation. Customers can now specify 'LoadSampleData' option during creation of a cluster, which results in loading of sample data in the cluster that is created.
13
+
14
+ 1.81.0 (2022-04-19)
15
+ ------------------
16
+
17
+ * Feature - Introduces new fields for LogDestinationType and LogExports on EnableLogging requests and Enable/Disable/DescribeLogging responses. Customers can now select CloudWatch Logs as a destination for their Audit Logs.
18
+
4
19
  1.80.0 (2022-03-23)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.80.0
1
+ 1.83.0
@@ -598,7 +598,7 @@ module Aws::Redshift
598
598
  # From a data producer account, authorizes the sharing of a datashare
599
599
  # with one or more consumer accounts or managing entities. To authorize
600
600
  # a datashare for a data consumer, the producer account must have the
601
- # correct access privileges.
601
+ # correct access permissions.
602
602
  #
603
603
  # @option params [required, String] :data_share_arn
604
604
  # The Amazon Resource Name (ARN) of the datashare that producers are to
@@ -1223,8 +1223,8 @@ module Aws::Redshift
1223
1223
  #
1224
1224
  # * Must contain one number.
1225
1225
  #
1226
- # * Can be any printable ASCII character (ASCII code 33-126) except '
1227
- # (single quote), " (double quote), \\, /, or @.
1226
+ # * Can be any printable ASCII character (ASCII code 33-126) except `'`
1227
+ # (single quote), `"` (double quote), ``, `/`, or `@`.
1228
1228
  #
1229
1229
  # @option params [Array<String>] :cluster_security_groups
1230
1230
  # A list of security groups to be associated with this cluster.
@@ -1466,6 +1466,10 @@ module Aws::Redshift
1466
1466
  # The Amazon Resource Name (ARN) for the IAM role that was set as
1467
1467
  # default for the cluster when the cluster was created.
1468
1468
  #
1469
+ # @option params [String] :load_sample_data
1470
+ # A flag that specifies whether to load sample data once the cluster is
1471
+ # created.
1472
+ #
1469
1473
  # @return [Types::CreateClusterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1470
1474
  #
1471
1475
  # * {Types::CreateClusterResult#cluster #cluster} => Types::Cluster
@@ -1511,6 +1515,7 @@ module Aws::Redshift
1511
1515
  # availability_zone_relocation: false,
1512
1516
  # aqua_configuration_status: "enabled", # accepts enabled, disabled, auto
1513
1517
  # default_iam_role_arn: "String",
1518
+ # load_sample_data: "String",
1514
1519
  # })
1515
1520
  #
1516
1521
  # @example Response structure
@@ -2733,8 +2738,8 @@ module Aws::Redshift
2733
2738
  req.send_request(options)
2734
2739
  end
2735
2740
 
2736
- # From the producer account, removes authorization from the specified
2737
- # datashare.
2741
+ # From a datashare producer account, removes authorization from the
2742
+ # specified datashare.
2738
2743
  #
2739
2744
  # @option params [required, String] :data_share_arn
2740
2745
  # The Amazon Resource Name (ARN) of the datashare to remove
@@ -5496,6 +5501,8 @@ module Aws::Redshift
5496
5501
  # * {Types::LoggingStatus#last_successful_delivery_time #last_successful_delivery_time} => Time
5497
5502
  # * {Types::LoggingStatus#last_failure_time #last_failure_time} => Time
5498
5503
  # * {Types::LoggingStatus#last_failure_message #last_failure_message} => String
5504
+ # * {Types::LoggingStatus#log_destination_type #log_destination_type} => String
5505
+ # * {Types::LoggingStatus#log_exports #log_exports} => Array&lt;String&gt;
5499
5506
  #
5500
5507
  # @example Request syntax with placeholder values
5501
5508
  #
@@ -5511,6 +5518,9 @@ module Aws::Redshift
5511
5518
  # resp.last_successful_delivery_time #=> Time
5512
5519
  # resp.last_failure_time #=> Time
5513
5520
  # resp.last_failure_message #=> String
5521
+ # resp.log_destination_type #=> String, one of "s3", "cloudwatch"
5522
+ # resp.log_exports #=> Array
5523
+ # resp.log_exports[0] #=> String
5514
5524
  #
5515
5525
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus AWS API Documentation
5516
5526
  #
@@ -6646,6 +6656,8 @@ module Aws::Redshift
6646
6656
  # * {Types::LoggingStatus#last_successful_delivery_time #last_successful_delivery_time} => Time
6647
6657
  # * {Types::LoggingStatus#last_failure_time #last_failure_time} => Time
6648
6658
  # * {Types::LoggingStatus#last_failure_message #last_failure_message} => String
6659
+ # * {Types::LoggingStatus#log_destination_type #log_destination_type} => String
6660
+ # * {Types::LoggingStatus#log_exports #log_exports} => Array&lt;String&gt;
6649
6661
  #
6650
6662
  # @example Request syntax with placeholder values
6651
6663
  #
@@ -6661,6 +6673,9 @@ module Aws::Redshift
6661
6673
  # resp.last_successful_delivery_time #=> Time
6662
6674
  # resp.last_failure_time #=> Time
6663
6675
  # resp.last_failure_message #=> String
6676
+ # resp.log_destination_type #=> String, one of "s3", "cloudwatch"
6677
+ # resp.log_exports #=> Array
6678
+ # resp.log_exports[0] #=> String
6664
6679
  #
6665
6680
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging AWS API Documentation
6666
6681
  #
@@ -6826,8 +6841,8 @@ module Aws::Redshift
6826
6841
  req.send_request(options)
6827
6842
  end
6828
6843
 
6829
- # From a consumer account, remove association for the specified
6830
- # datashare.
6844
+ # From a datashare consumer account, remove association for the
6845
+ # specified datashare.
6831
6846
  #
6832
6847
  # @option params [required, String] :data_share_arn
6833
6848
  # The Amazon Resource Name (ARN) of the datashare to remove association
@@ -6893,7 +6908,7 @@ module Aws::Redshift
6893
6908
  #
6894
6909
  # Example: `examplecluster`
6895
6910
  #
6896
- # @option params [required, String] :bucket_name
6911
+ # @option params [String] :bucket_name
6897
6912
  # The name of an existing S3 bucket where the log files are to be
6898
6913
  # stored.
6899
6914
  #
@@ -6924,6 +6939,14 @@ module Aws::Redshift
6924
6939
  #
6925
6940
  # * x7f or larger
6926
6941
  #
6942
+ # @option params [String] :log_destination_type
6943
+ # The log destination type. An enum with possible values of `s3` and
6944
+ # `cloudwatch`.
6945
+ #
6946
+ # @option params [Array<String>] :log_exports
6947
+ # The collection of exported log types. Log types include the connection
6948
+ # log, user log and user activity log.
6949
+ #
6927
6950
  # @return [Types::LoggingStatus] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6928
6951
  #
6929
6952
  # * {Types::LoggingStatus#logging_enabled #logging_enabled} => Boolean
@@ -6932,13 +6955,17 @@ module Aws::Redshift
6932
6955
  # * {Types::LoggingStatus#last_successful_delivery_time #last_successful_delivery_time} => Time
6933
6956
  # * {Types::LoggingStatus#last_failure_time #last_failure_time} => Time
6934
6957
  # * {Types::LoggingStatus#last_failure_message #last_failure_message} => String
6958
+ # * {Types::LoggingStatus#log_destination_type #log_destination_type} => String
6959
+ # * {Types::LoggingStatus#log_exports #log_exports} => Array&lt;String&gt;
6935
6960
  #
6936
6961
  # @example Request syntax with placeholder values
6937
6962
  #
6938
6963
  # resp = client.enable_logging({
6939
6964
  # cluster_identifier: "String", # required
6940
- # bucket_name: "String", # required
6965
+ # bucket_name: "String",
6941
6966
  # s3_key_prefix: "String",
6967
+ # log_destination_type: "s3", # accepts s3, cloudwatch
6968
+ # log_exports: ["String"],
6942
6969
  # })
6943
6970
  #
6944
6971
  # @example Response structure
@@ -6949,6 +6976,9 @@ module Aws::Redshift
6949
6976
  # resp.last_successful_delivery_time #=> Time
6950
6977
  # resp.last_failure_time #=> Time
6951
6978
  # resp.last_failure_message #=> String
6979
+ # resp.log_destination_type #=> String, one of "s3", "cloudwatch"
6980
+ # resp.log_exports #=> Array
6981
+ # resp.log_exports[0] #=> String
6952
6982
  #
6953
6983
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging AWS API Documentation
6954
6984
  #
@@ -7167,7 +7197,7 @@ module Aws::Redshift
7167
7197
  # the `redshift:JoinGroup` action with access to the listed `dbgroups`.
7168
7198
  #
7169
7199
  # In addition, if the `AutoCreate` parameter is set to `True`, then the
7170
- # policy must include the `redshift:CreateClusterUser` privilege.
7200
+ # policy must include the `redshift:CreateClusterUser` permission.
7171
7201
  #
7172
7202
  # If the `DbName` parameter is specified, the IAM policy must allow
7173
7203
  # access to the resource `dbname` for the specified database name.
@@ -7235,7 +7265,7 @@ module Aws::Redshift
7235
7265
  #
7236
7266
  # @option params [required, String] :cluster_identifier
7237
7267
  # The unique identifier of the cluster that contains the database for
7238
- # which your are requesting credentials. This parameter is case
7268
+ # which you are requesting credentials. This parameter is case
7239
7269
  # sensitive.
7240
7270
  #
7241
7271
  # @option params [Integer] :duration_seconds
@@ -7305,6 +7335,70 @@ module Aws::Redshift
7305
7335
  req.send_request(options)
7306
7336
  end
7307
7337
 
7338
+ # Returns a database user name and temporary password with temporary
7339
+ # authorization to log in to an Amazon Redshift database. The database
7340
+ # user is mapped 1:1 to the source Identity and Access Management (IAM)
7341
+ # identity. For more information about IAM identities, see [IAM
7342
+ # Identities (users, user groups, and roles)][1] in the Amazon Web
7343
+ # Services Identity and Access Management User Guide.
7344
+ #
7345
+ # The Identity and Access Management (IAM) identity that runs this
7346
+ # operation must have an IAM policy attached that allows access to all
7347
+ # necessary actions and resources. For more information about
7348
+ # permissions, see [Using identity-based policies (IAM policies)][2] in
7349
+ # the Amazon Redshift Cluster Management Guide.
7350
+ #
7351
+ #
7352
+ #
7353
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id.html
7354
+ # [2]: https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html
7355
+ #
7356
+ # @option params [String] :db_name
7357
+ # The name of the database for which you are requesting credentials. If
7358
+ # the database name is specified, the IAM policy must allow access to
7359
+ # the resource `dbname` for the specified database name. If the database
7360
+ # name is not specified, access to all databases is allowed.
7361
+ #
7362
+ # @option params [required, String] :cluster_identifier
7363
+ # The unique identifier of the cluster that contains the database for
7364
+ # which you are requesting credentials.
7365
+ #
7366
+ # @option params [Integer] :duration_seconds
7367
+ # The number of seconds until the returned temporary password expires.
7368
+ #
7369
+ # Range: 900-3600. Default: 900.
7370
+ #
7371
+ # @return [Types::ClusterExtendedCredentials] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7372
+ #
7373
+ # * {Types::ClusterExtendedCredentials#db_user #db_user} => String
7374
+ # * {Types::ClusterExtendedCredentials#db_password #db_password} => String
7375
+ # * {Types::ClusterExtendedCredentials#expiration #expiration} => Time
7376
+ # * {Types::ClusterExtendedCredentials#next_refresh_time #next_refresh_time} => Time
7377
+ #
7378
+ # @example Request syntax with placeholder values
7379
+ #
7380
+ # resp = client.get_cluster_credentials_with_iam({
7381
+ # db_name: "String",
7382
+ # cluster_identifier: "String", # required
7383
+ # duration_seconds: 1,
7384
+ # })
7385
+ #
7386
+ # @example Response structure
7387
+ #
7388
+ # resp.db_user #=> String
7389
+ # resp.db_password #=> String
7390
+ # resp.expiration #=> Time
7391
+ # resp.next_refresh_time #=> Time
7392
+ #
7393
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetClusterCredentialsWithIAM AWS API Documentation
7394
+ #
7395
+ # @overload get_cluster_credentials_with_iam(params = {})
7396
+ # @param [Hash] params ({})
7397
+ def get_cluster_credentials_with_iam(params = {}, options = {})
7398
+ req = build_request(:get_cluster_credentials_with_iam, params)
7399
+ req.send_request(options)
7400
+ end
7401
+
7308
7402
  # Gets the configuration options for the reserved-node exchange. These
7309
7403
  # options include information about the source reserved node and target
7310
7404
  # reserved node offering. Details include the node type, the price, the
@@ -7639,8 +7733,8 @@ module Aws::Redshift
7639
7733
  #
7640
7734
  # * Must contain one number.
7641
7735
  #
7642
- # * Can be any printable ASCII character (ASCII code 33-126) except '
7643
- # (single quote), " (double quote), \\, /, or @.
7736
+ # * Can be any printable ASCII character (ASCII code 33-126) except `'`
7737
+ # (single quote), `"` (double quote), ``, `/`, or `@`.
7644
7738
  #
7645
7739
  # @option params [String] :cluster_parameter_group_name
7646
7740
  # The name of the cluster parameter group to apply to this cluster. This
@@ -9611,7 +9705,7 @@ module Aws::Redshift
9611
9705
  req.send_request(options)
9612
9706
  end
9613
9707
 
9614
- # From the consumer account, rejects the specified datashare.
9708
+ # From a datashare consumer account, rejects the specified datashare.
9615
9709
  #
9616
9710
  # @option params [required, String] :data_share_arn
9617
9711
  # The Amazon Resource Name (ARN) of the datashare to reject.
@@ -10089,8 +10183,8 @@ module Aws::Redshift
10089
10183
  # The value must be either -1 or an integer between 1 and 3,653.
10090
10184
  #
10091
10185
  # @option params [String] :kms_key_id
10092
- # The Key Management Service (KMS) key ID of the encryption key to
10093
- # encrypt data in the cluster restored from a shared snapshot. You can
10186
+ # The Key Management Service (KMS) key ID of the encryption key that
10187
+ # encrypts data in the cluster restored from a shared snapshot. You can
10094
10188
  # also provide the key ID when you restore from an unencrypted snapshot
10095
10189
  # to an encrypted cluster in the same account. Additionally, you can
10096
10190
  # specify a new KMS key ID when you restore from an encrypted snapshot
@@ -10192,7 +10286,8 @@ module Aws::Redshift
10192
10286
  #
10193
10287
  # @option params [Boolean] :encrypted
10194
10288
  # Enables support for restoring an unencrypted snapshot to a cluster
10195
- # encrypted with Key Management Service (KMS) and a CMK.
10289
+ # encrypted with Key Management Service (KMS) and a customer managed
10290
+ # key.
10196
10291
  #
10197
10292
  # @return [Types::RestoreFromClusterSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
10198
10293
  #
@@ -11042,7 +11137,7 @@ module Aws::Redshift
11042
11137
  params: params,
11043
11138
  config: config)
11044
11139
  context[:gem_name] = 'aws-sdk-redshift'
11045
- context[:gem_version] = '1.80.0'
11140
+ context[:gem_version] = '1.83.0'
11046
11141
  Seahorse::Client::Request.new(handlers, context)
11047
11142
  end
11048
11143
 
@@ -68,6 +68,7 @@ module Aws::Redshift
68
68
  ClusterDbRevision = Shapes::StructureShape.new(name: 'ClusterDbRevision')
69
69
  ClusterDbRevisionsList = Shapes::ListShape.new(name: 'ClusterDbRevisionsList')
70
70
  ClusterDbRevisionsMessage = Shapes::StructureShape.new(name: 'ClusterDbRevisionsMessage')
71
+ ClusterExtendedCredentials = Shapes::StructureShape.new(name: 'ClusterExtendedCredentials')
71
72
  ClusterIamRole = Shapes::StructureShape.new(name: 'ClusterIamRole')
72
73
  ClusterIamRoleList = Shapes::ListShape.new(name: 'ClusterIamRoleList')
73
74
  ClusterList = Shapes::ListShape.new(name: 'ClusterList')
@@ -259,6 +260,7 @@ module Aws::Redshift
259
260
  EventSubscriptionsMessage = Shapes::StructureShape.new(name: 'EventSubscriptionsMessage')
260
261
  EventsMessage = Shapes::StructureShape.new(name: 'EventsMessage')
261
262
  GetClusterCredentialsMessage = Shapes::StructureShape.new(name: 'GetClusterCredentialsMessage')
263
+ GetClusterCredentialsWithIAMMessage = Shapes::StructureShape.new(name: 'GetClusterCredentialsWithIAMMessage')
262
264
  GetReservedNodeExchangeConfigurationOptionsInputMessage = Shapes::StructureShape.new(name: 'GetReservedNodeExchangeConfigurationOptionsInputMessage')
263
265
  GetReservedNodeExchangeConfigurationOptionsOutputMessage = Shapes::StructureShape.new(name: 'GetReservedNodeExchangeConfigurationOptionsOutputMessage')
264
266
  GetReservedNodeExchangeOfferingsInputMessage = Shapes::StructureShape.new(name: 'GetReservedNodeExchangeOfferingsInputMessage')
@@ -319,6 +321,8 @@ module Aws::Redshift
319
321
  InvalidUsageLimitFault = Shapes::StructureShape.new(name: 'InvalidUsageLimitFault')
320
322
  InvalidVPCNetworkStateFault = Shapes::StructureShape.new(name: 'InvalidVPCNetworkStateFault')
321
323
  LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
324
+ LogDestinationType = Shapes::StringShape.new(name: 'LogDestinationType')
325
+ LogTypeList = Shapes::ListShape.new(name: 'LogTypeList')
322
326
  LoggingStatus = Shapes::StructureShape.new(name: 'LoggingStatus')
323
327
  Long = Shapes::IntegerShape.new(name: 'Long')
324
328
  LongOptional = Shapes::IntegerShape.new(name: 'LongOptional')
@@ -738,6 +742,12 @@ module Aws::Redshift
738
742
  ClusterDbRevisionsMessage.add_member(:cluster_db_revisions, Shapes::ShapeRef.new(shape: ClusterDbRevisionsList, location_name: "ClusterDbRevisions"))
739
743
  ClusterDbRevisionsMessage.struct_class = Types::ClusterDbRevisionsMessage
740
744
 
745
+ ClusterExtendedCredentials.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
746
+ ClusterExtendedCredentials.add_member(:db_password, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "DbPassword"))
747
+ ClusterExtendedCredentials.add_member(:expiration, Shapes::ShapeRef.new(shape: TStamp, location_name: "Expiration"))
748
+ ClusterExtendedCredentials.add_member(:next_refresh_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "NextRefreshTime"))
749
+ ClusterExtendedCredentials.struct_class = Types::ClusterExtendedCredentials
750
+
741
751
  ClusterIamRole.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "IamRoleArn"))
742
752
  ClusterIamRole.add_member(:apply_status, Shapes::ShapeRef.new(shape: String, location_name: "ApplyStatus"))
743
753
  ClusterIamRole.struct_class = Types::ClusterIamRole
@@ -925,6 +935,7 @@ module Aws::Redshift
925
935
  CreateClusterMessage.add_member(:availability_zone_relocation, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "AvailabilityZoneRelocation"))
926
936
  CreateClusterMessage.add_member(:aqua_configuration_status, Shapes::ShapeRef.new(shape: AquaConfigurationStatus, location_name: "AquaConfigurationStatus"))
927
937
  CreateClusterMessage.add_member(:default_iam_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "DefaultIamRoleArn"))
938
+ CreateClusterMessage.add_member(:load_sample_data, Shapes::ShapeRef.new(shape: String, location_name: "LoadSampleData"))
928
939
  CreateClusterMessage.struct_class = Types::CreateClusterMessage
929
940
 
930
941
  CreateClusterParameterGroupMessage.add_member(:parameter_group_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ParameterGroupName"))
@@ -1446,8 +1457,10 @@ module Aws::Redshift
1446
1457
  EligibleTracksToUpdateList.member = Shapes::ShapeRef.new(shape: UpdateTarget, location_name: "UpdateTarget")
1447
1458
 
1448
1459
  EnableLoggingMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterIdentifier"))
1449
- EnableLoggingMessage.add_member(:bucket_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "BucketName"))
1460
+ EnableLoggingMessage.add_member(:bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "BucketName"))
1450
1461
  EnableLoggingMessage.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
1462
+ EnableLoggingMessage.add_member(:log_destination_type, Shapes::ShapeRef.new(shape: LogDestinationType, location_name: "LogDestinationType"))
1463
+ EnableLoggingMessage.add_member(:log_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "LogExports"))
1451
1464
  EnableLoggingMessage.struct_class = Types::EnableLoggingMessage
1452
1465
 
1453
1466
  EnableSnapshotCopyMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterIdentifier"))
@@ -1577,6 +1590,11 @@ module Aws::Redshift
1577
1590
  GetClusterCredentialsMessage.add_member(:db_groups, Shapes::ShapeRef.new(shape: DbGroupList, location_name: "DbGroups"))
1578
1591
  GetClusterCredentialsMessage.struct_class = Types::GetClusterCredentialsMessage
1579
1592
 
1593
+ GetClusterCredentialsWithIAMMessage.add_member(:db_name, Shapes::ShapeRef.new(shape: String, location_name: "DbName"))
1594
+ GetClusterCredentialsWithIAMMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterIdentifier"))
1595
+ GetClusterCredentialsWithIAMMessage.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "DurationSeconds"))
1596
+ GetClusterCredentialsWithIAMMessage.struct_class = Types::GetClusterCredentialsWithIAMMessage
1597
+
1580
1598
  GetReservedNodeExchangeConfigurationOptionsInputMessage.add_member(:action_type, Shapes::ShapeRef.new(shape: ReservedNodeExchangeActionType, required: true, location_name: "ActionType"))
1581
1599
  GetReservedNodeExchangeConfigurationOptionsInputMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "ClusterIdentifier"))
1582
1600
  GetReservedNodeExchangeConfigurationOptionsInputMessage.add_member(:snapshot_identifier, Shapes::ShapeRef.new(shape: String, location_name: "SnapshotIdentifier"))
@@ -1723,12 +1741,16 @@ module Aws::Redshift
1723
1741
 
1724
1742
  LimitExceededFault.struct_class = Types::LimitExceededFault
1725
1743
 
1744
+ LogTypeList.member = Shapes::ShapeRef.new(shape: String)
1745
+
1726
1746
  LoggingStatus.add_member(:logging_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "LoggingEnabled"))
1727
1747
  LoggingStatus.add_member(:bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "BucketName"))
1728
1748
  LoggingStatus.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
1729
1749
  LoggingStatus.add_member(:last_successful_delivery_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "LastSuccessfulDeliveryTime"))
1730
1750
  LoggingStatus.add_member(:last_failure_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "LastFailureTime"))
1731
1751
  LoggingStatus.add_member(:last_failure_message, Shapes::ShapeRef.new(shape: String, location_name: "LastFailureMessage"))
1752
+ LoggingStatus.add_member(:log_destination_type, Shapes::ShapeRef.new(shape: LogDestinationType, location_name: "LogDestinationType"))
1753
+ LoggingStatus.add_member(:log_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "LogExports"))
1732
1754
  LoggingStatus.struct_class = Types::LoggingStatus
1733
1755
 
1734
1756
  MaintenanceTrack.add_member(:maintenance_track_name, Shapes::ShapeRef.new(shape: String, location_name: "MaintenanceTrackName"))
@@ -3674,6 +3696,16 @@ module Aws::Redshift
3674
3696
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationFault)
3675
3697
  end)
3676
3698
 
3699
+ api.add_operation(:get_cluster_credentials_with_iam, Seahorse::Model::Operation.new.tap do |o|
3700
+ o.name = "GetClusterCredentialsWithIAM"
3701
+ o.http_method = "POST"
3702
+ o.http_request_uri = "/"
3703
+ o.input = Shapes::ShapeRef.new(shape: GetClusterCredentialsWithIAMMessage)
3704
+ o.output = Shapes::ShapeRef.new(shape: ClusterExtendedCredentials)
3705
+ o.errors << Shapes::ShapeRef.new(shape: ClusterNotFoundFault)
3706
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationFault)
3707
+ end)
3708
+
3677
3709
  api.add_operation(:get_reserved_node_exchange_configuration_options, Seahorse::Model::Operation.new.tap do |o|
3678
3710
  o.name = "GetReservedNodeExchangeConfigurationOptions"
3679
3711
  o.http_method = "POST"
@@ -1001,7 +1001,7 @@ module Aws::Redshift
1001
1001
  # A database user name that is authorized to log on to the database
1002
1002
  # `DbName` using the password `DbPassword`. If the specified DbUser
1003
1003
  # exists in the database, the new user name has the same database
1004
- # privileges as the the user named in DbUser. By default, the user is
1004
+ # permissions as the the user named in DbUser. By default, the user is
1005
1005
  # added to PUBLIC. If the `DbGroups` parameter is specifed, `DbUser`
1006
1006
  # is added to the listed groups for any sessions created using these
1007
1007
  # credentials.
@@ -1077,6 +1077,37 @@ module Aws::Redshift
1077
1077
  include Aws::Structure
1078
1078
  end
1079
1079
 
1080
+ # @!attribute [rw] db_user
1081
+ # A database user name that you provide when you connect to a
1082
+ # database. The database user is mapped 1:1 to the source IAM
1083
+ # identity.
1084
+ # @return [String]
1085
+ #
1086
+ # @!attribute [rw] db_password
1087
+ # A temporary password that you provide when you connect to a
1088
+ # database.
1089
+ # @return [String]
1090
+ #
1091
+ # @!attribute [rw] expiration
1092
+ # The time (UTC) when the temporary password expires. After this
1093
+ # timestamp, a log in with the temporary password fails.
1094
+ # @return [Time]
1095
+ #
1096
+ # @!attribute [rw] next_refresh_time
1097
+ # Reserved for future use.
1098
+ # @return [Time]
1099
+ #
1100
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterExtendedCredentials AWS API Documentation
1101
+ #
1102
+ class ClusterExtendedCredentials < Struct.new(
1103
+ :db_user,
1104
+ :db_password,
1105
+ :expiration,
1106
+ :next_refresh_time)
1107
+ SENSITIVE = [:db_password]
1108
+ include Aws::Structure
1109
+ end
1110
+
1080
1111
  # An Identity and Access Management (IAM) role that can be used by the
1081
1112
  # associated Amazon Redshift cluster to access other Amazon Web Services
1082
1113
  # services.
@@ -1880,6 +1911,7 @@ module Aws::Redshift
1880
1911
  # availability_zone_relocation: false,
1881
1912
  # aqua_configuration_status: "enabled", # accepts enabled, disabled, auto
1882
1913
  # default_iam_role_arn: "String",
1914
+ # load_sample_data: "String",
1883
1915
  # }
1884
1916
  #
1885
1917
  # @!attribute [rw] db_name
@@ -1991,8 +2023,8 @@ module Aws::Redshift
1991
2023
  #
1992
2024
  # * Must contain one number.
1993
2025
  #
1994
- # * Can be any printable ASCII character (ASCII code 33-126) except '
1995
- # (single quote), " (double quote), \\, /, or @.
2026
+ # * Can be any printable ASCII character (ASCII code 33-126) except
2027
+ # `'` (single quote), `"` (double quote), ``, `/`, or `@`.
1996
2028
  # @return [String]
1997
2029
  #
1998
2030
  # @!attribute [rw] cluster_security_groups
@@ -2265,6 +2297,11 @@ module Aws::Redshift
2265
2297
  # default for the cluster when the cluster was created.
2266
2298
  # @return [String]
2267
2299
  #
2300
+ # @!attribute [rw] load_sample_data
2301
+ # A flag that specifies whether to load sample data once the cluster
2302
+ # is created.
2303
+ # @return [String]
2304
+ #
2268
2305
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterMessage AWS API Documentation
2269
2306
  #
2270
2307
  class CreateClusterMessage < Struct.new(
@@ -2300,7 +2337,8 @@ module Aws::Redshift
2300
2337
  :snapshot_schedule_identifier,
2301
2338
  :availability_zone_relocation,
2302
2339
  :aqua_configuration_status,
2303
- :default_iam_role_arn)
2340
+ :default_iam_role_arn,
2341
+ :load_sample_data)
2304
2342
  SENSITIVE = []
2305
2343
  include Aws::Structure
2306
2344
  end
@@ -3252,7 +3290,7 @@ module Aws::Redshift
3252
3290
  #
3253
3291
  # @!attribute [rw] data_share_associations
3254
3292
  # A value that specifies when the datashare has an association between
3255
- # a producer and data consumers.
3293
+ # producer and data consumers.
3256
3294
  # @return [Array<Types::DataShareAssociation>]
3257
3295
  #
3258
3296
  # @!attribute [rw] managed_by
@@ -6325,8 +6363,10 @@ module Aws::Redshift
6325
6363
  #
6326
6364
  # {
6327
6365
  # cluster_identifier: "String", # required
6328
- # bucket_name: "String", # required
6366
+ # bucket_name: "String",
6329
6367
  # s3_key_prefix: "String",
6368
+ # log_destination_type: "s3", # accepts s3, cloudwatch
6369
+ # log_exports: ["String"],
6330
6370
  # }
6331
6371
  #
6332
6372
  # @!attribute [rw] cluster_identifier
@@ -6368,12 +6408,24 @@ module Aws::Redshift
6368
6408
  # * x7f or larger
6369
6409
  # @return [String]
6370
6410
  #
6411
+ # @!attribute [rw] log_destination_type
6412
+ # The log destination type. An enum with possible values of `s3` and
6413
+ # `cloudwatch`.
6414
+ # @return [String]
6415
+ #
6416
+ # @!attribute [rw] log_exports
6417
+ # The collection of exported log types. Log types include the
6418
+ # connection log, user log and user activity log.
6419
+ # @return [Array<String>]
6420
+ #
6371
6421
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLoggingMessage AWS API Documentation
6372
6422
  #
6373
6423
  class EnableLoggingMessage < Struct.new(
6374
6424
  :cluster_identifier,
6375
6425
  :bucket_name,
6376
- :s3_key_prefix)
6426
+ :s3_key_prefix,
6427
+ :log_destination_type,
6428
+ :log_exports)
6377
6429
  SENSITIVE = []
6378
6430
  include Aws::Structure
6379
6431
  end
@@ -7017,7 +7069,7 @@ module Aws::Redshift
7017
7069
  #
7018
7070
  # @!attribute [rw] cluster_identifier
7019
7071
  # The unique identifier of the cluster that contains the database for
7020
- # which your are requesting credentials. This parameter is case
7072
+ # which you are requesting credentials. This parameter is case
7021
7073
  # sensitive.
7022
7074
  # @return [String]
7023
7075
  #
@@ -7073,6 +7125,43 @@ module Aws::Redshift
7073
7125
  include Aws::Structure
7074
7126
  end
7075
7127
 
7128
+ # @note When making an API call, you may pass GetClusterCredentialsWithIAMMessage
7129
+ # data as a hash:
7130
+ #
7131
+ # {
7132
+ # db_name: "String",
7133
+ # cluster_identifier: "String", # required
7134
+ # duration_seconds: 1,
7135
+ # }
7136
+ #
7137
+ # @!attribute [rw] db_name
7138
+ # The name of the database for which you are requesting credentials.
7139
+ # If the database name is specified, the IAM policy must allow access
7140
+ # to the resource `dbname` for the specified database name. If the
7141
+ # database name is not specified, access to all databases is allowed.
7142
+ # @return [String]
7143
+ #
7144
+ # @!attribute [rw] cluster_identifier
7145
+ # The unique identifier of the cluster that contains the database for
7146
+ # which you are requesting credentials.
7147
+ # @return [String]
7148
+ #
7149
+ # @!attribute [rw] duration_seconds
7150
+ # The number of seconds until the returned temporary password expires.
7151
+ #
7152
+ # Range: 900-3600. Default: 900.
7153
+ # @return [Integer]
7154
+ #
7155
+ # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetClusterCredentialsWithIAMMessage AWS API Documentation
7156
+ #
7157
+ class GetClusterCredentialsWithIAMMessage < Struct.new(
7158
+ :db_name,
7159
+ :cluster_identifier,
7160
+ :duration_seconds)
7161
+ SENSITIVE = []
7162
+ include Aws::Structure
7163
+ end
7164
+
7076
7165
  # @note When making an API call, you may pass GetReservedNodeExchangeConfigurationOptionsInputMessage
7077
7166
  # data as a hash:
7078
7167
  #
@@ -7690,6 +7779,16 @@ module Aws::Redshift
7690
7779
  # The message indicating that logs failed to be delivered.
7691
7780
  # @return [String]
7692
7781
  #
7782
+ # @!attribute [rw] log_destination_type
7783
+ # The log destination type. An enum with possible values of `s3` and
7784
+ # `cloudwatch`.
7785
+ # @return [String]
7786
+ #
7787
+ # @!attribute [rw] log_exports
7788
+ # The collection of exported log types. Log types include the
7789
+ # connection log, user log and user activity log.
7790
+ # @return [Array<String>]
7791
+ #
7693
7792
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/LoggingStatus AWS API Documentation
7694
7793
  #
7695
7794
  class LoggingStatus < Struct.new(
@@ -7698,7 +7797,9 @@ module Aws::Redshift
7698
7797
  :s3_key_prefix,
7699
7798
  :last_successful_delivery_time,
7700
7799
  :last_failure_time,
7701
- :last_failure_message)
7800
+ :last_failure_message,
7801
+ :log_destination_type,
7802
+ :log_exports)
7702
7803
  SENSITIVE = []
7703
7804
  include Aws::Structure
7704
7805
  end
@@ -8112,8 +8213,8 @@ module Aws::Redshift
8112
8213
  #
8113
8214
  # * Must contain one number.
8114
8215
  #
8115
- # * Can be any printable ASCII character (ASCII code 33-126) except '
8116
- # (single quote), " (double quote), \\, /, or @.
8216
+ # * Can be any printable ASCII character (ASCII code 33-126) except
8217
+ # `'` (single quote), `"` (double quote), ``, `/`, or `@`.
8117
8218
  # @return [String]
8118
8219
  #
8119
8220
  # @!attribute [rw] cluster_parameter_group_name
@@ -10276,9 +10377,9 @@ module Aws::Redshift
10276
10377
  # @return [Integer]
10277
10378
  #
10278
10379
  # @!attribute [rw] kms_key_id
10279
- # The Key Management Service (KMS) key ID of the encryption key to
10280
- # encrypt data in the cluster restored from a shared snapshot. You can
10281
- # also provide the key ID when you restore from an unencrypted
10380
+ # The Key Management Service (KMS) key ID of the encryption key that
10381
+ # encrypts data in the cluster restored from a shared snapshot. You
10382
+ # can also provide the key ID when you restore from an unencrypted
10282
10383
  # snapshot to an encrypted cluster in the same account. Additionally,
10283
10384
  # you can specify a new KMS key ID when you restore from an encrypted
10284
10385
  # snapshot in the same account in order to change it. In that case,
@@ -10395,7 +10496,8 @@ module Aws::Redshift
10395
10496
  #
10396
10497
  # @!attribute [rw] encrypted
10397
10498
  # Enables support for restoring an unencrypted snapshot to a cluster
10398
- # encrypted with Key Management Service (KMS) and a CMK.
10499
+ # encrypted with Key Management Service (KMS) and a customer managed
10500
+ # key.
10399
10501
  # @return [Boolean]
10400
10502
  #
10401
10503
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshotMessage AWS API Documentation
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-redshift/customizations'
49
49
  # @!group service
50
50
  module Aws::Redshift
51
51
 
52
- GEM_VERSION = '1.80.0'
52
+ GEM_VERSION = '1.83.0'
53
53
 
54
54
  end
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.80.0
4
+ version: 1.83.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: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2022-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core