aws-sdk-redshift 1.82.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-redshift/client.rb +70 -6
- data/lib/aws-sdk-redshift/client_api.rb +23 -0
- data/lib/aws-sdk-redshift/types.rb +73 -5
- 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: 85047529a68b7d7236c95a180e4a2021b8242f7e0e84184a165ac94328059d1f
|
4
|
+
data.tar.gz: 60d42f3b1412ef01ce8f51f617cc143ef8888cc0692fb250acf5384a41a9ae14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430520944de80e9bd4e65aaddff2db700873dffb2bcd0f571c57a527dc244bd99775a6f454353df7f8b2832368c8b1c978c047b4fde7a6cf240ecd2a9e630515
|
7
|
+
data.tar.gz: c9958792fd2d43ddc08475cc66ceec7fcca1db445905f7efbf5cbf04bcc9d45ead2af7253dfcb2c9478271ffbcf6b9f30605466ea8de363a726e0b10047b05d2
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.83.0
|
@@ -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),
|
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.
|
@@ -7265,7 +7265,7 @@ module Aws::Redshift
|
|
7265
7265
|
#
|
7266
7266
|
# @option params [required, String] :cluster_identifier
|
7267
7267
|
# The unique identifier of the cluster that contains the database for
|
7268
|
-
# which
|
7268
|
+
# which you are requesting credentials. This parameter is case
|
7269
7269
|
# sensitive.
|
7270
7270
|
#
|
7271
7271
|
# @option params [Integer] :duration_seconds
|
@@ -7335,6 +7335,70 @@ module Aws::Redshift
|
|
7335
7335
|
req.send_request(options)
|
7336
7336
|
end
|
7337
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
|
+
|
7338
7402
|
# Gets the configuration options for the reserved-node exchange. These
|
7339
7403
|
# options include information about the source reserved node and target
|
7340
7404
|
# reserved node offering. Details include the node type, the price, the
|
@@ -7669,8 +7733,8 @@ module Aws::Redshift
|
|
7669
7733
|
#
|
7670
7734
|
# * Must contain one number.
|
7671
7735
|
#
|
7672
|
-
# * Can be any printable ASCII character (ASCII code 33-126) except '
|
7673
|
-
# (single quote), " (double quote),
|
7736
|
+
# * Can be any printable ASCII character (ASCII code 33-126) except `'`
|
7737
|
+
# (single quote), `"` (double quote), ``, `/`, or `@`.
|
7674
7738
|
#
|
7675
7739
|
# @option params [String] :cluster_parameter_group_name
|
7676
7740
|
# The name of the cluster parameter group to apply to this cluster. This
|
@@ -11073,7 +11137,7 @@ module Aws::Redshift
|
|
11073
11137
|
params: params,
|
11074
11138
|
config: config)
|
11075
11139
|
context[:gem_name] = 'aws-sdk-redshift'
|
11076
|
-
context[:gem_version] = '1.
|
11140
|
+
context[:gem_version] = '1.83.0'
|
11077
11141
|
Seahorse::Client::Request.new(handlers, context)
|
11078
11142
|
end
|
11079
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')
|
@@ -740,6 +742,12 @@ module Aws::Redshift
|
|
740
742
|
ClusterDbRevisionsMessage.add_member(:cluster_db_revisions, Shapes::ShapeRef.new(shape: ClusterDbRevisionsList, location_name: "ClusterDbRevisions"))
|
741
743
|
ClusterDbRevisionsMessage.struct_class = Types::ClusterDbRevisionsMessage
|
742
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
|
+
|
743
751
|
ClusterIamRole.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "IamRoleArn"))
|
744
752
|
ClusterIamRole.add_member(:apply_status, Shapes::ShapeRef.new(shape: String, location_name: "ApplyStatus"))
|
745
753
|
ClusterIamRole.struct_class = Types::ClusterIamRole
|
@@ -1582,6 +1590,11 @@ module Aws::Redshift
|
|
1582
1590
|
GetClusterCredentialsMessage.add_member(:db_groups, Shapes::ShapeRef.new(shape: DbGroupList, location_name: "DbGroups"))
|
1583
1591
|
GetClusterCredentialsMessage.struct_class = Types::GetClusterCredentialsMessage
|
1584
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
|
+
|
1585
1598
|
GetReservedNodeExchangeConfigurationOptionsInputMessage.add_member(:action_type, Shapes::ShapeRef.new(shape: ReservedNodeExchangeActionType, required: true, location_name: "ActionType"))
|
1586
1599
|
GetReservedNodeExchangeConfigurationOptionsInputMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "ClusterIdentifier"))
|
1587
1600
|
GetReservedNodeExchangeConfigurationOptionsInputMessage.add_member(:snapshot_identifier, Shapes::ShapeRef.new(shape: String, location_name: "SnapshotIdentifier"))
|
@@ -3683,6 +3696,16 @@ module Aws::Redshift
|
|
3683
3696
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationFault)
|
3684
3697
|
end)
|
3685
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
|
+
|
3686
3709
|
api.add_operation(:get_reserved_node_exchange_configuration_options, Seahorse::Model::Operation.new.tap do |o|
|
3687
3710
|
o.name = "GetReservedNodeExchangeConfigurationOptions"
|
3688
3711
|
o.http_method = "POST"
|
@@ -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.
|
@@ -1992,8 +2023,8 @@ module Aws::Redshift
|
|
1992
2023
|
#
|
1993
2024
|
# * Must contain one number.
|
1994
2025
|
#
|
1995
|
-
# * Can be any printable ASCII character (ASCII code 33-126) except
|
1996
|
-
# (single quote), " (double quote),
|
2026
|
+
# * Can be any printable ASCII character (ASCII code 33-126) except
|
2027
|
+
# `'` (single quote), `"` (double quote), ``, `/`, or `@`.
|
1997
2028
|
# @return [String]
|
1998
2029
|
#
|
1999
2030
|
# @!attribute [rw] cluster_security_groups
|
@@ -7038,7 +7069,7 @@ module Aws::Redshift
|
|
7038
7069
|
#
|
7039
7070
|
# @!attribute [rw] cluster_identifier
|
7040
7071
|
# The unique identifier of the cluster that contains the database for
|
7041
|
-
# which
|
7072
|
+
# which you are requesting credentials. This parameter is case
|
7042
7073
|
# sensitive.
|
7043
7074
|
# @return [String]
|
7044
7075
|
#
|
@@ -7094,6 +7125,43 @@ module Aws::Redshift
|
|
7094
7125
|
include Aws::Structure
|
7095
7126
|
end
|
7096
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
|
+
|
7097
7165
|
# @note When making an API call, you may pass GetReservedNodeExchangeConfigurationOptionsInputMessage
|
7098
7166
|
# data as a hash:
|
7099
7167
|
#
|
@@ -8145,8 +8213,8 @@ module Aws::Redshift
|
|
8145
8213
|
#
|
8146
8214
|
# * Must contain one number.
|
8147
8215
|
#
|
8148
|
-
# * Can be any printable ASCII character (ASCII code 33-126) except
|
8149
|
-
# (single quote), " (double quote),
|
8216
|
+
# * Can be any printable ASCII character (ASCII code 33-126) except
|
8217
|
+
# `'` (single quote), `"` (double quote), ``, `/`, or `@`.
|
8150
8218
|
# @return [String]
|
8151
8219
|
#
|
8152
8220
|
# @!attribute [rw] cluster_parameter_group_name
|
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.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-
|
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
|