aws-sdk-kinesis 1.49.0 → 1.51.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f6e3ba07a7a8a50f7d4120873e18e2058070a531a3b1a406d5ea61bda4a271c
4
- data.tar.gz: e10fab6ac633d7c3b4ee6b109f7367c52c7f6750dc582da267eb1f568b5551d6
3
+ metadata.gz: 96f7d851759b67586c45404d54d2a498880fc247d59cc7ade0211bd438d4e272
4
+ data.tar.gz: 7ace51acf945677a8f41a312aa40d8b5b86b244db4848c8883d019ad2d3cbc30
5
5
  SHA512:
6
- metadata.gz: '08c6e696855395ae3af048486d836d4b5ce5c1dfbbbe8fb064c2db639900bb8c95c07b6957ce3a4c3912babb12325fd93f2ea3df231cd72fd2dc88fcd36261b5'
7
- data.tar.gz: b14f19daa94105b43de70ffaacf739337f65bc589860696e38b6504f7b7e8d9135a8a6493edaf354577bb3a9f2fb2d501f1b7b7cf6ab3f9d71e31ae2b2cee37e
6
+ metadata.gz: 862fd28588fb08e4d730a979a4d4f683c71354d4d0e4fba6165463564128188b91f287ec17362919614dbfaa56504775b2e47c36bc4c66c2cbdbb254b70bca82
7
+ data.tar.gz: 608adf91fc69f64d15cc0ca9a8952e3e91131df188664411454d4b0deeff8cbbfef285f082ef1b1e535608434f6ff0f33eefc4bd7ca70f273b5d176c55383904
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.51.0 (2023-09-19)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.50.0 (2023-07-11)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.49.0 (2023-07-06)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.49.0
1
+ 1.51.0
@@ -155,6 +155,10 @@ module Aws::Kinesis
155
155
  # @option options [Proc] :event_stream_handler
156
156
  # When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
157
157
  #
158
+ # @option options [Boolean] :ignore_configured_endpoint_urls
159
+ # Setting to true disables use of endpoint URLs provided via environment
160
+ # variables and the shared configuration file.
161
+ #
158
162
  # @option options [Proc] :input_event_stream_handler
159
163
  # When an EventStream or Proc object is provided, it can be used for sending events for the event stream.
160
164
  #
@@ -611,7 +615,7 @@ module Aws::Kinesis
611
615
  http_response: Seahorse::Client::Http::AsyncResponse.new,
612
616
  config: config)
613
617
  context[:gem_name] = 'aws-sdk-kinesis'
614
- context[:gem_version] = '1.49.0'
618
+ context[:gem_version] = '1.51.0'
615
619
  Seahorse::Client::Request.new(handlers, context)
616
620
  end
617
621
 
@@ -221,6 +221,10 @@ module Aws::Kinesis
221
221
  # @option options [Proc] :event_stream_handler
222
222
  # When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
223
223
  #
224
+ # @option options [Boolean] :ignore_configured_endpoint_urls
225
+ # Setting to true disables use of endpoint URLs provided via environment
226
+ # variables and the shared configuration file.
227
+ #
224
228
  # @option options [Proc] :input_event_stream_handler
225
229
  # When an EventStream or Proc object is provided, it can be used for sending events for the event stream.
226
230
  #
@@ -2632,7 +2636,7 @@ module Aws::Kinesis
2632
2636
  params: params,
2633
2637
  config: config)
2634
2638
  context[:gem_name] = 'aws-sdk-kinesis'
2635
- context[:gem_version] = '1.49.0'
2639
+ context[:gem_version] = '1.51.0'
2636
2640
  Seahorse::Client::Request.new(handlers, context)
2637
2641
  end
2638
2642
 
@@ -71,9 +71,6 @@ module Aws::Kinesis
71
71
 
72
72
  def initialize(options = {})
73
73
  self[:region] = options[:region]
74
- if self[:region].nil?
75
- raise ArgumentError, "Missing required EndpointParameter: :region"
76
- end
77
74
  self[:use_dual_stack] = options[:use_dual_stack]
78
75
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
79
76
  if self[:use_dual_stack].nil?
@@ -17,141 +17,138 @@ module Aws::Kinesis
17
17
  stream_arn = parameters.stream_arn
18
18
  operation_type = parameters.operation_type
19
19
  consumer_arn = parameters.consumer_arn
20
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
21
- if Aws::Endpoints::Matchers.set?(stream_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && 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"))
22
- if (arn = Aws::Endpoints::Matchers.aws_parse_arn(stream_arn))
23
- if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
24
- if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
25
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
26
- if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
27
- if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
28
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
29
- if Aws::Endpoints::Matchers.set?(operation_type)
30
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
31
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
33
- return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
34
- end
35
- raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
20
+ if Aws::Endpoints::Matchers.set?(stream_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
21
+ if (arn = Aws::Endpoints::Matchers.aws_parse_arn(stream_arn))
22
+ if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
23
+ if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
24
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
25
+ if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
26
+ if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
27
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
28
+ if Aws::Endpoints::Matchers.set?(operation_type)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
31
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
32
+ return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
36
33
  end
37
- raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
34
+ raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
38
35
  end
39
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
41
- return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
42
- end
43
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
36
+ raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
37
+ end
38
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
39
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
40
+ return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
41
  end
45
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
46
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
47
- return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
48
- end
49
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
43
+ end
44
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
45
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
46
+ return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
50
47
  end
51
- return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
48
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
52
49
  end
53
- raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
50
+ return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
54
51
  end
55
- raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
52
+ raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
56
53
  end
57
- raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
54
+ raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
58
55
  end
59
- raise ArgumentError, "Invalid ARN: No ARN type specified"
56
+ raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
60
57
  end
61
- raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
58
+ raise ArgumentError, "Invalid ARN: No ARN type specified"
62
59
  end
63
- raise ArgumentError, "Invalid ARN: Invalid region."
60
+ raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
64
61
  end
65
- raise ArgumentError, "Invalid ARN: Invalid account id."
62
+ raise ArgumentError, "Invalid ARN: Invalid region."
66
63
  end
67
- raise ArgumentError, "Invalid ARN: Failed to parse ARN."
64
+ raise ArgumentError, "Invalid ARN: Invalid account id."
68
65
  end
69
- if Aws::Endpoints::Matchers.set?(consumer_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && 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"))
70
- if (arn = Aws::Endpoints::Matchers.aws_parse_arn(consumer_arn))
71
- if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
72
- if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
73
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
74
- if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
75
- if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
76
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
77
- if Aws::Endpoints::Matchers.set?(operation_type)
78
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
79
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
80
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
81
- return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
82
- end
83
- raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
66
+ raise ArgumentError, "Invalid ARN: Failed to parse ARN."
67
+ end
68
+ if Aws::Endpoints::Matchers.set?(consumer_arn) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(endpoint)) && Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-iso-b"))
69
+ if (arn = Aws::Endpoints::Matchers.aws_parse_arn(consumer_arn))
70
+ if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "accountId"), false)
71
+ if Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(arn, "region"), false)
72
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(arn, "service"), "kinesis")
73
+ if (arn_type = Aws::Endpoints::Matchers.attr(arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
74
+ if Aws::Endpoints::Matchers.string_equals?(arn_type, "stream")
75
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{arn['partition']}")
76
+ if Aws::Endpoints::Matchers.set?(operation_type)
77
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
78
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
79
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
80
+ return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
84
81
  end
85
- raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
82
+ raise ArgumentError, "DualStack is enabled, but this partition does not support DualStack."
86
83
  end
87
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
88
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
89
- return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
90
- end
91
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
84
+ raise ArgumentError, "FIPS is enabled, but this partition does not support FIPS."
85
+ end
86
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
87
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
88
+ return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
92
89
  end
93
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
94
- if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
95
- return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
96
- end
97
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
90
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
91
+ end
92
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
93
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
94
+ return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
98
95
  end
99
- return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
96
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
100
97
  end
101
- raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
98
+ return Aws::Endpoints::Endpoint.new(url: "https://#{arn['accountId']}.#{operation_type}-kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
102
99
  end
103
- raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
100
+ raise ArgumentError, "Operation Type is not set. Please contact service team for resolution."
104
101
  end
105
- raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
102
+ raise ArgumentError, "Partition: #{arn['partition']} from ARN doesn't match with partition name: #{partition_result['name']}."
106
103
  end
107
- raise ArgumentError, "Invalid ARN: No ARN type specified"
104
+ raise ArgumentError, "Invalid ARN: Kinesis ARNs don't support `#{arn_type}` arn types."
108
105
  end
109
- raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
106
+ raise ArgumentError, "Invalid ARN: No ARN type specified"
110
107
  end
111
- raise ArgumentError, "Invalid ARN: Invalid region."
108
+ raise ArgumentError, "Invalid ARN: The ARN was not for the Kinesis service, found: #{arn['service']}."
112
109
  end
113
- raise ArgumentError, "Invalid ARN: Invalid account id."
110
+ raise ArgumentError, "Invalid ARN: Invalid region."
114
111
  end
115
- raise ArgumentError, "Invalid ARN: Failed to parse ARN."
112
+ raise ArgumentError, "Invalid ARN: Invalid account id."
116
113
  end
117
- if Aws::Endpoints::Matchers.set?(endpoint)
118
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
119
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
120
- end
121
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
122
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
123
- end
124
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
114
+ raise ArgumentError, "Invalid ARN: Failed to parse ARN."
115
+ end
116
+ if Aws::Endpoints::Matchers.set?(endpoint)
117
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
118
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
125
119
  end
126
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
127
- 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"))
128
- return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
129
- end
130
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
120
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
121
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
131
122
  end
132
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
133
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
134
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
135
- return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.amazonaws.com", headers: {}, properties: {})
123
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
124
+ end
125
+ if Aws::Endpoints::Matchers.set?(region)
126
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
127
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
128
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
129
+ return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
136
130
  end
137
- return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
131
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
138
132
  end
139
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
140
- end
141
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
142
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
143
- return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
133
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
134
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
135
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
136
+ return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.amazonaws.com", headers: {}, properties: {})
137
+ end
138
+ return Aws::Endpoints::Endpoint.new(url: "https://kinesis-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
139
+ end
140
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
144
141
  end
145
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
146
- end
147
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
148
- return Aws::Endpoints::Endpoint.new(url: "https://kinesis.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
149
- end
150
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
151
- return Aws::Endpoints::Endpoint.new(url: "https://kinesis.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
142
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
143
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
144
+ return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
145
+ end
146
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
147
+ end
148
+ return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
152
149
  end
153
- return Aws::Endpoints::Endpoint.new(url: "https://kinesis.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
154
150
  end
151
+ raise ArgumentError, "Invalid Configuration: Missing Region"
155
152
  raise ArgumentError, 'No endpoint could be resolved'
156
153
 
157
154
  end
@@ -55,6 +55,6 @@ require_relative 'aws-sdk-kinesis/event_streams'
55
55
  # @!group service
56
56
  module Aws::Kinesis
57
57
 
58
- GEM_VERSION = '1.49.0'
58
+ GEM_VERSION = '1.51.0'
59
59
 
60
60
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kinesis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.49.0
4
+ version: 1.51.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-06 00:00:00.000000000 Z
11
+ date: 2023-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core