aws-sdk-augmentedairuntime 1.24.0 → 1.25.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f01ce85da1c521c0357283add2bf4113e4c0de1b004426bcb84fa8a8ad9d4650
4
- data.tar.gz: 6a953fc494c358a32cb3f2f918bb5b85c4029b85b1bab12fee5553afdd749ea2
3
+ metadata.gz: 21d4202052dd5d10f5255f2649cc75402ad17b67ac9fdb276ac8ce068936f5d1
4
+ data.tar.gz: d4e0827818624ef72941e3886a0f351e454fecbec32bf4305db0845923300d5d
5
5
  SHA512:
6
- metadata.gz: e70fc6e405c0b520c6bf462d7665299b80383232669472aaaa9caa2ae7af9d567520dcae7e25eb1fa27e6ed5e682fc4cf1e2982c3293de9dca6716661c16f9cf
7
- data.tar.gz: fe77c8e95cec6e41f4c40a614eda3503a804a6da6add3bc964d10e137364d6d63852350f6d0621cac64214cff41d0331e721e929b47457839c29f00af0cabfac
6
+ metadata.gz: 0f6fc8404634ccf22da2c0784f3b2a6002cecd92900832e368a5107ef32138753ca7510d855d0c140bc78e77584a5531ce00fa291ea8d0b74f0df909985fd022
7
+ data.tar.gz: 9680e93e2afe2e5241a947b31f4222e1883e30190e0bdd4c83ecb8b77f16f62766fa353a3a5721eb4aeabdfa9b71bb532a5e967c69006c8d3b75f59c6a1e7d70
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.25.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.24.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -136,4 +143,4 @@ Unreleased Changes
136
143
  1.0.0 (2019-12-03)
137
144
  ------------------
138
145
 
139
- * Feature - Initial release of `aws-sdk-augmentedairuntime`.
146
+ * Feature - Initial release of `aws-sdk-augmentedairuntime`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.24.0
1
+ 1.25.0
@@ -584,7 +584,7 @@ module Aws::AugmentedAIRuntime
584
584
  params: params,
585
585
  config: config)
586
586
  context[:gem_name] = 'aws-sdk-augmentedairuntime'
587
- context[:gem_version] = '1.24.0'
587
+ context[:gem_version] = '1.25.0'
588
588
  Seahorse::Client::Request.new(handlers, context)
589
589
  end
590
590
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::AugmentedAIRuntime
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ 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"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://a2i-runtime.sagemaker-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://a2i-runtime.sagemaker-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://a2i-runtime.sagemaker.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://a2i-runtime.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZh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u
99
- ZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYTJpLXJ1bnRpbWUuc2FnZW1ha2Vy
100
- LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4
101
- fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRw
102
- b2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sg
103
- aXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9y
104
- dCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6
105
- W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYTJpLXJ1bnRpbWUuc2Fn
106
- ZW1ha2VyLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIs
107
- InByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2lu
108
- dCJ9XX1dfQ==
109
-
110
- JSON
111
50
  end
112
51
  end
@@ -25,13 +25,6 @@ module Aws::AugmentedAIRuntime
25
25
  include Aws::Structure
26
26
  end
27
27
 
28
- # @note When making an API call, you may pass DeleteHumanLoopRequest
29
- # data as a hash:
30
- #
31
- # {
32
- # human_loop_name: "HumanLoopName", # required
33
- # }
34
- #
35
28
  # @!attribute [rw] human_loop_name
36
29
  # The name of the human loop that you want to delete.
37
30
  # @return [String]
@@ -48,13 +41,6 @@ module Aws::AugmentedAIRuntime
48
41
  #
49
42
  class DeleteHumanLoopResponse < Aws::EmptyStructure; end
50
43
 
51
- # @note When making an API call, you may pass DescribeHumanLoopRequest
52
- # data as a hash:
53
- #
54
- # {
55
- # human_loop_name: "HumanLoopName", # required
56
- # }
57
- #
58
44
  # @!attribute [rw] human_loop_name
59
45
  # The name of the human loop that you want information about.
60
46
  # @return [String]
@@ -123,13 +109,6 @@ module Aws::AugmentedAIRuntime
123
109
  # Attributes of the data specified by the customer. Use these to
124
110
  # describe the data to be labeled.
125
111
  #
126
- # @note When making an API call, you may pass HumanLoopDataAttributes
127
- # data as a hash:
128
- #
129
- # {
130
- # content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # required, accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
131
- # }
132
- #
133
112
  # @!attribute [rw] content_classifiers
134
113
  # Declares that your content is free of personally identifiable
135
114
  # information or adult content.
@@ -148,13 +127,6 @@ module Aws::AugmentedAIRuntime
148
127
 
149
128
  # An object containing the human loop input in JSON format.
150
129
  #
151
- # @note When making an API call, you may pass HumanLoopInput
152
- # data as a hash:
153
- #
154
- # {
155
- # input_content: "InputContent", # required
156
- # }
157
- #
158
130
  # @!attribute [rw] input_content
159
131
  # Serialized input from the human loop. The input must be a string
160
132
  # representation of a file in JSON format.
@@ -233,18 +205,6 @@ module Aws::AugmentedAIRuntime
233
205
  include Aws::Structure
234
206
  end
235
207
 
236
- # @note When making an API call, you may pass ListHumanLoopsRequest
237
- # data as a hash:
238
- #
239
- # {
240
- # creation_time_after: Time.now,
241
- # creation_time_before: Time.now,
242
- # flow_definition_arn: "FlowDefinitionArn", # required
243
- # sort_order: "Ascending", # accepts Ascending, Descending
244
- # next_token: "NextToken",
245
- # max_results: 1,
246
- # }
247
- #
248
208
  # @!attribute [rw] creation_time_after
249
209
  # (Optional) The timestamp of the date when you want the human loops
250
210
  # to begin in ISO 8601 format. For example, `2020-02-24`.
@@ -344,20 +304,6 @@ module Aws::AugmentedAIRuntime
344
304
  include Aws::Structure
345
305
  end
346
306
 
347
- # @note When making an API call, you may pass StartHumanLoopRequest
348
- # data as a hash:
349
- #
350
- # {
351
- # human_loop_name: "HumanLoopName", # required
352
- # flow_definition_arn: "FlowDefinitionArn", # required
353
- # human_loop_input: { # required
354
- # input_content: "InputContent", # required
355
- # },
356
- # data_attributes: {
357
- # content_classifiers: ["FreeOfPersonallyIdentifiableInformation"], # required, accepts FreeOfPersonallyIdentifiableInformation, FreeOfAdultContent
358
- # },
359
- # }
360
- #
361
307
  # @!attribute [rw] human_loop_name
362
308
  # The name of the human loop.
363
309
  # @return [String]
@@ -400,13 +346,6 @@ module Aws::AugmentedAIRuntime
400
346
  include Aws::Structure
401
347
  end
402
348
 
403
- # @note When making an API call, you may pass StopHumanLoopRequest
404
- # data as a hash:
405
- #
406
- # {
407
- # human_loop_name: "HumanLoopName", # required
408
- # }
409
- #
410
349
  # @!attribute [rw] human_loop_name
411
350
  # The name of the human loop that you want to stop.
412
351
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-augmentedairuntime/customizations'
52
52
  # @!group service
53
53
  module Aws::AugmentedAIRuntime
54
54
 
55
- GEM_VERSION = '1.24.0'
55
+ GEM_VERSION = '1.25.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-augmentedairuntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.25.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: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core