aws-sdk-kinesis 1.50.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: 7e9203d14233926dd22b73ccfb14b1bbd1eb86ac400851f349f1e146fd6baa3f
4
- data.tar.gz: dc4dde31a9a72b6dea23d6a888f9bc100e1c03d3aa148bbf582a1e55f52d4ee7
3
+ metadata.gz: 96f7d851759b67586c45404d54d2a498880fc247d59cc7ade0211bd438d4e272
4
+ data.tar.gz: 7ace51acf945677a8f41a312aa40d8b5b86b244db4848c8883d019ad2d3cbc30
5
5
  SHA512:
6
- metadata.gz: b61f7744088c27eb15289b3ff6a7acab490262a5f662de7b850d6586841d180e4044c49df1d21e3688a659320a7780a10ed32b680b0fdad17e97f9bdc758d81f
7
- data.tar.gz: 88079d9938fff69aeb2f7aff8a31c6fa68d8b4af7ec5ca7931fd3540cfe4c4f46246a93da7c4f32b032d3b8921487f1ee239607e9ff624a7352dd21fd063e0ec
6
+ metadata.gz: 862fd28588fb08e4d730a979a4d4f683c71354d4d0e4fba6165463564128188b91f287ec17362919614dbfaa56504775b2e47c36bc4c66c2cbdbb254b70bca82
7
+ data.tar.gz: 608adf91fc69f64d15cc0ca9a8952e3e91131df188664411454d4b0deeff8cbbfef285f082ef1b1e535608434f6ff0f33eefc4bd7ca70f273b5d176c55383904
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.50.0 (2023-07-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.50.0
1
+ 1.51.0
@@ -615,7 +615,7 @@ module Aws::Kinesis
615
615
  http_response: Seahorse::Client::Http::AsyncResponse.new,
616
616
  config: config)
617
617
  context[:gem_name] = 'aws-sdk-kinesis'
618
- context[:gem_version] = '1.50.0'
618
+ context[:gem_version] = '1.51.0'
619
619
  Seahorse::Client::Request.new(handlers, context)
620
620
  end
621
621
 
@@ -2636,7 +2636,7 @@ module Aws::Kinesis
2636
2636
  params: params,
2637
2637
  config: config)
2638
2638
  context[:gem_name] = 'aws-sdk-kinesis'
2639
- context[:gem_version] = '1.50.0'
2639
+ context[:gem_version] = '1.51.0'
2640
2640
  Seahorse::Client::Request.new(handlers, context)
2641
2641
  end
2642
2642
 
@@ -71,9 +71,6 @@ module Aws::Kinesis
71
71
 
72
72
  def initialize(options = {})
73
73
  self[:region] = options[:region]
74
- if self[:region].nil?
75
- raise ArgumentError, "Missing required EndpointParameter: :region"
76
- end
77
74
  self[:use_dual_stack] = options[:use_dual_stack]
78
75
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
79
76
  if self[:use_dual_stack].nil?
@@ -17,141 +17,138 @@ module Aws::Kinesis
17
17
  stream_arn = parameters.stream_arn
18
18
  operation_type = parameters.operation_type
19
19
  consumer_arn = parameters.consumer_arn
20
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
21
- if 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.50.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.50.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-11 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