aws-sdk-sagemakermetrics 1.0.0 → 1.2.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: 25e954f53f7ff74a89dc37107013cb3cc2816254a16a9606e47c61ff555c6c23
4
- data.tar.gz: d3f9f55bef56c5b498232066179e6ec0d13797c50edceff07d448fc8babf4dca
3
+ metadata.gz: 258999513df8161fc22539d8177ad377f83a1836b332f24a4b0c4ec29baaeae3
4
+ data.tar.gz: dee584f5c5d56e44766a2381ba27a348cbc0bf9c011e25e8742d04b5e3d7df9f
5
5
  SHA512:
6
- metadata.gz: 7df3fffa4dc9763953bb2a0cbaffaaceb325625f5bc45b6d0b46829e6c2814fddc9dad1e883b43c0271dcb12332a50adbe8bf23a6de2a6dc2c1789152eb1ae6a
7
- data.tar.gz: e7d07e632c52bb6fbe8825e88eb5ae270b3c4255acc0b9c840ee43b4a09325296f74a8d215a4763985627549906592ed30e7acfa02d81b6263de226bcd363623
6
+ metadata.gz: aa3dc14e25e42f36092dbdc98ad5ca96287323b94dafd87af2196d29ae97c470e8cc8178b89667457d4458da97b968b08dabbd917b83895853051c006d3a9524
7
+ data.tar.gz: c734520319eed893c3587b831d0ecd8f7333852a293e396f601214fede0de3a3b091cec8ce95722535954f533b84ef1bf83c1942aafa5d2b515278437c73ac75
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.2.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
+
11
+ 1.1.0 (2022-12-14)
12
+ ------------------
13
+
14
+ * Feature - Update SageMaker Metrics documentation.
15
+
4
16
  1.0.0 (2022-12-12)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.2.0
@@ -368,11 +368,12 @@ module Aws::SageMakerMetrics
368
368
 
369
369
  # @!group API Operations
370
370
 
371
- # Used to ingest training metrics into SageMaker which can be visualized
372
- # in SageMaker Studio and retrieved with the `GetMetrics` API.
371
+ # Used to ingest training metrics into SageMaker. These metrics can be
372
+ # visualized in SageMaker Studio and retrieved with the `GetMetrics`
373
+ # API.
373
374
  #
374
375
  # @option params [required, String] :trial_component_name
375
- # The name of Trial Component to associate the metrics with.
376
+ # The name of the Trial Component to associate with the metrics.
376
377
  #
377
378
  # @option params [required, Array<Types::RawMetricData>] :metric_data
378
379
  # A list of raw metric values to put.
@@ -423,7 +424,7 @@ module Aws::SageMakerMetrics
423
424
  params: params,
424
425
  config: config)
425
426
  context[:gem_name] = 'aws-sdk-sagemakermetrics'
426
- context[:gem_version] = '1.0.0'
427
+ context[:gem_version] = '1.2.0'
427
428
  Seahorse::Client::Request.new(handlers, context)
428
429
  end
429
430
 
@@ -9,102 +9,43 @@
9
9
 
10
10
  module Aws::SageMakerMetrics
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://metrics.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://metrics.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://metrics.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://metrics.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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X1dLCJ0eXBlIjoidHJlZSIsInJ1bGVzIjpb
97
- eyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9t
98
- ZXRyaWNzLnNhZ2VtYWtlci57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2R1
99
- YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6
100
- e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsiY29uZGl0aW9ucyI6W10sImVy
101
- cm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0IHRoaXMgcGFydGl0aW9u
102
- IGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlwZSI6ImVycm9yIn1d
103
- fSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczov
104
- L21ldHJpY3Muc2FnZW1ha2VyLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQj
105
- ZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5
106
- cGUiOiJlbmRwb2ludCJ9XX1dfQ==
107
-
108
- JSON
109
50
  end
110
51
  end
@@ -16,14 +16,14 @@ module Aws::SageMakerMetrics
16
16
  # The error code of an error that occured when attempting to put
17
17
  # metrics.
18
18
  #
19
- # * `METRIC_LIMIT_EXCEEDED` - The max amount of metrics per resource
20
- # has been exceeded.
19
+ # * `METRIC_LIMIT_EXCEEDED`\: The maximum amount of metrics per
20
+ # resource is exceeded.
21
21
  #
22
- # * `INTERNAL_ERROR` - An internal error occured.
22
+ # * `INTERNAL_ERROR`\: An internal error occured.
23
23
  #
24
- # * `VALIDATION_ERROR` - The metric data failed validation.
24
+ # * `VALIDATION_ERROR`\: The metric data failed validation.
25
25
  #
26
- # * `CONFLICT_ERROR` - Multiple requests attempted to modify the same
26
+ # * `CONFLICT_ERROR`\: Multiple requests attempted to modify the same
27
27
  # data simultaneously.
28
28
  # @return [String]
29
29
  #
@@ -41,7 +41,7 @@ module Aws::SageMakerMetrics
41
41
  end
42
42
 
43
43
  # @!attribute [rw] trial_component_name
44
- # The name of Trial Component to associate the metrics with.
44
+ # The name of the Trial Component to associate with the metrics.
45
45
  # @return [String]
46
46
  #
47
47
  # @!attribute [rw] metric_data
@@ -58,8 +58,7 @@ module Aws::SageMakerMetrics
58
58
  end
59
59
 
60
60
  # @!attribute [rw] errors
61
- # Any errors that occur when inserting metric data will appear in
62
- # this.
61
+ # Lists any errors that occur when inserting metric data.
63
62
  # @return [Array<Types::BatchPutMetricsError>]
64
63
  #
65
64
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-metrics-2022-09-30/BatchPutMetricsResponse AWS API Documentation
@@ -77,11 +76,11 @@ module Aws::SageMakerMetrics
77
76
  # @return [String]
78
77
  #
79
78
  # @!attribute [rw] timestamp
80
- # The time when the metric was recorded.
79
+ # The time that the metric was recorded.
81
80
  # @return [Time]
82
81
  #
83
82
  # @!attribute [rw] step
84
- # Metric step (aka Epoch).
83
+ # The metric step (epoch).
85
84
  # @return [Integer]
86
85
  #
87
86
  # @!attribute [rw] value
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-sagemakermetrics/customizations'
52
52
  # @!group service
53
53
  module Aws::SageMakerMetrics
54
54
 
55
- GEM_VERSION = '1.0.0'
55
+ GEM_VERSION = '1.2.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sagemakermetrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.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-12 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