aws-sdk-sagemakergeospatial 1.0.0 → 1.1.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: ee43913ba6742fb46d5e3b47c150839248909ace8aacc8718423ad64ed00f3d6
4
- data.tar.gz: 9ea8299b19b9542841484acbbf7b9bf524a4032db227761b52af7737ad926f7a
3
+ metadata.gz: db03c6cc3920a06052ab87f025fa7272dae0700ad956708c114c078156176fdf
4
+ data.tar.gz: 62e6c258a8dd00d8a9e81acc3535e5fb805bbac51874bad1bc6e47fe94230adf
5
5
  SHA512:
6
- metadata.gz: bce981ff4b3558630ae582365dc095aa28d5925012521244514838b8c31028ca721c587c3b6682b7275db011c1d41a0604683f155fa4f31d183ec2e8b1fbaec0
7
- data.tar.gz: 550d16e4b5e95756c1d3da1f0d9c25da3c8df728f43ce8ae39e0937631b88f8b17f070dc9344f056b4da42eda553561073bf14537fc94ed6e0a54256b944c965
6
+ metadata.gz: 160627f8c32b8663861788e7108b4a7e00e0871167892501695bd4bf36bb9bb123dc8a4c9fdd855bc82947cbe4eda2223c67579f8c6749ae70574483afb66dac
7
+ data.tar.gz: 459cb16a71357f119e2a6e867b00164e24bf0862ae8eda2a0b1c06034f5b312864514f02e6793ab483866410926f5ec8b03a69d8cfc7c46baafa2e9c5fcda430
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.1.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.0.0 (2022-11-30)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -1632,7 +1632,7 @@ module Aws::SageMakerGeospatial
1632
1632
  params: params,
1633
1633
  config: config)
1634
1634
  context[:gem_name] = 'aws-sdk-sagemakergeospatial'
1635
- context[:gem_version] = '1.0.0'
1635
+ context[:gem_version] = '1.1.0'
1636
1636
  Seahorse::Client::Request.new(handlers, context)
1637
1637
  end
1638
1638
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::SageMakerGeospatial
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://sagemaker-geospatial-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://sagemaker-geospatial-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://sagemaker-geospatial.#{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://sagemaker-geospatial.#{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
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7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yI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50
102
- In1dfSx7ImNvbmRpdGlvbnMiOltdLCJlcnJvciI6IkR1YWxTdGFjayBpcyBl
103
- bmFibGVkIGJ1dCB0aGlzIHBhcnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1
104
- YWxTdGFjayIsInR5cGUiOiJlcnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwi
105
- ZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9zYWdlbWFrZXItZ2Vvc3BhdGlh
106
- bC57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9w
107
- ZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19
108
- XX0=
109
-
110
- JSON
111
50
  end
112
51
  end
@@ -23,6 +23,10 @@ module Aws::SageMakerGeospatial
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
+ # @note AreaOfInterest is a union - when making an API calls you must set exactly one of the members.
27
+ #
28
+ # @note AreaOfInterest is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AreaOfInterest corresponding to the set member.
29
+ #
26
30
  # @!attribute [rw] area_of_interest_geometry
27
31
  # @return [Types::AreaOfInterestGeometry]
28
32
  #
@@ -39,6 +43,10 @@ module Aws::SageMakerGeospatial
39
43
  class Unknown < AreaOfInterest; end
40
44
  end
41
45
 
46
+ # @note AreaOfInterestGeometry is a union - when making an API calls you must set exactly one of the members.
47
+ #
48
+ # @note AreaOfInterestGeometry is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AreaOfInterestGeometry corresponding to the set member.
49
+ #
42
50
  # @!attribute [rw] multi_polygon_geometry
43
51
  # @return [Types::MultiPolygonGeometryInput]
44
52
  #
@@ -86,6 +94,8 @@ module Aws::SageMakerGeospatial
86
94
  include Aws::Structure
87
95
  end
88
96
 
97
+ # @api private
98
+ #
89
99
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-geospatial-2020-05-27/CloudMaskingConfigInput AWS API Documentation
90
100
  #
91
101
  class CloudMaskingConfigInput < Aws::EmptyStructure; end
@@ -203,6 +213,10 @@ module Aws::SageMakerGeospatial
203
213
  include Aws::Structure
204
214
  end
205
215
 
216
+ # @note EojDataSourceConfigInput is a union - when making an API calls you must set exactly one of the members.
217
+ #
218
+ # @note EojDataSourceConfigInput is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of EojDataSourceConfigInput corresponding to the set member.
219
+ #
206
220
  # @!attribute [rw] s3_data
207
221
  # @return [Types::S3DataInput]
208
222
  #
@@ -892,6 +906,10 @@ module Aws::SageMakerGeospatial
892
906
 
893
907
  # The input structure for the JobConfig in an EarthObservationJob.
894
908
  #
909
+ # @note JobConfigInput is a union - when making an API calls you must set exactly one of the members.
910
+ #
911
+ # @note JobConfigInput is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of JobConfigInput corresponding to the set member.
912
+ #
895
913
  # @!attribute [rw] band_math_config
896
914
  # @return [Types::BandMathConfigInput]
897
915
  #
@@ -962,6 +980,8 @@ module Aws::SageMakerGeospatial
962
980
  class Unknown < JobConfigInput; end
963
981
  end
964
982
 
983
+ # @api private
984
+ #
965
985
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-geospatial-2020-05-27/LandCoverSegmentationConfigInput AWS API Documentation
966
986
  #
967
987
  class LandCoverSegmentationConfigInput < Aws::EmptyStructure; end
@@ -1412,6 +1432,10 @@ module Aws::SageMakerGeospatial
1412
1432
  include Aws::Structure
1413
1433
  end
1414
1434
 
1435
+ # @note Property is a union - when making an API calls you must set exactly one of the members.
1436
+ #
1437
+ # @note Property is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Property corresponding to the set member.
1438
+ #
1415
1439
  # @!attribute [rw] eo_cloud_cover
1416
1440
  # @return [Types::EoCloudCoverInput]
1417
1441
  #
@@ -2137,6 +2161,10 @@ module Aws::SageMakerGeospatial
2137
2161
  # It contains configs such as ReverseGeocodingConfig and
2138
2162
  # MapMatchingConfig.
2139
2163
  #
2164
+ # @note VectorEnrichmentJobConfig is a union - when making an API calls you must set exactly one of the members.
2165
+ #
2166
+ # @note VectorEnrichmentJobConfig is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of VectorEnrichmentJobConfig corresponding to the set member.
2167
+ #
2140
2168
  # @!attribute [rw] map_matching_config
2141
2169
  # @return [Types::MapMatchingConfig]
2142
2170
  #
@@ -2158,6 +2186,10 @@ module Aws::SageMakerGeospatial
2158
2186
  class Unknown < VectorEnrichmentJobConfig; end
2159
2187
  end
2160
2188
 
2189
+ # @note VectorEnrichmentJobDataSourceConfigInput is a union - when making an API calls you must set exactly one of the members.
2190
+ #
2191
+ # @note VectorEnrichmentJobDataSourceConfigInput is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of VectorEnrichmentJobDataSourceConfigInput corresponding to the set member.
2192
+ #
2161
2193
  # @!attribute [rw] s3_data
2162
2194
  # @return [Types::VectorEnrichmentJobS3Data]
2163
2195
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-sagemakergeospatial/customizations'
52
52
  # @!group service
53
53
  module Aws::SageMakerGeospatial
54
54
 
55
- GEM_VERSION = '1.0.0'
55
+ GEM_VERSION = '1.1.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sagemakergeospatial
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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-11-30 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