aws-sdk-kinesis 1.38.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 +72 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kinesis/async_client.rb +51 -4
- data/lib/aws-sdk-kinesis/client.rb +313 -56
- data/lib/aws-sdk-kinesis/client_api.rb +93 -27
- data/lib/aws-sdk-kinesis/endpoint_parameters.rb +90 -0
- data/lib/aws-sdk-kinesis/endpoint_provider.rb +156 -0
- data/lib/aws-sdk-kinesis/endpoints.rb +509 -0
- data/lib/aws-sdk-kinesis/errors.rb +16 -0
- data/lib/aws-sdk-kinesis/plugins/endpoints.rb +126 -0
- data/lib/aws-sdk-kinesis/types.rb +213 -336
- data/lib/aws-sdk-kinesis.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,156 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Kinesis
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
stream_arn = parameters.stream_arn
|
18
|
+
operation_type = parameters.operation_type
|
19
|
+
consumer_arn = parameters.consumer_arn
|
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: {})
|
33
|
+
end
|
34
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
35
|
+
end
|
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: {})
|
41
|
+
end
|
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: {})
|
47
|
+
end
|
48
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
49
|
+
end
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
51
|
+
end
|
52
|
+
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
53
|
+
end
|
54
|
+
raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
|
55
|
+
end
|
56
|
+
raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
|
57
|
+
end
|
58
|
+
raise ArgumentError, "Invalid ARN: No ARN type specified"
|
59
|
+
end
|
60
|
+
raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
|
61
|
+
end
|
62
|
+
raise ArgumentError, "Invalid ARN: Invalid region."
|
63
|
+
end
|
64
|
+
raise ArgumentError, "Invalid ARN: Invalid account id."
|
65
|
+
end
|
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: {})
|
81
|
+
end
|
82
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
83
|
+
end
|
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: {})
|
89
|
+
end
|
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: {})
|
95
|
+
end
|
96
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
97
|
+
end
|
98
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
99
|
+
end
|
100
|
+
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
101
|
+
end
|
102
|
+
raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
|
103
|
+
end
|
104
|
+
raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
|
105
|
+
end
|
106
|
+
raise ArgumentError, "Invalid ARN: No ARN type specified"
|
107
|
+
end
|
108
|
+
raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
|
109
|
+
end
|
110
|
+
raise ArgumentError, "Invalid ARN: Invalid region."
|
111
|
+
end
|
112
|
+
raise ArgumentError, "Invalid ARN: Invalid account id."
|
113
|
+
end
|
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"
|
119
|
+
end
|
120
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
121
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
122
|
+
end
|
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: {})
|
130
|
+
end
|
131
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
132
|
+
end
|
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"
|
141
|
+
end
|
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: {})
|
149
|
+
end
|
150
|
+
end
|
151
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
152
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
153
|
+
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -0,0 +1,509 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::Kinesis
|
12
|
+
# @api private
|
13
|
+
module Endpoints
|
14
|
+
|
15
|
+
class AddTagsToStream
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::Kinesis::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
stream_arn: context.params[:stream_arn],
|
26
|
+
operation_type: "control",
|
27
|
+
consumer_arn: nil,
|
28
|
+
)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class CreateStream
|
33
|
+
def self.build(context)
|
34
|
+
unless context.config.regional_endpoint
|
35
|
+
endpoint = context.config.endpoint.to_s
|
36
|
+
end
|
37
|
+
Aws::Kinesis::EndpointParameters.new(
|
38
|
+
region: context.config.region,
|
39
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
40
|
+
use_fips: context.config.use_fips_endpoint,
|
41
|
+
endpoint: endpoint,
|
42
|
+
stream_arn: nil,
|
43
|
+
operation_type: nil,
|
44
|
+
consumer_arn: nil,
|
45
|
+
)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
class DecreaseStreamRetentionPeriod
|
50
|
+
def self.build(context)
|
51
|
+
unless context.config.regional_endpoint
|
52
|
+
endpoint = context.config.endpoint.to_s
|
53
|
+
end
|
54
|
+
Aws::Kinesis::EndpointParameters.new(
|
55
|
+
region: context.config.region,
|
56
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
57
|
+
use_fips: context.config.use_fips_endpoint,
|
58
|
+
endpoint: endpoint,
|
59
|
+
stream_arn: context.params[:stream_arn],
|
60
|
+
operation_type: "control",
|
61
|
+
consumer_arn: nil,
|
62
|
+
)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class DeleteStream
|
67
|
+
def self.build(context)
|
68
|
+
unless context.config.regional_endpoint
|
69
|
+
endpoint = context.config.endpoint.to_s
|
70
|
+
end
|
71
|
+
Aws::Kinesis::EndpointParameters.new(
|
72
|
+
region: context.config.region,
|
73
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
74
|
+
use_fips: context.config.use_fips_endpoint,
|
75
|
+
endpoint: endpoint,
|
76
|
+
stream_arn: context.params[:stream_arn],
|
77
|
+
operation_type: "control",
|
78
|
+
consumer_arn: nil,
|
79
|
+
)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
class DeregisterStreamConsumer
|
84
|
+
def self.build(context)
|
85
|
+
unless context.config.regional_endpoint
|
86
|
+
endpoint = context.config.endpoint.to_s
|
87
|
+
end
|
88
|
+
Aws::Kinesis::EndpointParameters.new(
|
89
|
+
region: context.config.region,
|
90
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
91
|
+
use_fips: context.config.use_fips_endpoint,
|
92
|
+
endpoint: endpoint,
|
93
|
+
stream_arn: context.params[:stream_arn],
|
94
|
+
operation_type: "control",
|
95
|
+
consumer_arn: context.params[:consumer_arn],
|
96
|
+
)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
class DescribeLimits
|
101
|
+
def self.build(context)
|
102
|
+
unless context.config.regional_endpoint
|
103
|
+
endpoint = context.config.endpoint.to_s
|
104
|
+
end
|
105
|
+
Aws::Kinesis::EndpointParameters.new(
|
106
|
+
region: context.config.region,
|
107
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
108
|
+
use_fips: context.config.use_fips_endpoint,
|
109
|
+
endpoint: endpoint,
|
110
|
+
stream_arn: nil,
|
111
|
+
operation_type: nil,
|
112
|
+
consumer_arn: nil,
|
113
|
+
)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
class DescribeStream
|
118
|
+
def self.build(context)
|
119
|
+
unless context.config.regional_endpoint
|
120
|
+
endpoint = context.config.endpoint.to_s
|
121
|
+
end
|
122
|
+
Aws::Kinesis::EndpointParameters.new(
|
123
|
+
region: context.config.region,
|
124
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
125
|
+
use_fips: context.config.use_fips_endpoint,
|
126
|
+
endpoint: endpoint,
|
127
|
+
stream_arn: context.params[:stream_arn],
|
128
|
+
operation_type: "control",
|
129
|
+
consumer_arn: nil,
|
130
|
+
)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
class DescribeStreamConsumer
|
135
|
+
def self.build(context)
|
136
|
+
unless context.config.regional_endpoint
|
137
|
+
endpoint = context.config.endpoint.to_s
|
138
|
+
end
|
139
|
+
Aws::Kinesis::EndpointParameters.new(
|
140
|
+
region: context.config.region,
|
141
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
142
|
+
use_fips: context.config.use_fips_endpoint,
|
143
|
+
endpoint: endpoint,
|
144
|
+
stream_arn: context.params[:stream_arn],
|
145
|
+
operation_type: "control",
|
146
|
+
consumer_arn: context.params[:consumer_arn],
|
147
|
+
)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
class DescribeStreamSummary
|
152
|
+
def self.build(context)
|
153
|
+
unless context.config.regional_endpoint
|
154
|
+
endpoint = context.config.endpoint.to_s
|
155
|
+
end
|
156
|
+
Aws::Kinesis::EndpointParameters.new(
|
157
|
+
region: context.config.region,
|
158
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
159
|
+
use_fips: context.config.use_fips_endpoint,
|
160
|
+
endpoint: endpoint,
|
161
|
+
stream_arn: context.params[:stream_arn],
|
162
|
+
operation_type: "control",
|
163
|
+
consumer_arn: nil,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class DisableEnhancedMonitoring
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::Kinesis::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
stream_arn: context.params[:stream_arn],
|
179
|
+
operation_type: "control",
|
180
|
+
consumer_arn: nil,
|
181
|
+
)
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
class EnableEnhancedMonitoring
|
186
|
+
def self.build(context)
|
187
|
+
unless context.config.regional_endpoint
|
188
|
+
endpoint = context.config.endpoint.to_s
|
189
|
+
end
|
190
|
+
Aws::Kinesis::EndpointParameters.new(
|
191
|
+
region: context.config.region,
|
192
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
193
|
+
use_fips: context.config.use_fips_endpoint,
|
194
|
+
endpoint: endpoint,
|
195
|
+
stream_arn: context.params[:stream_arn],
|
196
|
+
operation_type: "control",
|
197
|
+
consumer_arn: nil,
|
198
|
+
)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class GetRecords
|
203
|
+
def self.build(context)
|
204
|
+
unless context.config.regional_endpoint
|
205
|
+
endpoint = context.config.endpoint.to_s
|
206
|
+
end
|
207
|
+
Aws::Kinesis::EndpointParameters.new(
|
208
|
+
region: context.config.region,
|
209
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
210
|
+
use_fips: context.config.use_fips_endpoint,
|
211
|
+
endpoint: endpoint,
|
212
|
+
stream_arn: context.params[:stream_arn],
|
213
|
+
operation_type: "data",
|
214
|
+
consumer_arn: nil,
|
215
|
+
)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
class GetShardIterator
|
220
|
+
def self.build(context)
|
221
|
+
unless context.config.regional_endpoint
|
222
|
+
endpoint = context.config.endpoint.to_s
|
223
|
+
end
|
224
|
+
Aws::Kinesis::EndpointParameters.new(
|
225
|
+
region: context.config.region,
|
226
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
227
|
+
use_fips: context.config.use_fips_endpoint,
|
228
|
+
endpoint: endpoint,
|
229
|
+
stream_arn: context.params[:stream_arn],
|
230
|
+
operation_type: "data",
|
231
|
+
consumer_arn: nil,
|
232
|
+
)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
class IncreaseStreamRetentionPeriod
|
237
|
+
def self.build(context)
|
238
|
+
unless context.config.regional_endpoint
|
239
|
+
endpoint = context.config.endpoint.to_s
|
240
|
+
end
|
241
|
+
Aws::Kinesis::EndpointParameters.new(
|
242
|
+
region: context.config.region,
|
243
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
244
|
+
use_fips: context.config.use_fips_endpoint,
|
245
|
+
endpoint: endpoint,
|
246
|
+
stream_arn: context.params[:stream_arn],
|
247
|
+
operation_type: "control",
|
248
|
+
consumer_arn: nil,
|
249
|
+
)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
class ListShards
|
254
|
+
def self.build(context)
|
255
|
+
unless context.config.regional_endpoint
|
256
|
+
endpoint = context.config.endpoint.to_s
|
257
|
+
end
|
258
|
+
Aws::Kinesis::EndpointParameters.new(
|
259
|
+
region: context.config.region,
|
260
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
261
|
+
use_fips: context.config.use_fips_endpoint,
|
262
|
+
endpoint: endpoint,
|
263
|
+
stream_arn: context.params[:stream_arn],
|
264
|
+
operation_type: "control",
|
265
|
+
consumer_arn: nil,
|
266
|
+
)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
class ListStreamConsumers
|
271
|
+
def self.build(context)
|
272
|
+
unless context.config.regional_endpoint
|
273
|
+
endpoint = context.config.endpoint.to_s
|
274
|
+
end
|
275
|
+
Aws::Kinesis::EndpointParameters.new(
|
276
|
+
region: context.config.region,
|
277
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
278
|
+
use_fips: context.config.use_fips_endpoint,
|
279
|
+
endpoint: endpoint,
|
280
|
+
stream_arn: context.params[:stream_arn],
|
281
|
+
operation_type: "control",
|
282
|
+
consumer_arn: nil,
|
283
|
+
)
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
class ListStreams
|
288
|
+
def self.build(context)
|
289
|
+
unless context.config.regional_endpoint
|
290
|
+
endpoint = context.config.endpoint.to_s
|
291
|
+
end
|
292
|
+
Aws::Kinesis::EndpointParameters.new(
|
293
|
+
region: context.config.region,
|
294
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
295
|
+
use_fips: context.config.use_fips_endpoint,
|
296
|
+
endpoint: endpoint,
|
297
|
+
stream_arn: nil,
|
298
|
+
operation_type: nil,
|
299
|
+
consumer_arn: nil,
|
300
|
+
)
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
class ListTagsForStream
|
305
|
+
def self.build(context)
|
306
|
+
unless context.config.regional_endpoint
|
307
|
+
endpoint = context.config.endpoint.to_s
|
308
|
+
end
|
309
|
+
Aws::Kinesis::EndpointParameters.new(
|
310
|
+
region: context.config.region,
|
311
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
312
|
+
use_fips: context.config.use_fips_endpoint,
|
313
|
+
endpoint: endpoint,
|
314
|
+
stream_arn: context.params[:stream_arn],
|
315
|
+
operation_type: "control",
|
316
|
+
consumer_arn: nil,
|
317
|
+
)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
class MergeShards
|
322
|
+
def self.build(context)
|
323
|
+
unless context.config.regional_endpoint
|
324
|
+
endpoint = context.config.endpoint.to_s
|
325
|
+
end
|
326
|
+
Aws::Kinesis::EndpointParameters.new(
|
327
|
+
region: context.config.region,
|
328
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
329
|
+
use_fips: context.config.use_fips_endpoint,
|
330
|
+
endpoint: endpoint,
|
331
|
+
stream_arn: context.params[:stream_arn],
|
332
|
+
operation_type: "control",
|
333
|
+
consumer_arn: nil,
|
334
|
+
)
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
338
|
+
class PutRecord
|
339
|
+
def self.build(context)
|
340
|
+
unless context.config.regional_endpoint
|
341
|
+
endpoint = context.config.endpoint.to_s
|
342
|
+
end
|
343
|
+
Aws::Kinesis::EndpointParameters.new(
|
344
|
+
region: context.config.region,
|
345
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
346
|
+
use_fips: context.config.use_fips_endpoint,
|
347
|
+
endpoint: endpoint,
|
348
|
+
stream_arn: context.params[:stream_arn],
|
349
|
+
operation_type: "data",
|
350
|
+
consumer_arn: nil,
|
351
|
+
)
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
class PutRecords
|
356
|
+
def self.build(context)
|
357
|
+
unless context.config.regional_endpoint
|
358
|
+
endpoint = context.config.endpoint.to_s
|
359
|
+
end
|
360
|
+
Aws::Kinesis::EndpointParameters.new(
|
361
|
+
region: context.config.region,
|
362
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
363
|
+
use_fips: context.config.use_fips_endpoint,
|
364
|
+
endpoint: endpoint,
|
365
|
+
stream_arn: context.params[:stream_arn],
|
366
|
+
operation_type: "data",
|
367
|
+
consumer_arn: nil,
|
368
|
+
)
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
class RegisterStreamConsumer
|
373
|
+
def self.build(context)
|
374
|
+
unless context.config.regional_endpoint
|
375
|
+
endpoint = context.config.endpoint.to_s
|
376
|
+
end
|
377
|
+
Aws::Kinesis::EndpointParameters.new(
|
378
|
+
region: context.config.region,
|
379
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
380
|
+
use_fips: context.config.use_fips_endpoint,
|
381
|
+
endpoint: endpoint,
|
382
|
+
stream_arn: context.params[:stream_arn],
|
383
|
+
operation_type: "control",
|
384
|
+
consumer_arn: nil,
|
385
|
+
)
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
class RemoveTagsFromStream
|
390
|
+
def self.build(context)
|
391
|
+
unless context.config.regional_endpoint
|
392
|
+
endpoint = context.config.endpoint.to_s
|
393
|
+
end
|
394
|
+
Aws::Kinesis::EndpointParameters.new(
|
395
|
+
region: context.config.region,
|
396
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
397
|
+
use_fips: context.config.use_fips_endpoint,
|
398
|
+
endpoint: endpoint,
|
399
|
+
stream_arn: context.params[:stream_arn],
|
400
|
+
operation_type: "control",
|
401
|
+
consumer_arn: nil,
|
402
|
+
)
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
class SplitShard
|
407
|
+
def self.build(context)
|
408
|
+
unless context.config.regional_endpoint
|
409
|
+
endpoint = context.config.endpoint.to_s
|
410
|
+
end
|
411
|
+
Aws::Kinesis::EndpointParameters.new(
|
412
|
+
region: context.config.region,
|
413
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
414
|
+
use_fips: context.config.use_fips_endpoint,
|
415
|
+
endpoint: endpoint,
|
416
|
+
stream_arn: context.params[:stream_arn],
|
417
|
+
operation_type: "control",
|
418
|
+
consumer_arn: nil,
|
419
|
+
)
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
class StartStreamEncryption
|
424
|
+
def self.build(context)
|
425
|
+
unless context.config.regional_endpoint
|
426
|
+
endpoint = context.config.endpoint.to_s
|
427
|
+
end
|
428
|
+
Aws::Kinesis::EndpointParameters.new(
|
429
|
+
region: context.config.region,
|
430
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
431
|
+
use_fips: context.config.use_fips_endpoint,
|
432
|
+
endpoint: endpoint,
|
433
|
+
stream_arn: context.params[:stream_arn],
|
434
|
+
operation_type: "control",
|
435
|
+
consumer_arn: nil,
|
436
|
+
)
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
440
|
+
class StopStreamEncryption
|
441
|
+
def self.build(context)
|
442
|
+
unless context.config.regional_endpoint
|
443
|
+
endpoint = context.config.endpoint.to_s
|
444
|
+
end
|
445
|
+
Aws::Kinesis::EndpointParameters.new(
|
446
|
+
region: context.config.region,
|
447
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
448
|
+
use_fips: context.config.use_fips_endpoint,
|
449
|
+
endpoint: endpoint,
|
450
|
+
stream_arn: context.params[:stream_arn],
|
451
|
+
operation_type: "control",
|
452
|
+
consumer_arn: nil,
|
453
|
+
)
|
454
|
+
end
|
455
|
+
end
|
456
|
+
|
457
|
+
class SubscribeToShard
|
458
|
+
def self.build(context)
|
459
|
+
unless context.config.regional_endpoint
|
460
|
+
endpoint = context.config.endpoint.to_s
|
461
|
+
end
|
462
|
+
Aws::Kinesis::EndpointParameters.new(
|
463
|
+
region: context.config.region,
|
464
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
465
|
+
use_fips: context.config.use_fips_endpoint,
|
466
|
+
endpoint: endpoint,
|
467
|
+
stream_arn: nil,
|
468
|
+
operation_type: "data",
|
469
|
+
consumer_arn: context.params[:consumer_arn],
|
470
|
+
)
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
class UpdateShardCount
|
475
|
+
def self.build(context)
|
476
|
+
unless context.config.regional_endpoint
|
477
|
+
endpoint = context.config.endpoint.to_s
|
478
|
+
end
|
479
|
+
Aws::Kinesis::EndpointParameters.new(
|
480
|
+
region: context.config.region,
|
481
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
482
|
+
use_fips: context.config.use_fips_endpoint,
|
483
|
+
endpoint: endpoint,
|
484
|
+
stream_arn: context.params[:stream_arn],
|
485
|
+
operation_type: "control",
|
486
|
+
consumer_arn: nil,
|
487
|
+
)
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
491
|
+
class UpdateStreamMode
|
492
|
+
def self.build(context)
|
493
|
+
unless context.config.regional_endpoint
|
494
|
+
endpoint = context.config.endpoint.to_s
|
495
|
+
end
|
496
|
+
Aws::Kinesis::EndpointParameters.new(
|
497
|
+
region: context.config.region,
|
498
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
499
|
+
use_fips: context.config.use_fips_endpoint,
|
500
|
+
endpoint: endpoint,
|
501
|
+
stream_arn: context.params[:stream_arn],
|
502
|
+
operation_type: "control",
|
503
|
+
consumer_arn: nil,
|
504
|
+
)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
end
|
509
|
+
end
|
@@ -27,6 +27,7 @@ module Aws::Kinesis
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
30
31
|
# * {ExpiredIteratorException}
|
31
32
|
# * {ExpiredNextTokenException}
|
32
33
|
# * {InvalidArgumentException}
|
@@ -40,6 +41,21 @@ module Aws::Kinesis
|
|
40
41
|
|
41
42
|
extend Aws::Errors::DynamicErrors
|
42
43
|
|
44
|
+
class AccessDeniedException < ServiceError
|
45
|
+
|
46
|
+
# @param [Seahorse::Client::RequestContext] context
|
47
|
+
# @param [String] message
|
48
|
+
# @param [Aws::Kinesis::Types::AccessDeniedException] data
|
49
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
50
|
+
super(context, message, data)
|
51
|
+
end
|
52
|
+
|
53
|
+
# @return [String]
|
54
|
+
def message
|
55
|
+
@message || @data[:message]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
43
59
|
class ExpiredIteratorException < ServiceError
|
44
60
|
|
45
61
|
# @param [Seahorse::Client::RequestContext] context
|