aws-sdk-kinesis 1.103.0 → 1.104.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-kinesis/async_client.rb +10 -1
- data/lib/aws-sdk-kinesis/client.rb +31 -13
- data/lib/aws-sdk-kinesis/endpoint_parameters.rb +26 -8
- data/lib/aws-sdk-kinesis/endpoint_provider.rb +66 -30
- data/lib/aws-sdk-kinesis/endpoints.rb +87 -32
- data/lib/aws-sdk-kinesis/plugins/endpoints.rb +25 -0
- data/lib/aws-sdk-kinesis/types.rb +1 -1
- data/lib/aws-sdk-kinesis.rb +1 -1
- data/sig/async_client.rbs +1 -0
- data/sig/client.rbs +1 -0
- data/sig/resource.rbs +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 693c8d2bb75633255dc40a6b8f22deb2c9fa1e050ab5cc230071f629e9f6a5e9
|
|
4
|
+
data.tar.gz: ca8affd610bb7d593b4877921b3bb8d86c0e1474a24ab7a9a6df29afd4800d82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 077fede8f5143b5ee4c460a5b8a757150b09678254b48d473da50f473a089dce0d576976529b6d59eb3fe738ad0ddf7294dcf391662ed291912c9b00cd352119
|
|
7
|
+
data.tar.gz: 3d1f8ddb149b2cd75f05074b548fb6eb102ec24dfe86cb5025ff2b16bf8c4d941b1f59abffca149095db07496d0c9f0b782272167f996ac1f81ca0b6bd223164
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.104.0
|
|
@@ -364,6 +364,15 @@ module Aws::Kinesis
|
|
|
364
364
|
# When `true`, request parameters are validated before
|
|
365
365
|
# sending the request.
|
|
366
366
|
#
|
|
367
|
+
# @option options [String] :account_id_endpoint_mode
|
|
368
|
+
# The account ID endpoint mode to use. This can be one of the following values:
|
|
369
|
+
# * `preferred` - The default behavior. Use the account ID endpoint if
|
|
370
|
+
# available, otherwise use the standard endpoint.
|
|
371
|
+
# * `disabled` - Never use the account ID endpoint. Only use the standard
|
|
372
|
+
# endpoint.
|
|
373
|
+
# * `required` - Always use the account ID endpoint. If the account ID
|
|
374
|
+
# cannot be retrieved from credentials, an error is raised.
|
|
375
|
+
#
|
|
367
376
|
# @option options [Aws::Kinesis::EndpointProvider] :endpoint_provider
|
|
368
377
|
# The endpoint provider used to resolve endpoints. Any object that responds to
|
|
369
378
|
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
|
@@ -747,7 +756,7 @@ module Aws::Kinesis
|
|
|
747
756
|
tracer: tracer
|
|
748
757
|
)
|
|
749
758
|
context[:gem_name] = 'aws-sdk-kinesis'
|
|
750
|
-
context[:gem_version] = '1.
|
|
759
|
+
context[:gem_version] = '1.104.0'
|
|
751
760
|
Seahorse::Client::Request.new(handlers, context)
|
|
752
761
|
end
|
|
753
762
|
|
|
@@ -415,6 +415,15 @@ module Aws::Kinesis
|
|
|
415
415
|
# When `true`, request parameters are validated before
|
|
416
416
|
# sending the request.
|
|
417
417
|
#
|
|
418
|
+
# @option options [String] :account_id_endpoint_mode
|
|
419
|
+
# The account ID endpoint mode to use. This can be one of the following values:
|
|
420
|
+
# * `preferred` - The default behavior. Use the account ID endpoint if
|
|
421
|
+
# available, otherwise use the standard endpoint.
|
|
422
|
+
# * `disabled` - Never use the account ID endpoint. Only use the standard
|
|
423
|
+
# endpoint.
|
|
424
|
+
# * `required` - Always use the account ID endpoint. If the account ID
|
|
425
|
+
# cannot be retrieved from credentials, an error is raised.
|
|
426
|
+
#
|
|
418
427
|
# @option options [Aws::Kinesis::EndpointProvider] :endpoint_provider
|
|
419
428
|
# The endpoint provider used to resolve endpoints. Any object that responds to
|
|
420
429
|
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
|
@@ -1368,12 +1377,16 @@ module Aws::Kinesis
|
|
|
1368
1377
|
# iterator reaches the record with the sequence number or other
|
|
1369
1378
|
# attribute that marks it as the last record to process.
|
|
1370
1379
|
#
|
|
1371
|
-
# Each data record can be up to 1 MiB in size
|
|
1372
|
-
#
|
|
1373
|
-
#
|
|
1374
|
-
#
|
|
1375
|
-
#
|
|
1376
|
-
#
|
|
1380
|
+
# Each data record can be up to 1 MiB in size by default. Amazon Kinesis
|
|
1381
|
+
# Data Streams supports large records up to 10 MiB in size, but the
|
|
1382
|
+
# average throughput for your stream cannot exceed 1 MiB per second. For
|
|
1383
|
+
# more information about how large records are handled, see [Large
|
|
1384
|
+
# records][2]. Each shard can read up to 2 MiB per second. You can
|
|
1385
|
+
# ensure that your calls don't exceed the maximum supported size or
|
|
1386
|
+
# throughput by using the `Limit` parameter to specify the maximum
|
|
1387
|
+
# number of records that GetRecords can return. Consider your average
|
|
1388
|
+
# record size when determining this limit. The maximum number of records
|
|
1389
|
+
# that can be returned per call is 10,000.
|
|
1377
1390
|
#
|
|
1378
1391
|
# The size of the data returned by GetRecords varies depending on the
|
|
1379
1392
|
# utilization of the shard. It is recommended that consumer applications
|
|
@@ -1393,7 +1406,7 @@ module Aws::Kinesis
|
|
|
1393
1406
|
# To detect whether the application is falling behind in processing, you
|
|
1394
1407
|
# can use the `MillisBehindLatest` response attribute. You can also
|
|
1395
1408
|
# monitor the stream using CloudWatch metrics and other mechanisms (see
|
|
1396
|
-
# [Monitoring][
|
|
1409
|
+
# [Monitoring][3] in the *Amazon Kinesis Data Streams Developer Guide*).
|
|
1397
1410
|
#
|
|
1398
1411
|
# Each Amazon Kinesis record includes a value,
|
|
1399
1412
|
# `ApproximateArrivalTimestamp`, that is set when a stream successfully
|
|
@@ -1411,7 +1424,8 @@ module Aws::Kinesis
|
|
|
1411
1424
|
#
|
|
1412
1425
|
#
|
|
1413
1426
|
# [1]: https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html
|
|
1414
|
-
# [2]: https://docs.aws.amazon.com/
|
|
1427
|
+
# [2]: https://docs.aws.amazon.com/streams/latest/dev/large-records.html
|
|
1428
|
+
# [3]: https://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html
|
|
1415
1429
|
#
|
|
1416
1430
|
# @option params [required, String] :shard_iterator
|
|
1417
1431
|
# The position in the shard from which you want to start sequentially
|
|
@@ -3269,10 +3283,11 @@ module Aws::Kinesis
|
|
|
3269
3283
|
end
|
|
3270
3284
|
|
|
3271
3285
|
# Updates the warm throughput configuration for the specified Amazon
|
|
3272
|
-
# Kinesis Data Streams on-demand data stream.
|
|
3273
|
-
#
|
|
3274
|
-
#
|
|
3275
|
-
# spikes
|
|
3286
|
+
# Kinesis Data Streams on-demand data stream. Updates the warm
|
|
3287
|
+
# throughput configuration for the specified on-demand data stream. Use
|
|
3288
|
+
# this operation to scale your stream to a specified throughput level
|
|
3289
|
+
# before anticipated traffic spikes, or to release excess capacity after
|
|
3290
|
+
# traffic has decreased.
|
|
3276
3291
|
#
|
|
3277
3292
|
# <note markdown="1"> When invoking this API, you must use either the `StreamARN` or the
|
|
3278
3293
|
# `StreamName` parameter, or both. It is recommended that you use the
|
|
@@ -3293,6 +3308,9 @@ module Aws::Kinesis
|
|
|
3293
3308
|
# `MinimumThroughputBillingCommitment` enabled. Provisioned capacity
|
|
3294
3309
|
# mode streams do not support warm throughput configuration.
|
|
3295
3310
|
#
|
|
3311
|
+
# To release excess capacity, call the API again and set the warm
|
|
3312
|
+
# throughput to the same or a lower value.
|
|
3313
|
+
#
|
|
3296
3314
|
# This operation has the following default limits. By default, you
|
|
3297
3315
|
# cannot do the following:
|
|
3298
3316
|
#
|
|
@@ -3375,7 +3393,7 @@ module Aws::Kinesis
|
|
|
3375
3393
|
tracer: tracer
|
|
3376
3394
|
)
|
|
3377
3395
|
context[:gem_name] = 'aws-sdk-kinesis'
|
|
3378
|
-
context[:gem_version] = '1.
|
|
3396
|
+
context[:gem_version] = '1.104.0'
|
|
3379
3397
|
Seahorse::Client::Request.new(handlers, context)
|
|
3380
3398
|
end
|
|
3381
3399
|
|
|
@@ -30,6 +30,11 @@ module Aws::Kinesis
|
|
|
30
30
|
#
|
|
31
31
|
# @return [string]
|
|
32
32
|
#
|
|
33
|
+
# @!attribute operation_type
|
|
34
|
+
# Internal parameter to distinguish between Control/Data plane API and accordingly generate control/data plane endpoint
|
|
35
|
+
#
|
|
36
|
+
# @return [string]
|
|
37
|
+
#
|
|
33
38
|
# @!attribute stream_id
|
|
34
39
|
# The unique identifier of the Kinesis stream
|
|
35
40
|
#
|
|
@@ -40,11 +45,6 @@ module Aws::Kinesis
|
|
|
40
45
|
#
|
|
41
46
|
# @return [string]
|
|
42
47
|
#
|
|
43
|
-
# @!attribute operation_type
|
|
44
|
-
# Internal parameter to distinguish between Control/Data plane API and accordingly generate control/data plane endpoint
|
|
45
|
-
#
|
|
46
|
-
# @return [string]
|
|
47
|
-
#
|
|
48
48
|
# @!attribute consumer_arn
|
|
49
49
|
# The ARN of the Kinesis consumer
|
|
50
50
|
#
|
|
@@ -55,16 +55,28 @@ module Aws::Kinesis
|
|
|
55
55
|
#
|
|
56
56
|
# @return [string]
|
|
57
57
|
#
|
|
58
|
+
# @!attribute account_id
|
|
59
|
+
# The AWS AccountId used for the request.
|
|
60
|
+
#
|
|
61
|
+
# @return [string]
|
|
62
|
+
#
|
|
63
|
+
# @!attribute account_id_endpoint_mode
|
|
64
|
+
# The AccountId Endpoint Mode.
|
|
65
|
+
#
|
|
66
|
+
# @return [string]
|
|
67
|
+
#
|
|
58
68
|
EndpointParameters = Struct.new(
|
|
59
69
|
:region,
|
|
60
70
|
:use_dual_stack,
|
|
61
71
|
:use_fips,
|
|
62
72
|
:endpoint,
|
|
73
|
+
:operation_type,
|
|
63
74
|
:stream_id,
|
|
64
75
|
:stream_arn,
|
|
65
|
-
:operation_type,
|
|
66
76
|
:consumer_arn,
|
|
67
77
|
:resource_arn,
|
|
78
|
+
:account_id,
|
|
79
|
+
:account_id_endpoint_mode,
|
|
68
80
|
) do
|
|
69
81
|
include Aws::Structure
|
|
70
82
|
|
|
@@ -75,11 +87,13 @@ module Aws::Kinesis
|
|
|
75
87
|
'UseDualStack' => :use_dual_stack,
|
|
76
88
|
'UseFIPS' => :use_fips,
|
|
77
89
|
'Endpoint' => :endpoint,
|
|
90
|
+
'OperationType' => :operation_type,
|
|
78
91
|
'StreamId' => :stream_id,
|
|
79
92
|
'StreamARN' => :stream_arn,
|
|
80
|
-
'OperationType' => :operation_type,
|
|
81
93
|
'ConsumerARN' => :consumer_arn,
|
|
82
94
|
'ResourceARN' => :resource_arn,
|
|
95
|
+
'AccountId' => :account_id,
|
|
96
|
+
'AccountIdEndpointMode' => :account_id_endpoint_mode,
|
|
83
97
|
}.freeze
|
|
84
98
|
end
|
|
85
99
|
|
|
@@ -90,11 +104,13 @@ module Aws::Kinesis
|
|
|
90
104
|
self[:use_fips] = options[:use_fips]
|
|
91
105
|
self[:use_fips] = false if self[:use_fips].nil?
|
|
92
106
|
self[:endpoint] = options[:endpoint]
|
|
107
|
+
self[:operation_type] = options[:operation_type]
|
|
93
108
|
self[:stream_id] = options[:stream_id]
|
|
94
109
|
self[:stream_arn] = options[:stream_arn]
|
|
95
|
-
self[:operation_type] = options[:operation_type]
|
|
96
110
|
self[:consumer_arn] = options[:consumer_arn]
|
|
97
111
|
self[:resource_arn] = options[:resource_arn]
|
|
112
|
+
self[:account_id] = options[:account_id]
|
|
113
|
+
self[:account_id_endpoint_mode] = options[:account_id_endpoint_mode]
|
|
98
114
|
end
|
|
99
115
|
|
|
100
116
|
def self.create(config, options={})
|
|
@@ -103,6 +119,8 @@ module Aws::Kinesis
|
|
|
103
119
|
use_dual_stack: config.use_dualstack_endpoint,
|
|
104
120
|
use_fips: config.use_fips_endpoint,
|
|
105
121
|
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
|
122
|
+
account_id: config.credentials.credentials.account_id,
|
|
123
|
+
account_id_endpoint_mode: config.account_id_endpoint_mode,
|
|
106
124
|
}.merge(options))
|
|
107
125
|
end
|
|
108
126
|
end
|
|
@@ -16,7 +16,7 @@ module Aws::Kinesis
|
|
|
16
16
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
17
17
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
18
18
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
19
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
19
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
20
20
|
end
|
|
21
21
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
22
22
|
end
|
|
@@ -24,23 +24,23 @@ module Aws::Kinesis
|
|
|
24
24
|
end
|
|
25
25
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
26
26
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
27
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
27
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
28
28
|
end
|
|
29
29
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
30
30
|
end
|
|
31
31
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
32
32
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
33
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
33
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
34
34
|
end
|
|
35
35
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
36
36
|
end
|
|
37
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{https_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
38
38
|
end
|
|
39
39
|
if Aws::Endpoints::Matchers.set?(parameters.endpoint) && (plain_custom_endpoint_delimiter_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 7, 8, false)) && Aws::Endpoints::Matchers.string_equals?(plain_custom_endpoint_delimiter_value, "-") && (plain_endpoint_delimiter_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 12, 13, false)) && Aws::Endpoints::Matchers.string_equals?(plain_endpoint_delimiter_value, ".") && (plain_custom_endpoint_suffix_value = Aws::Endpoints::Matchers.substring(parameters.endpoint, 7, 12, false))
|
|
40
40
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
41
41
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
42
42
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
43
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
43
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
44
44
|
end
|
|
45
45
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
46
46
|
end
|
|
@@ -48,22 +48,22 @@ module Aws::Kinesis
|
|
|
48
48
|
end
|
|
49
49
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
50
50
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
51
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
51
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
52
52
|
end
|
|
53
53
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
54
54
|
end
|
|
55
55
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
56
56
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
57
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
57
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
58
58
|
end
|
|
59
59
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
60
60
|
end
|
|
61
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
61
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis#{plain_custom_endpoint_suffix_value}.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
62
62
|
end
|
|
63
63
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
64
64
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
65
65
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
66
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
66
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
67
67
|
end
|
|
68
68
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
69
69
|
end
|
|
@@ -71,17 +71,17 @@ module Aws::Kinesis
|
|
|
71
71
|
end
|
|
72
72
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
73
73
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
74
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
74
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
75
75
|
end
|
|
76
76
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
77
77
|
end
|
|
78
78
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
79
79
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
80
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
80
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
81
81
|
end
|
|
82
82
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
83
83
|
end
|
|
84
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
84
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{stream_id_prefix_value}.#{stream_id_suffix_value}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
85
85
|
end
|
|
86
86
|
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
|
87
87
|
end
|
|
@@ -97,7 +97,7 @@ module Aws::Kinesis
|
|
|
97
97
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
98
98
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
99
99
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
100
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
100
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
101
101
|
end
|
|
102
102
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
103
103
|
end
|
|
@@ -105,17 +105,17 @@ module Aws::Kinesis
|
|
|
105
105
|
end
|
|
106
106
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
107
107
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
108
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
108
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
109
109
|
end
|
|
110
110
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
111
111
|
end
|
|
112
112
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
113
113
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
114
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
114
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
115
115
|
end
|
|
116
116
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
117
117
|
end
|
|
118
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
118
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
119
119
|
end
|
|
120
120
|
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
|
121
121
|
end
|
|
@@ -145,7 +145,7 @@ module Aws::Kinesis
|
|
|
145
145
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
146
146
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
147
147
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
148
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
148
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
149
149
|
end
|
|
150
150
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
151
151
|
end
|
|
@@ -153,17 +153,17 @@ module Aws::Kinesis
|
|
|
153
153
|
end
|
|
154
154
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
155
155
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
156
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
156
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
157
157
|
end
|
|
158
158
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
159
159
|
end
|
|
160
160
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
161
161
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
162
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
162
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
163
163
|
end
|
|
164
164
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
165
165
|
end
|
|
166
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
166
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
167
167
|
end
|
|
168
168
|
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
|
169
169
|
end
|
|
@@ -193,7 +193,7 @@ module Aws::Kinesis
|
|
|
193
193
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
194
194
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
195
195
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
196
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
196
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
197
197
|
end
|
|
198
198
|
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
199
199
|
end
|
|
@@ -201,17 +201,17 @@ module Aws::Kinesis
|
|
|
201
201
|
end
|
|
202
202
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
203
203
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
204
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
204
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
205
205
|
end
|
|
206
206
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
207
207
|
end
|
|
208
208
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
209
209
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
210
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
210
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
211
211
|
end
|
|
212
212
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
213
213
|
end
|
|
214
|
-
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
214
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
215
215
|
end
|
|
216
216
|
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
|
217
217
|
end
|
|
@@ -229,6 +229,42 @@ module Aws::Kinesis
|
|
|
229
229
|
end
|
|
230
230
|
raise ArgumentError, "Invalid ARN: Failed to parse ARN."
|
|
231
231
|
end
|
|
232
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.account_id) && Aws::Endpoints::Matchers.set?(parameters.region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.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"))
|
|
233
|
+
if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
|
|
234
|
+
if Aws::Endpoints::Matchers.set?(parameters.operation_type)
|
|
235
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
236
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
237
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
238
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: true })
|
|
239
|
+
end
|
|
240
|
+
raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
|
|
241
|
+
end
|
|
242
|
+
raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
|
|
243
|
+
end
|
|
244
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
245
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
246
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.#{parameters.operation_type}-kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: true })
|
|
247
|
+
end
|
|
248
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
249
|
+
end
|
|
250
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
251
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
252
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: true })
|
|
253
|
+
end
|
|
254
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
255
|
+
end
|
|
256
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.#{parameters.operation_type}-kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: true })
|
|
257
|
+
end
|
|
258
|
+
raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
|
|
259
|
+
end
|
|
260
|
+
raise ArgumentError, "Invalid account id."
|
|
261
|
+
end
|
|
262
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.endpoint)) && Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required") && Aws::Endpoints::Matchers.set?(parameters.region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
263
|
+
if 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"))
|
|
264
|
+
raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
|
|
265
|
+
end
|
|
266
|
+
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"
|
|
267
|
+
end
|
|
232
268
|
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
233
269
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
234
270
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
@@ -236,32 +272,32 @@ module Aws::Kinesis
|
|
|
236
272
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
237
273
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
238
274
|
end
|
|
239
|
-
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
|
275
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
240
276
|
end
|
|
241
277
|
if Aws::Endpoints::Matchers.set?(parameters.region)
|
|
242
278
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
243
279
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
244
280
|
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"))
|
|
245
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
281
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
246
282
|
end
|
|
247
283
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
248
284
|
end
|
|
249
285
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
250
286
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
251
287
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
|
252
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
|
|
288
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.amazonaws.com", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
253
289
|
end
|
|
254
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
290
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
255
291
|
end
|
|
256
292
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
257
293
|
end
|
|
258
294
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
259
295
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
260
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
296
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
261
297
|
end
|
|
262
298
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
263
299
|
end
|
|
264
|
-
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
300
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
265
301
|
end
|
|
266
302
|
end
|
|
267
303
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
@@ -16,8 +16,17 @@ module Aws::Kinesis
|
|
|
16
16
|
def self.build(context)
|
|
17
17
|
Aws::Kinesis::EndpointParameters.create(
|
|
18
18
|
context.config,
|
|
19
|
+
operation_type: "control",
|
|
19
20
|
stream_id: context.params[:stream_id],
|
|
20
21
|
stream_arn: context.params[:stream_arn],
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
class CreateStream
|
|
27
|
+
def self.build(context)
|
|
28
|
+
Aws::Kinesis::EndpointParameters.create(
|
|
29
|
+
context.config,
|
|
21
30
|
operation_type: "control",
|
|
22
31
|
)
|
|
23
32
|
end
|
|
@@ -27,9 +36,9 @@ module Aws::Kinesis
|
|
|
27
36
|
def self.build(context)
|
|
28
37
|
Aws::Kinesis::EndpointParameters.create(
|
|
29
38
|
context.config,
|
|
39
|
+
operation_type: "control",
|
|
30
40
|
stream_id: context.params[:stream_id],
|
|
31
41
|
stream_arn: context.params[:stream_arn],
|
|
32
|
-
operation_type: "control",
|
|
33
42
|
)
|
|
34
43
|
end
|
|
35
44
|
end
|
|
@@ -38,8 +47,8 @@ module Aws::Kinesis
|
|
|
38
47
|
def self.build(context)
|
|
39
48
|
Aws::Kinesis::EndpointParameters.create(
|
|
40
49
|
context.config,
|
|
41
|
-
stream_id: context.params[:stream_id],
|
|
42
50
|
operation_type: "control",
|
|
51
|
+
stream_id: context.params[:stream_id],
|
|
43
52
|
resource_arn: context.params[:resource_arn],
|
|
44
53
|
)
|
|
45
54
|
end
|
|
@@ -49,9 +58,9 @@ module Aws::Kinesis
|
|
|
49
58
|
def self.build(context)
|
|
50
59
|
Aws::Kinesis::EndpointParameters.create(
|
|
51
60
|
context.config,
|
|
61
|
+
operation_type: "control",
|
|
52
62
|
stream_id: context.params[:stream_id],
|
|
53
63
|
stream_arn: context.params[:stream_arn],
|
|
54
|
-
operation_type: "control",
|
|
55
64
|
)
|
|
56
65
|
end
|
|
57
66
|
end
|
|
@@ -60,21 +69,39 @@ module Aws::Kinesis
|
|
|
60
69
|
def self.build(context)
|
|
61
70
|
Aws::Kinesis::EndpointParameters.create(
|
|
62
71
|
context.config,
|
|
72
|
+
operation_type: "control",
|
|
63
73
|
stream_id: context.params[:stream_id],
|
|
64
74
|
stream_arn: context.params[:stream_arn],
|
|
65
|
-
operation_type: "control",
|
|
66
75
|
consumer_arn: context.params[:consumer_arn],
|
|
67
76
|
)
|
|
68
77
|
end
|
|
69
78
|
end
|
|
70
79
|
|
|
80
|
+
class DescribeAccountSettings
|
|
81
|
+
def self.build(context)
|
|
82
|
+
Aws::Kinesis::EndpointParameters.create(
|
|
83
|
+
context.config,
|
|
84
|
+
operation_type: "control",
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class DescribeLimits
|
|
90
|
+
def self.build(context)
|
|
91
|
+
Aws::Kinesis::EndpointParameters.create(
|
|
92
|
+
context.config,
|
|
93
|
+
operation_type: "control",
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
71
98
|
class DescribeStream
|
|
72
99
|
def self.build(context)
|
|
73
100
|
Aws::Kinesis::EndpointParameters.create(
|
|
74
101
|
context.config,
|
|
102
|
+
operation_type: "control",
|
|
75
103
|
stream_id: context.params[:stream_id],
|
|
76
104
|
stream_arn: context.params[:stream_arn],
|
|
77
|
-
operation_type: "control",
|
|
78
105
|
)
|
|
79
106
|
end
|
|
80
107
|
end
|
|
@@ -83,9 +110,9 @@ module Aws::Kinesis
|
|
|
83
110
|
def self.build(context)
|
|
84
111
|
Aws::Kinesis::EndpointParameters.create(
|
|
85
112
|
context.config,
|
|
113
|
+
operation_type: "control",
|
|
86
114
|
stream_id: context.params[:stream_id],
|
|
87
115
|
stream_arn: context.params[:stream_arn],
|
|
88
|
-
operation_type: "control",
|
|
89
116
|
consumer_arn: context.params[:consumer_arn],
|
|
90
117
|
)
|
|
91
118
|
end
|
|
@@ -95,9 +122,9 @@ module Aws::Kinesis
|
|
|
95
122
|
def self.build(context)
|
|
96
123
|
Aws::Kinesis::EndpointParameters.create(
|
|
97
124
|
context.config,
|
|
125
|
+
operation_type: "control",
|
|
98
126
|
stream_id: context.params[:stream_id],
|
|
99
127
|
stream_arn: context.params[:stream_arn],
|
|
100
|
-
operation_type: "control",
|
|
101
128
|
)
|
|
102
129
|
end
|
|
103
130
|
end
|
|
@@ -106,9 +133,9 @@ module Aws::Kinesis
|
|
|
106
133
|
def self.build(context)
|
|
107
134
|
Aws::Kinesis::EndpointParameters.create(
|
|
108
135
|
context.config,
|
|
136
|
+
operation_type: "control",
|
|
109
137
|
stream_id: context.params[:stream_id],
|
|
110
138
|
stream_arn: context.params[:stream_arn],
|
|
111
|
-
operation_type: "control",
|
|
112
139
|
)
|
|
113
140
|
end
|
|
114
141
|
end
|
|
@@ -117,9 +144,9 @@ module Aws::Kinesis
|
|
|
117
144
|
def self.build(context)
|
|
118
145
|
Aws::Kinesis::EndpointParameters.create(
|
|
119
146
|
context.config,
|
|
147
|
+
operation_type: "control",
|
|
120
148
|
stream_id: context.params[:stream_id],
|
|
121
149
|
stream_arn: context.params[:stream_arn],
|
|
122
|
-
operation_type: "control",
|
|
123
150
|
)
|
|
124
151
|
end
|
|
125
152
|
end
|
|
@@ -128,9 +155,9 @@ module Aws::Kinesis
|
|
|
128
155
|
def self.build(context)
|
|
129
156
|
Aws::Kinesis::EndpointParameters.create(
|
|
130
157
|
context.config,
|
|
158
|
+
operation_type: "data",
|
|
131
159
|
stream_id: context.params[:stream_id],
|
|
132
160
|
stream_arn: context.params[:stream_arn],
|
|
133
|
-
operation_type: "data",
|
|
134
161
|
)
|
|
135
162
|
end
|
|
136
163
|
end
|
|
@@ -139,8 +166,8 @@ module Aws::Kinesis
|
|
|
139
166
|
def self.build(context)
|
|
140
167
|
Aws::Kinesis::EndpointParameters.create(
|
|
141
168
|
context.config,
|
|
142
|
-
stream_id: context.params[:stream_id],
|
|
143
169
|
operation_type: "control",
|
|
170
|
+
stream_id: context.params[:stream_id],
|
|
144
171
|
resource_arn: context.params[:resource_arn],
|
|
145
172
|
)
|
|
146
173
|
end
|
|
@@ -150,9 +177,9 @@ module Aws::Kinesis
|
|
|
150
177
|
def self.build(context)
|
|
151
178
|
Aws::Kinesis::EndpointParameters.create(
|
|
152
179
|
context.config,
|
|
180
|
+
operation_type: "data",
|
|
153
181
|
stream_id: context.params[:stream_id],
|
|
154
182
|
stream_arn: context.params[:stream_arn],
|
|
155
|
-
operation_type: "data",
|
|
156
183
|
)
|
|
157
184
|
end
|
|
158
185
|
end
|
|
@@ -161,9 +188,9 @@ module Aws::Kinesis
|
|
|
161
188
|
def self.build(context)
|
|
162
189
|
Aws::Kinesis::EndpointParameters.create(
|
|
163
190
|
context.config,
|
|
191
|
+
operation_type: "control",
|
|
164
192
|
stream_id: context.params[:stream_id],
|
|
165
193
|
stream_arn: context.params[:stream_arn],
|
|
166
|
-
operation_type: "control",
|
|
167
194
|
)
|
|
168
195
|
end
|
|
169
196
|
end
|
|
@@ -172,9 +199,9 @@ module Aws::Kinesis
|
|
|
172
199
|
def self.build(context)
|
|
173
200
|
Aws::Kinesis::EndpointParameters.create(
|
|
174
201
|
context.config,
|
|
202
|
+
operation_type: "control",
|
|
175
203
|
stream_id: context.params[:stream_id],
|
|
176
204
|
stream_arn: context.params[:stream_arn],
|
|
177
|
-
operation_type: "control",
|
|
178
205
|
)
|
|
179
206
|
end
|
|
180
207
|
end
|
|
@@ -183,8 +210,17 @@ module Aws::Kinesis
|
|
|
183
210
|
def self.build(context)
|
|
184
211
|
Aws::Kinesis::EndpointParameters.create(
|
|
185
212
|
context.config,
|
|
213
|
+
operation_type: "control",
|
|
186
214
|
stream_id: context.params[:stream_id],
|
|
187
215
|
stream_arn: context.params[:stream_arn],
|
|
216
|
+
)
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
class ListStreams
|
|
221
|
+
def self.build(context)
|
|
222
|
+
Aws::Kinesis::EndpointParameters.create(
|
|
223
|
+
context.config,
|
|
188
224
|
operation_type: "control",
|
|
189
225
|
)
|
|
190
226
|
end
|
|
@@ -194,8 +230,8 @@ module Aws::Kinesis
|
|
|
194
230
|
def self.build(context)
|
|
195
231
|
Aws::Kinesis::EndpointParameters.create(
|
|
196
232
|
context.config,
|
|
197
|
-
stream_id: context.params[:stream_id],
|
|
198
233
|
operation_type: "control",
|
|
234
|
+
stream_id: context.params[:stream_id],
|
|
199
235
|
resource_arn: context.params[:resource_arn],
|
|
200
236
|
)
|
|
201
237
|
end
|
|
@@ -205,9 +241,9 @@ module Aws::Kinesis
|
|
|
205
241
|
def self.build(context)
|
|
206
242
|
Aws::Kinesis::EndpointParameters.create(
|
|
207
243
|
context.config,
|
|
244
|
+
operation_type: "control",
|
|
208
245
|
stream_id: context.params[:stream_id],
|
|
209
246
|
stream_arn: context.params[:stream_arn],
|
|
210
|
-
operation_type: "control",
|
|
211
247
|
)
|
|
212
248
|
end
|
|
213
249
|
end
|
|
@@ -216,9 +252,9 @@ module Aws::Kinesis
|
|
|
216
252
|
def self.build(context)
|
|
217
253
|
Aws::Kinesis::EndpointParameters.create(
|
|
218
254
|
context.config,
|
|
255
|
+
operation_type: "control",
|
|
219
256
|
stream_id: context.params[:stream_id],
|
|
220
257
|
stream_arn: context.params[:stream_arn],
|
|
221
|
-
operation_type: "control",
|
|
222
258
|
)
|
|
223
259
|
end
|
|
224
260
|
end
|
|
@@ -227,9 +263,9 @@ module Aws::Kinesis
|
|
|
227
263
|
def self.build(context)
|
|
228
264
|
Aws::Kinesis::EndpointParameters.create(
|
|
229
265
|
context.config,
|
|
266
|
+
operation_type: "data",
|
|
230
267
|
stream_id: context.params[:stream_id],
|
|
231
268
|
stream_arn: context.params[:stream_arn],
|
|
232
|
-
operation_type: "data",
|
|
233
269
|
)
|
|
234
270
|
end
|
|
235
271
|
end
|
|
@@ -238,9 +274,9 @@ module Aws::Kinesis
|
|
|
238
274
|
def self.build(context)
|
|
239
275
|
Aws::Kinesis::EndpointParameters.create(
|
|
240
276
|
context.config,
|
|
277
|
+
operation_type: "data",
|
|
241
278
|
stream_id: context.params[:stream_id],
|
|
242
279
|
stream_arn: context.params[:stream_arn],
|
|
243
|
-
operation_type: "data",
|
|
244
280
|
)
|
|
245
281
|
end
|
|
246
282
|
end
|
|
@@ -249,8 +285,8 @@ module Aws::Kinesis
|
|
|
249
285
|
def self.build(context)
|
|
250
286
|
Aws::Kinesis::EndpointParameters.create(
|
|
251
287
|
context.config,
|
|
252
|
-
stream_id: context.params[:stream_id],
|
|
253
288
|
operation_type: "control",
|
|
289
|
+
stream_id: context.params[:stream_id],
|
|
254
290
|
resource_arn: context.params[:resource_arn],
|
|
255
291
|
)
|
|
256
292
|
end
|
|
@@ -260,9 +296,9 @@ module Aws::Kinesis
|
|
|
260
296
|
def self.build(context)
|
|
261
297
|
Aws::Kinesis::EndpointParameters.create(
|
|
262
298
|
context.config,
|
|
299
|
+
operation_type: "control",
|
|
263
300
|
stream_id: context.params[:stream_id],
|
|
264
301
|
stream_arn: context.params[:stream_arn],
|
|
265
|
-
operation_type: "control",
|
|
266
302
|
)
|
|
267
303
|
end
|
|
268
304
|
end
|
|
@@ -271,9 +307,9 @@ module Aws::Kinesis
|
|
|
271
307
|
def self.build(context)
|
|
272
308
|
Aws::Kinesis::EndpointParameters.create(
|
|
273
309
|
context.config,
|
|
310
|
+
operation_type: "control",
|
|
274
311
|
stream_id: context.params[:stream_id],
|
|
275
312
|
stream_arn: context.params[:stream_arn],
|
|
276
|
-
operation_type: "control",
|
|
277
313
|
)
|
|
278
314
|
end
|
|
279
315
|
end
|
|
@@ -282,9 +318,9 @@ module Aws::Kinesis
|
|
|
282
318
|
def self.build(context)
|
|
283
319
|
Aws::Kinesis::EndpointParameters.create(
|
|
284
320
|
context.config,
|
|
321
|
+
operation_type: "control",
|
|
285
322
|
stream_id: context.params[:stream_id],
|
|
286
323
|
stream_arn: context.params[:stream_arn],
|
|
287
|
-
operation_type: "control",
|
|
288
324
|
)
|
|
289
325
|
end
|
|
290
326
|
end
|
|
@@ -293,9 +329,9 @@ module Aws::Kinesis
|
|
|
293
329
|
def self.build(context)
|
|
294
330
|
Aws::Kinesis::EndpointParameters.create(
|
|
295
331
|
context.config,
|
|
332
|
+
operation_type: "control",
|
|
296
333
|
stream_id: context.params[:stream_id],
|
|
297
334
|
stream_arn: context.params[:stream_arn],
|
|
298
|
-
operation_type: "control",
|
|
299
335
|
)
|
|
300
336
|
end
|
|
301
337
|
end
|
|
@@ -304,9 +340,9 @@ module Aws::Kinesis
|
|
|
304
340
|
def self.build(context)
|
|
305
341
|
Aws::Kinesis::EndpointParameters.create(
|
|
306
342
|
context.config,
|
|
343
|
+
operation_type: "control",
|
|
307
344
|
stream_id: context.params[:stream_id],
|
|
308
345
|
stream_arn: context.params[:stream_arn],
|
|
309
|
-
operation_type: "control",
|
|
310
346
|
)
|
|
311
347
|
end
|
|
312
348
|
end
|
|
@@ -315,8 +351,8 @@ module Aws::Kinesis
|
|
|
315
351
|
def self.build(context)
|
|
316
352
|
Aws::Kinesis::EndpointParameters.create(
|
|
317
353
|
context.config,
|
|
318
|
-
stream_id: context.params[:stream_id],
|
|
319
354
|
operation_type: "data",
|
|
355
|
+
stream_id: context.params[:stream_id],
|
|
320
356
|
consumer_arn: context.params[:consumer_arn],
|
|
321
357
|
)
|
|
322
358
|
end
|
|
@@ -326,8 +362,8 @@ module Aws::Kinesis
|
|
|
326
362
|
def self.build(context)
|
|
327
363
|
Aws::Kinesis::EndpointParameters.create(
|
|
328
364
|
context.config,
|
|
329
|
-
stream_id: context.params[:stream_id],
|
|
330
365
|
operation_type: "control",
|
|
366
|
+
stream_id: context.params[:stream_id],
|
|
331
367
|
resource_arn: context.params[:resource_arn],
|
|
332
368
|
)
|
|
333
369
|
end
|
|
@@ -337,20 +373,29 @@ module Aws::Kinesis
|
|
|
337
373
|
def self.build(context)
|
|
338
374
|
Aws::Kinesis::EndpointParameters.create(
|
|
339
375
|
context.config,
|
|
340
|
-
stream_id: context.params[:stream_id],
|
|
341
376
|
operation_type: "control",
|
|
377
|
+
stream_id: context.params[:stream_id],
|
|
342
378
|
resource_arn: context.params[:resource_arn],
|
|
343
379
|
)
|
|
344
380
|
end
|
|
345
381
|
end
|
|
346
382
|
|
|
383
|
+
class UpdateAccountSettings
|
|
384
|
+
def self.build(context)
|
|
385
|
+
Aws::Kinesis::EndpointParameters.create(
|
|
386
|
+
context.config,
|
|
387
|
+
operation_type: "control",
|
|
388
|
+
)
|
|
389
|
+
end
|
|
390
|
+
end
|
|
391
|
+
|
|
347
392
|
class UpdateMaxRecordSize
|
|
348
393
|
def self.build(context)
|
|
349
394
|
Aws::Kinesis::EndpointParameters.create(
|
|
350
395
|
context.config,
|
|
396
|
+
operation_type: "control",
|
|
351
397
|
stream_id: context.params[:stream_id],
|
|
352
398
|
stream_arn: context.params[:stream_arn],
|
|
353
|
-
operation_type: "control",
|
|
354
399
|
)
|
|
355
400
|
end
|
|
356
401
|
end
|
|
@@ -359,9 +404,9 @@ module Aws::Kinesis
|
|
|
359
404
|
def self.build(context)
|
|
360
405
|
Aws::Kinesis::EndpointParameters.create(
|
|
361
406
|
context.config,
|
|
407
|
+
operation_type: "control",
|
|
362
408
|
stream_id: context.params[:stream_id],
|
|
363
409
|
stream_arn: context.params[:stream_arn],
|
|
364
|
-
operation_type: "control",
|
|
365
410
|
)
|
|
366
411
|
end
|
|
367
412
|
end
|
|
@@ -370,9 +415,9 @@ module Aws::Kinesis
|
|
|
370
415
|
def self.build(context)
|
|
371
416
|
Aws::Kinesis::EndpointParameters.create(
|
|
372
417
|
context.config,
|
|
418
|
+
operation_type: "control",
|
|
373
419
|
stream_id: context.params[:stream_id],
|
|
374
420
|
stream_arn: context.params[:stream_arn],
|
|
375
|
-
operation_type: "control",
|
|
376
421
|
)
|
|
377
422
|
end
|
|
378
423
|
end
|
|
@@ -381,9 +426,9 @@ module Aws::Kinesis
|
|
|
381
426
|
def self.build(context)
|
|
382
427
|
Aws::Kinesis::EndpointParameters.create(
|
|
383
428
|
context.config,
|
|
429
|
+
operation_type: "control",
|
|
384
430
|
stream_id: context.params[:stream_id],
|
|
385
431
|
stream_arn: context.params[:stream_arn],
|
|
386
|
-
operation_type: "control",
|
|
387
432
|
)
|
|
388
433
|
end
|
|
389
434
|
end
|
|
@@ -393,6 +438,8 @@ module Aws::Kinesis
|
|
|
393
438
|
case context.operation_name
|
|
394
439
|
when :add_tags_to_stream
|
|
395
440
|
AddTagsToStream.build(context)
|
|
441
|
+
when :create_stream
|
|
442
|
+
CreateStream.build(context)
|
|
396
443
|
when :decrease_stream_retention_period
|
|
397
444
|
DecreaseStreamRetentionPeriod.build(context)
|
|
398
445
|
when :delete_resource_policy
|
|
@@ -401,6 +448,10 @@ module Aws::Kinesis
|
|
|
401
448
|
DeleteStream.build(context)
|
|
402
449
|
when :deregister_stream_consumer
|
|
403
450
|
DeregisterStreamConsumer.build(context)
|
|
451
|
+
when :describe_account_settings
|
|
452
|
+
DescribeAccountSettings.build(context)
|
|
453
|
+
when :describe_limits
|
|
454
|
+
DescribeLimits.build(context)
|
|
404
455
|
when :describe_stream
|
|
405
456
|
DescribeStream.build(context)
|
|
406
457
|
when :describe_stream_consumer
|
|
@@ -423,6 +474,8 @@ module Aws::Kinesis
|
|
|
423
474
|
ListShards.build(context)
|
|
424
475
|
when :list_stream_consumers
|
|
425
476
|
ListStreamConsumers.build(context)
|
|
477
|
+
when :list_streams
|
|
478
|
+
ListStreams.build(context)
|
|
426
479
|
when :list_tags_for_resource
|
|
427
480
|
ListTagsForResource.build(context)
|
|
428
481
|
when :list_tags_for_stream
|
|
@@ -451,6 +504,8 @@ module Aws::Kinesis
|
|
|
451
504
|
TagResource.build(context)
|
|
452
505
|
when :untag_resource
|
|
453
506
|
UntagResource.build(context)
|
|
507
|
+
when :update_account_settings
|
|
508
|
+
UpdateAccountSettings.build(context)
|
|
454
509
|
when :update_max_record_size
|
|
455
510
|
UpdateMaxRecordSize.build(context)
|
|
456
511
|
when :update_shard_count
|
|
@@ -23,6 +23,23 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
|
23
23
|
Aws::Kinesis::EndpointProvider.new
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
option(
|
|
27
|
+
:account_id_endpoint_mode,
|
|
28
|
+
doc_type: 'String',
|
|
29
|
+
docstring: <<~DOCS) do |cfg|
|
|
30
|
+
The account ID endpoint mode to use. This can be one of the following values:
|
|
31
|
+
* `preferred` - The default behavior. Use the account ID endpoint if
|
|
32
|
+
available, otherwise use the standard endpoint.
|
|
33
|
+
* `disabled` - Never use the account ID endpoint. Only use the standard
|
|
34
|
+
endpoint.
|
|
35
|
+
* `required` - Always use the account ID endpoint. If the account ID
|
|
36
|
+
cannot be retrieved from credentials, an error is raised.
|
|
37
|
+
DOCS
|
|
38
|
+
value = ENV['AWS_ACCOUNT_ID_ENDPOINT_MODE']
|
|
39
|
+
value ||= Aws.shared_config.account_id_endpoint_mode(profile: cfg.profile)
|
|
40
|
+
value || 'preferred'
|
|
41
|
+
end
|
|
42
|
+
|
|
26
43
|
# @api private
|
|
27
44
|
class Handler < Seahorse::Client::Handler
|
|
28
45
|
def call(context)
|
|
@@ -51,6 +68,14 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
|
51
68
|
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
|
52
69
|
metrics << 'SIGV4A_SIGNING'
|
|
53
70
|
end
|
|
71
|
+
case context.config.account_id_endpoint_mode
|
|
72
|
+
when 'preferred'
|
|
73
|
+
metrics << 'ACCOUNT_ID_MODE_PREFERRED'
|
|
74
|
+
when 'disabled'
|
|
75
|
+
metrics << 'ACCOUNT_ID_MODE_DISABLED'
|
|
76
|
+
when 'required'
|
|
77
|
+
metrics << 'ACCOUNT_ID_MODE_REQUIRED'
|
|
78
|
+
end
|
|
54
79
|
if context.config.credentials&.credentials&.account_id
|
|
55
80
|
metrics << 'RESOLVED_ACCOUNT_ID'
|
|
56
81
|
end
|
|
@@ -1917,7 +1917,7 @@ module Aws::Kinesis
|
|
|
1917
1917
|
# Kinesis Data Streams, which does not inspect, interpret, or change
|
|
1918
1918
|
# the data in the blob in any way. When the data blob (the payload
|
|
1919
1919
|
# before base64-encoding) is added to the partition key size, the
|
|
1920
|
-
# total size must not exceed the maximum record size (
|
|
1920
|
+
# total size must not exceed the maximum record size (10 MiB).
|
|
1921
1921
|
# @return [String]
|
|
1922
1922
|
#
|
|
1923
1923
|
# @!attribute [rw] partition_key
|
data/lib/aws-sdk-kinesis.rb
CHANGED
data/sig/async_client.rbs
CHANGED
data/sig/client.rbs
CHANGED
data/sig/resource.rbs
CHANGED