aws-sdk-redshiftdataapiservice 1.24.0 → 1.25.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: 2a3b446b919f690dabaf6cfc4cd79890fbeb5f0cd61f37d01607add5419cea1c
4
- data.tar.gz: fbd5a904c0279d4452e9ba5e8abf0795fff45848eca5bc733827e1195fd0ae8c
3
+ metadata.gz: 407a8551dba3493cc7c1c0b87ea941f9b753e113b3c7ca50b437a16722f00802
4
+ data.tar.gz: 99cff936cfcbb2859fd0c0b94b673ae20e786241e7f023ef53688215cbc12c78
5
5
  SHA512:
6
- metadata.gz: 84463fb771e17c4d18d252a9a8677d565a4b8ff597b29bedc0f482f51662cc95b120717a1caf45672afffc9186174689fc4dfbe8b083bf8580c885cd5067b969
7
- data.tar.gz: 82be171094e3b7778454d5d98e00d5ddeae0baaf52d85c0b277799125664b5cbfc92f5adcd7c4c6b277eb6a28ab6429a8a5d9304528b57c14ef3decf69afe262
6
+ metadata.gz: 44474a4cb727c2e21067cd7d4680417ec6ac4f6468f1de536547c61aa8b23304f3c1d6ba46c363630468a524ee67bc7abd29709995df277d8558d0b0b407ab82
7
+ data.tar.gz: 85986998c5a1dbaab77edf5a848d79e2cacee795e49d913cb6dfed1a32464b70bc80b741812bad4db1bb22a4c5698894607869b30e508061c9e93a6be691661e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.25.0 (2023-03-09)
5
+ ------------------
6
+
7
+ * Feature - Added support for Redshift Serverless workgroup-arn wherever the WorkgroupName parameter is available.
8
+
4
9
  1.24.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.24.0
1
+ 1.25.0
@@ -444,9 +444,9 @@ module Aws::RedshiftDataAPIService
444
444
  # EventBridge event bus after the SQL statements run.
445
445
  #
446
446
  # @option params [String] :workgroup_name
447
- # The serverless workgroup name. This parameter is required when
448
- # connecting to a serverless workgroup and authenticating using either
449
- # Secrets Manager or temporary credentials.
447
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
448
+ # parameter is required when connecting to a serverless workgroup and
449
+ # authenticating using either Secrets Manager or temporary credentials.
450
450
  #
451
451
  # @return [Types::BatchExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
452
452
  #
@@ -695,9 +695,9 @@ module Aws::RedshiftDataAPIService
695
695
  # then all tables for all schemas in the database are returned
696
696
  #
697
697
  # @option params [String] :workgroup_name
698
- # The serverless workgroup name. This parameter is required when
699
- # connecting to a serverless workgroup and authenticating using either
700
- # Secrets Manager or temporary credentials.
698
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
699
+ # parameter is required when connecting to a serverless workgroup and
700
+ # authenticating using either Secrets Manager or temporary credentials.
701
701
  #
702
702
  # @return [Types::DescribeTableResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
703
703
  #
@@ -815,9 +815,9 @@ module Aws::RedshiftDataAPIService
815
815
  # EventBridge event bus after the SQL statement runs.
816
816
  #
817
817
  # @option params [String] :workgroup_name
818
- # The serverless workgroup name. This parameter is required when
819
- # connecting to a serverless workgroup and authenticating using either
820
- # Secrets Manager or temporary credentials.
818
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
819
+ # parameter is required when connecting to a serverless workgroup and
820
+ # authenticating using either Secrets Manager or temporary credentials.
821
821
  #
822
822
  # @return [Types::ExecuteStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
823
823
  #
@@ -1004,9 +1004,9 @@ module Aws::RedshiftDataAPIService
1004
1004
  # This parameter is required when authenticating using Secrets Manager.
1005
1005
  #
1006
1006
  # @option params [String] :workgroup_name
1007
- # The serverless workgroup name. This parameter is required when
1008
- # connecting to a serverless workgroup and authenticating using either
1009
- # Secrets Manager or temporary credentials.
1007
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
1008
+ # parameter is required when connecting to a serverless workgroup and
1009
+ # authenticating using either Secrets Manager or temporary credentials.
1010
1010
  #
1011
1011
  # @return [Types::ListDatabasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1012
1012
  #
@@ -1109,9 +1109,9 @@ module Aws::RedshiftDataAPIService
1109
1109
  # This parameter is required when authenticating using Secrets Manager.
1110
1110
  #
1111
1111
  # @option params [String] :workgroup_name
1112
- # The serverless workgroup name. This parameter is required when
1113
- # connecting to a serverless workgroup and authenticating using either
1114
- # Secrets Manager or temporary credentials.
1112
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
1113
+ # parameter is required when connecting to a serverless workgroup and
1114
+ # authenticating using either Secrets Manager or temporary credentials.
1115
1115
  #
1116
1116
  # @return [Types::ListSchemasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1117
1117
  #
@@ -1332,9 +1332,9 @@ module Aws::RedshiftDataAPIService
1332
1332
  # returned.
1333
1333
  #
1334
1334
  # @option params [String] :workgroup_name
1335
- # The serverless workgroup name. This parameter is required when
1336
- # connecting to a serverless workgroup and authenticating using either
1337
- # Secrets Manager or temporary credentials.
1335
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
1336
+ # parameter is required when connecting to a serverless workgroup and
1337
+ # authenticating using either Secrets Manager or temporary credentials.
1338
1338
  #
1339
1339
  # @return [Types::ListTablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1340
1340
  #
@@ -1388,7 +1388,7 @@ module Aws::RedshiftDataAPIService
1388
1388
  params: params,
1389
1389
  config: config)
1390
1390
  context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
1391
- context[:gem_version] = '1.24.0'
1391
+ context[:gem_version] = '1.25.0'
1392
1392
  Seahorse::Client::Request.new(handlers, context)
1393
1393
  end
1394
1394
 
@@ -14,36 +14,39 @@ module Aws::RedshiftDataAPIService
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://redshift-data-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://redshift-data-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://redshift-data.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://redshift-data-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://redshift-data-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://redshift-data.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://redshift-data.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://redshift-data.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -92,9 +92,10 @@ module Aws::RedshiftDataAPIService
92
92
  # @return [Boolean]
93
93
  #
94
94
  # @!attribute [rw] workgroup_name
95
- # The serverless workgroup name. This parameter is required when
96
- # connecting to a serverless workgroup and authenticating using either
97
- # Secrets Manager or temporary credentials.
95
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
96
+ # parameter is required when connecting to a serverless workgroup and
97
+ # authenticating using either Secrets Manager or temporary
98
+ # credentials.
98
99
  # @return [String]
99
100
  #
100
101
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/BatchExecuteStatementInput AWS API Documentation
@@ -142,8 +143,8 @@ module Aws::RedshiftDataAPIService
142
143
  # @return [String]
143
144
  #
144
145
  # @!attribute [rw] workgroup_name
145
- # The serverless workgroup name. This element is not returned when
146
- # connecting to a provisioned cluster.
146
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
147
+ # element is not returned when connecting to a provisioned cluster.
147
148
  # @return [String]
148
149
  #
149
150
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/BatchExecuteStatementOutput AWS API Documentation
@@ -397,7 +398,7 @@ module Aws::RedshiftDataAPIService
397
398
  # @return [Time]
398
399
  #
399
400
  # @!attribute [rw] workgroup_name
400
- # The serverless workgroup name.
401
+ # The serverless workgroup name or Amazon Resource Name (ARN).
401
402
  # @return [String]
402
403
  #
403
404
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DescribeStatementResponse AWS API Documentation
@@ -482,9 +483,10 @@ module Aws::RedshiftDataAPIService
482
483
  # @return [String]
483
484
  #
484
485
  # @!attribute [rw] workgroup_name
485
- # The serverless workgroup name. This parameter is required when
486
- # connecting to a serverless workgroup and authenticating using either
487
- # Secrets Manager or temporary credentials.
486
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
487
+ # parameter is required when connecting to a serverless workgroup and
488
+ # authenticating using either Secrets Manager or temporary
489
+ # credentials.
488
490
  # @return [String]
489
491
  #
490
492
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DescribeTableRequest AWS API Documentation
@@ -600,9 +602,10 @@ module Aws::RedshiftDataAPIService
600
602
  # @return [Boolean]
601
603
  #
602
604
  # @!attribute [rw] workgroup_name
603
- # The serverless workgroup name. This parameter is required when
604
- # connecting to a serverless workgroup and authenticating using either
605
- # Secrets Manager or temporary credentials.
605
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
606
+ # parameter is required when connecting to a serverless workgroup and
607
+ # authenticating using either Secrets Manager or temporary
608
+ # credentials.
606
609
  # @return [String]
607
610
  #
608
611
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ExecuteStatementInput AWS API Documentation
@@ -650,8 +653,8 @@ module Aws::RedshiftDataAPIService
650
653
  # @return [String]
651
654
  #
652
655
  # @!attribute [rw] workgroup_name
653
- # The serverless workgroup name. This element is not returned when
654
- # connecting to a provisioned cluster.
656
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
657
+ # element is not returned when connecting to a provisioned cluster.
655
658
  # @return [String]
656
659
  #
657
660
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ExecuteStatementOutput AWS API Documentation
@@ -834,9 +837,10 @@ module Aws::RedshiftDataAPIService
834
837
  # @return [String]
835
838
  #
836
839
  # @!attribute [rw] workgroup_name
837
- # The serverless workgroup name. This parameter is required when
838
- # connecting to a serverless workgroup and authenticating using either
839
- # Secrets Manager or temporary credentials.
840
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
841
+ # parameter is required when connecting to a serverless workgroup and
842
+ # authenticating using either Secrets Manager or temporary
843
+ # credentials.
840
844
  # @return [String]
841
845
  #
842
846
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ListDatabasesRequest AWS API Documentation
@@ -926,9 +930,10 @@ module Aws::RedshiftDataAPIService
926
930
  # @return [String]
927
931
  #
928
932
  # @!attribute [rw] workgroup_name
929
- # The serverless workgroup name. This parameter is required when
930
- # connecting to a serverless workgroup and authenticating using either
931
- # Secrets Manager or temporary credentials.
933
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
934
+ # parameter is required when connecting to a serverless workgroup and
935
+ # authenticating using either Secrets Manager or temporary
936
+ # credentials.
932
937
  # @return [String]
933
938
  #
934
939
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ListSchemasRequest AWS API Documentation
@@ -1119,9 +1124,10 @@ module Aws::RedshiftDataAPIService
1119
1124
  # @return [String]
1120
1125
  #
1121
1126
  # @!attribute [rw] workgroup_name
1122
- # The serverless workgroup name. This parameter is required when
1123
- # connecting to a serverless workgroup and authenticating using either
1124
- # Secrets Manager or temporary credentials.
1127
+ # The serverless workgroup name or Amazon Resource Name (ARN). This
1128
+ # parameter is required when connecting to a serverless workgroup and
1129
+ # authenticating using either Secrets Manager or temporary
1130
+ # credentials.
1125
1131
  # @return [String]
1126
1132
  #
1127
1133
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ListTablesRequest AWS API Documentation
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-redshiftdataapiservice/customizations'
52
52
  # @!group service
53
53
  module Aws::RedshiftDataAPIService
54
54
 
55
- GEM_VERSION = '1.24.0'
55
+ GEM_VERSION = '1.25.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-redshiftdataapiservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core