aws-sdk-kinesis 1.50.0 → 1.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kinesis/async_client.rb +1 -1
- data/lib/aws-sdk-kinesis/client.rb +1 -1
- data/lib/aws-sdk-kinesis/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-kinesis/endpoint_provider.rb +99 -102
- data/lib/aws-sdk-kinesis.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3b06954603f48764fd1387596cc5c25e07bf27ac6c357f392003827ffea5a29
|
4
|
+
data.tar.gz: c7cb28c04fa0a669bfc265e852276cc490dd90d3bac062abce559b693f9388e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85312b2e4c4cbb3e84745d5feaaaf068399132a0cb5cfd276d568e143a175b64eb315ebfb6d1115ee1f94c6b2e30f88bf6ce88394c813447dbfb22592fa69511
|
7
|
+
data.tar.gz: dd5bfd6b95a01d9716f9bfd5e7848dba72eb2a87cbfe97453a55785f8c84ae0a759f5089fb419b9d02660e52a8779fe204ce928645d79512c146e96b7574ab8a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.52.0 (2023-09-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.51.0 (2023-09-19)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.50.0 (2023-07-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.0
|
@@ -615,7 +615,7 @@ module Aws::Kinesis
|
|
615
615
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
616
616
|
config: config)
|
617
617
|
context[:gem_name] = 'aws-sdk-kinesis'
|
618
|
-
context[:gem_version] = '1.
|
618
|
+
context[:gem_version] = '1.52.0'
|
619
619
|
Seahorse::Client::Request.new(handlers, context)
|
620
620
|
end
|
621
621
|
|
@@ -2636,7 +2636,7 @@ module Aws::Kinesis
|
|
2636
2636
|
params: params,
|
2637
2637
|
config: config)
|
2638
2638
|
context[:gem_name] = 'aws-sdk-kinesis'
|
2639
|
-
context[:gem_version] = '1.
|
2639
|
+
context[:gem_version] = '1.52.0'
|
2640
2640
|
Seahorse::Client::Request.new(handlers, context)
|
2641
2641
|
end
|
2642
2642
|
|
@@ -71,9 +71,6 @@ module Aws::Kinesis
|
|
71
71
|
|
72
72
|
def initialize(options = {})
|
73
73
|
self[:region] = options[:region]
|
74
|
-
if self[:region].nil?
|
75
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
76
|
-
end
|
77
74
|
self[:use_dual_stack] = options[:use_dual_stack]
|
78
75
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
79
76
|
if self[:use_dual_stack].nil?
|
@@ -17,141 +17,138 @@ module Aws::Kinesis
|
|
17
17
|
stream_arn = parameters.stream_arn
|
18
18
|
operation_type = parameters.operation_type
|
19
19
|
consumer_arn = parameters.consumer_arn
|
20
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
21
|
-
if
|
22
|
-
if (
|
23
|
-
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "
|
24
|
-
if Aws::Endpoints::Matchers.
|
25
|
-
if
|
26
|
-
if
|
27
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
28
|
-
if Aws::Endpoints::Matchers.
|
29
|
-
if Aws::Endpoints::Matchers.
|
30
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
31
|
-
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "
|
32
|
-
|
33
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
34
|
-
end
|
35
|
-
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
20
|
+
if Aws::Endpoints::Matchers.set?(stream_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
|
21
|
+
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(stream_arn))
|
22
|
+
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
|
23
|
+
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
|
24
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
|
25
|
+
if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
|
26
|
+
if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
|
27
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
|
28
|
+
if Aws::Endpoints::Matchers.set?(operation_type)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
36
33
|
end
|
37
|
-
raise ArgumentError, "
|
34
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
38
35
|
end
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
36
|
+
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
37
|
+
end
|
38
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
41
|
end
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
42
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
43
|
+
end
|
44
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
45
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
50
47
|
end
|
51
|
-
|
48
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
52
49
|
end
|
53
|
-
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
54
51
|
end
|
55
|
-
raise ArgumentError, "
|
52
|
+
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
56
53
|
end
|
57
|
-
raise ArgumentError, "
|
54
|
+
raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
|
58
55
|
end
|
59
|
-
raise ArgumentError, "Invalid ARN:
|
56
|
+
raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
|
60
57
|
end
|
61
|
-
raise ArgumentError, "Invalid ARN:
|
58
|
+
raise ArgumentError, "Invalid ARN: No ARN type specified"
|
62
59
|
end
|
63
|
-
raise ArgumentError, "Invalid ARN:
|
60
|
+
raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
|
64
61
|
end
|
65
|
-
raise ArgumentError, "Invalid ARN: Invalid
|
62
|
+
raise ArgumentError, "Invalid ARN: Invalid region."
|
66
63
|
end
|
67
|
-
raise ArgumentError, "Invalid ARN:
|
64
|
+
raise ArgumentError, "Invalid ARN: Invalid account id."
|
68
65
|
end
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
66
|
+
raise ArgumentError, "Invalid ARN: Failed to parse ARN."
|
67
|
+
end
|
68
|
+
if Aws::Endpoints::Matchers.set?(consumer_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
|
69
|
+
if (arn = Aws::Endpoints::Matchers.aws_parse_arn(consumer_arn))
|
70
|
+
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
|
71
|
+
if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
|
72
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
|
73
|
+
if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
|
74
|
+
if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
|
75
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
|
76
|
+
if Aws::Endpoints::Matchers.set?(operation_type)
|
77
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
78
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
79
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
80
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
84
81
|
end
|
85
|
-
raise ArgumentError, "
|
82
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
86
83
|
end
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
84
|
+
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
85
|
+
end
|
86
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
87
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
88
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
92
89
|
end
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
90
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
91
|
+
end
|
92
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
93
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
94
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
98
95
|
end
|
99
|
-
|
96
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
100
97
|
end
|
101
|
-
|
98
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
102
99
|
end
|
103
|
-
raise ArgumentError, "
|
100
|
+
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
104
101
|
end
|
105
|
-
raise ArgumentError, "
|
102
|
+
raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
|
106
103
|
end
|
107
|
-
raise ArgumentError, "Invalid ARN:
|
104
|
+
raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
|
108
105
|
end
|
109
|
-
raise ArgumentError, "Invalid ARN:
|
106
|
+
raise ArgumentError, "Invalid ARN: No ARN type specified"
|
110
107
|
end
|
111
|
-
raise ArgumentError, "Invalid ARN:
|
108
|
+
raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
|
112
109
|
end
|
113
|
-
raise ArgumentError, "Invalid ARN: Invalid
|
110
|
+
raise ArgumentError, "Invalid ARN: Invalid region."
|
114
111
|
end
|
115
|
-
raise ArgumentError, "Invalid ARN:
|
112
|
+
raise ArgumentError, "Invalid ARN: Invalid account id."
|
116
113
|
end
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
123
|
-
end
|
124
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
114
|
+
raise ArgumentError, "Invalid ARN: Failed to parse ARN."
|
115
|
+
end
|
116
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
117
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
118
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
125
119
|
end
|
126
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
127
|
-
|
128
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
129
|
-
end
|
130
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
120
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
121
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
131
122
|
end
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
123
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
124
|
+
end
|
125
|
+
if Aws::Endpoints::Matchers.set?(region)
|
126
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
127
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
128
|
+
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"))
|
129
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
136
130
|
end
|
137
|
-
|
131
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
138
132
|
end
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
133
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
134
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
135
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
136
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.amazonaws.com", headers: {}, properties: {})
|
137
|
+
end
|
138
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
139
|
+
end
|
140
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
144
141
|
end
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis
|
142
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
143
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
144
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
145
|
+
end
|
146
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
147
|
+
end
|
148
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
152
149
|
end
|
153
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
154
150
|
end
|
151
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
155
152
|
raise ArgumentError, 'No endpoint could be resolved'
|
156
153
|
|
157
154
|
end
|
data/lib/aws-sdk-kinesis.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kinesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.52.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-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.184.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.184.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|