aws-sdk-sagemaker 1.159.0 → 1.160.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: '0890d98eddadde040eac5ef7d4ed869dd3bb6461060f0859d47518379b660a1b'
4
- data.tar.gz: 16aeb1fc5318f4b9d0dea72a879d43b4189e592c55c405dddb801cf999cd241b
3
+ metadata.gz: 68257fc763d05bf903e7e94883a6d57ada657a4a5e1f896d0835e2756e2f68ea
4
+ data.tar.gz: 8a623fd58b20bae9857cc94c64707f6aad1f0a315cee7f3bcefc6752a6763180
5
5
  SHA512:
6
- metadata.gz: 75d8ae6495bdd8f4c52f7005715d31cc775da29ec8266a14eecff3347a025fb3e068707fca46c592a98d207efbc464a0e576c3001e612915d7cac4fc880de535
7
- data.tar.gz: 26511dfec195d859f21ad3a0d914c8c57f12ac8f85157460e7a3d0a7b31ca6b8332d63294e767ea1523e4b5f98f69fb745b707bd36036b48388ad874e36670fb
6
+ metadata.gz: 4147ec5f876a614bc6a4b5f50e15059d51f6a32d2b9f1a175535ff594bff17f4b2cce60bb558298fbda3c0068cb0b95e7204b2a6ea4f16c3d249a4cb7725f97c
7
+ data.tar.gz: e52e107a3d7408fec2c7cb1c75ff82e91030b7c4966dfb7d58fe62ef88457df2147cd8a74960574dad8429f838eab1909df802834343400efacf7d529494bce0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.160.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.159.0 (2022-12-21)
5
12
  ------------------
6
13
 
@@ -810,4 +817,4 @@ Unreleased Changes
810
817
  1.0.0 (2017-11-29)
811
818
  ------------------
812
819
 
813
- * Feature - Initial release of `aws-sdk-sagemaker`.
820
+ * Feature - Initial release of `aws-sdk-sagemaker`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.159.0
1
+ 1.160.0
@@ -22716,7 +22716,7 @@ module Aws::SageMaker
22716
22716
  params: params,
22717
22717
  config: config)
22718
22718
  context[:gem_name] = 'aws-sdk-sagemaker'
22719
- context[:gem_version] = '1.159.0'
22719
+ context[:gem_version] = '1.160.0'
22720
22720
  Seahorse::Client::Request.new(handlers, context)
22721
22721
  end
22722
22722
 
@@ -9,118 +9,52 @@
9
9
 
10
10
  module Aws::SageMaker
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)
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://api.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
+ if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://api-fips.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1-secondary")
39
+ return Aws::Endpoints::Endpoint.new(url: "https://api.sagemaker.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
40
+ end
41
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://api-fips.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ return Aws::Endpoints::Endpoint.new(url: "https://api.sagemaker-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
45
+ end
46
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
47
+ end
48
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
49
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
50
+ return Aws::Endpoints::Endpoint.new(url: "https://api.sagemaker.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
51
+ end
52
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
53
+ end
54
+ return Aws::Endpoints::Endpoint.new(url: "https://api.sagemaker.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
55
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
56
+ raise ArgumentError, 'No endpoint could be resolved'
24
57
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
58
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
- IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
42
- aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
43
- Uy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQuIElmIHRoZSBjb25maWd1
44
- cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgY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L2FwaS5zYWdlbWFrZXIudXMt
95
- Z292LXdlc3QtMS5hbWF6b25hd3MuY29tIiwicHJvcGVydGllcyI6e30sImhl
96
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In0seyJjb25kaXRpb25zIjpb
97
- eyJmbiI6InN0cmluZ0VxdWFscyIsImFyZ3YiOlsiYXdzLXVzLWdvdiIseyJm
98
- biI6ImdldEF0dHIiLCJhcmd2IjpbeyJyZWYiOiJQYXJ0aXRpb25SZXN1bHQi
99
- fSwibmFtZSJdfV19XSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9hcGkt
100
- Zmlwcy5zYWdlbWFrZXIue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNT
101
- dWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6
102
- ImVuZHBvaW50In0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJs
103
- IjoiaHR0cHM6Ly9hcGkuc2FnZW1ha2VyLWZpcHMue1JlZ2lvbn0ue1BhcnRp
104
- dGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRl
105
- cnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19LHsiY29uZGl0aW9ucyI6
106
- W10sImVycm9yIjoiRklQUyBpcyBlbmFibGVkIGJ1dCB0aGlzIHBhcnRpdGlv
107
- biBkb2VzIG5vdCBzdXBwb3J0IEZJUFMiLCJ0eXBlIjoiZXJyb3IifV19LHsi
108
- Y29uZGl0aW9ucyI6W3siZm4iOiJib29sZWFuRXF1YWxzIiwiYXJndiI6W3si
109
- cmVmIjoiVXNlRHVhbFN0YWNrIn0sdHJ1ZV19XSwidHlwZSI6InRyZWUiLCJy
110
- dWxlcyI6W3siY29uZGl0aW9ucyI6W3siZm4iOiJib29sZWFuRXF1YWxzIiwi
111
- YXJndiI6W3RydWUseyJmbiI6ImdldEF0dHIiLCJhcmd2IjpbeyJyZWYiOiJQ
112
- YXJ0aXRpb25SZXN1bHQifSwic3VwcG9ydHNEdWFsU3RhY2siXX1dfV0sInR5
113
- cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2lu
114
- dCI6eyJ1cmwiOiJodHRwczovL2FwaS5zYWdlbWFrZXIue1JlZ2lvbn0ue1Bh
115
- cnRpdGlvblJlc3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGll
116
- cyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfSx7ImNv
117
- bmRpdGlvbnMiOltdLCJlcnJvciI6IkR1YWxTdGFjayBpcyBlbmFibGVkIGJ1
118
- dCB0aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIs
119
- InR5cGUiOiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQi
120
- OnsidXJsIjoiaHR0cHM6Ly9hcGkuc2FnZW1ha2VyLntSZWdpb259LntQYXJ0
121
- aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFk
122
- ZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
123
-
124
- JSON
125
59
  end
126
60
  end
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-sagemaker/customizations'
53
53
  # @!group service
54
54
  module Aws::SageMaker
55
55
 
56
- GEM_VERSION = '1.159.0'
56
+ GEM_VERSION = '1.160.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sagemaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.159.0
4
+ version: 1.160.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-12-21 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