aws-sdk-applicationcostprofiler 1.10.0 → 1.11.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: be707bb9158a65cbdbf231b2aab23f688aa42690e2a71e7499b0620868298976
4
- data.tar.gz: 322bf0a658f336924a88757d856bb49d118e2524dd2d1042a994b8cede2352ef
3
+ metadata.gz: d7715b6d05c2ecfe09ab9431461e41edb3524d7d750e526144b375def3c88a60
4
+ data.tar.gz: c51ea1f1b3b43a7eaee8c9296fd8ef4ac4ddc7b492aed17651e290574be40679
5
5
  SHA512:
6
- metadata.gz: d4982cb9627e601f5240637cc0906b89eb65cc708bbc7fff8816ac503bc8be30c6ebb7b46a66184c96382448b38fad12be05adb0efc08fdc91c401edff355f76
7
- data.tar.gz: baa4e7a4240949011ba7e3712e443f467ba87ec30a2d960f99c7e54845cc994dcb6bb7080f469ae17a52d48e66e97a748fff7492d487b842a403028d22b95542
6
+ metadata.gz: ee8d0998963ff2f5785600d9dc0ee62bde1108815ce41c40b396fb27df03f236bf7c2a0fca2315b8abac7142b18939ea018bf4af197f2f840ac88c47efb87623
7
+ data.tar.gz: 7a8b8feb08df0d6fe727e077e992e42887c3eae66867e34b911e6da424564b716727515c452e07df11485d3807f4c3973410c4e996944850b4ee5643f67cf82a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.11.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.10.0 (2022-10-25)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.0
1
+ 1.11.0
@@ -635,7 +635,7 @@ module Aws::ApplicationCostProfiler
635
635
  params: params,
636
636
  config: config)
637
637
  context[:gem_name] = 'aws-sdk-applicationcostprofiler'
638
- context[:gem_version] = '1.10.0'
638
+ context[:gem_version] = '1.11.0'
639
639
  Seahorse::Client::Request.new(handlers, context)
640
640
  end
641
641
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::ApplicationCostProfiler
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://application-cost-profiler-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://application-cost-profiler-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://application-cost-profiler.#{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://application-cost-profiler.#{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
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVm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0seyJjb25kaXRpb25zIjpbXSwiZXJyb3Ii
103
- OiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9l
104
- cyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsi
105
- Y29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vYXBw
106
- bGljYXRpb24tY29zdC1wcm9maWxlci57UmVnaW9ufS57UGFydGl0aW9uUmVz
107
- dWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319
108
- LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
109
-
110
- JSON
111
50
  end
112
51
  end
@@ -23,13 +23,6 @@ module Aws::ApplicationCostProfiler
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
- # @note When making an API call, you may pass DeleteReportDefinitionRequest
27
- # data as a hash:
28
- #
29
- # {
30
- # report_id: "ReportId", # required
31
- # }
32
- #
33
26
  # @!attribute [rw] report_id
34
27
  # Required. ID of the report to delete.
35
28
  # @return [String]
@@ -54,13 +47,6 @@ module Aws::ApplicationCostProfiler
54
47
  include Aws::Structure
55
48
  end
56
49
 
57
- # @note When making an API call, you may pass GetReportDefinitionRequest
58
- # data as a hash:
59
- #
60
- # {
61
- # report_id: "ReportId", # required
62
- # }
63
- #
64
50
  # @!attribute [rw] report_id
65
51
  # ID of the report to retrieve.
66
52
  # @return [String]
@@ -117,17 +103,6 @@ module Aws::ApplicationCostProfiler
117
103
  include Aws::Structure
118
104
  end
119
105
 
120
- # @note When making an API call, you may pass ImportApplicationUsageRequest
121
- # data as a hash:
122
- #
123
- # {
124
- # source_s3_location: { # required
125
- # bucket: "S3Bucket", # required
126
- # key: "S3Key", # required
127
- # region: "ap-east-1", # accepts ap-east-1, me-south-1, eu-south-1, af-south-1
128
- # },
129
- # }
130
- #
131
106
  # @!attribute [rw] source_s3_location
132
107
  # Amazon S3 location to import application usage data from.
133
108
  # @return [Types::SourceS3Location]
@@ -165,14 +140,6 @@ module Aws::ApplicationCostProfiler
165
140
  include Aws::Structure
166
141
  end
167
142
 
168
- # @note When making an API call, you may pass ListReportDefinitionsRequest
169
- # data as a hash:
170
- #
171
- # {
172
- # next_token: "Token",
173
- # max_results: 1,
174
- # }
175
- #
176
143
  # @!attribute [rw] next_token
177
144
  # The token value from a previous call to access the next page of
178
145
  # results.
@@ -209,20 +176,6 @@ module Aws::ApplicationCostProfiler
209
176
  include Aws::Structure
210
177
  end
211
178
 
212
- # @note When making an API call, you may pass PutReportDefinitionRequest
213
- # data as a hash:
214
- #
215
- # {
216
- # report_id: "ReportId", # required
217
- # report_description: "ReportDescription", # required
218
- # report_frequency: "MONTHLY", # required, accepts MONTHLY, DAILY, ALL
219
- # format: "CSV", # required, accepts CSV, PARQUET
220
- # destination_s3_location: { # required
221
- # bucket: "S3Bucket", # required
222
- # prefix: "S3Prefix", # required
223
- # },
224
- # }
225
- #
226
179
  # @!attribute [rw] report_id
227
180
  # Required. ID of the report. You can choose any valid string matching
228
181
  # the pattern for the ID.
@@ -319,14 +272,6 @@ module Aws::ApplicationCostProfiler
319
272
  # where AWS Application Cost Profiler reports are generated and then
320
273
  # written to.
321
274
  #
322
- # @note When making an API call, you may pass S3Location
323
- # data as a hash:
324
- #
325
- # {
326
- # bucket: "S3Bucket", # required
327
- # prefix: "S3Prefix", # required
328
- # }
329
- #
330
275
  # @!attribute [rw] bucket
331
276
  # Name of the S3 bucket.
332
277
  # @return [String]
@@ -360,15 +305,6 @@ module Aws::ApplicationCostProfiler
360
305
  # Represents the Amazon Simple Storage Service (Amazon S3) location
361
306
  # where usage data is read from.
362
307
  #
363
- # @note When making an API call, you may pass SourceS3Location
364
- # data as a hash:
365
- #
366
- # {
367
- # bucket: "S3Bucket", # required
368
- # key: "S3Key", # required
369
- # region: "ap-east-1", # accepts ap-east-1, me-south-1, eu-south-1, af-south-1
370
- # }
371
- #
372
308
  # @!attribute [rw] bucket
373
309
  # Name of the bucket.
374
310
  # @return [String]
@@ -412,20 +348,6 @@ module Aws::ApplicationCostProfiler
412
348
  include Aws::Structure
413
349
  end
414
350
 
415
- # @note When making an API call, you may pass UpdateReportDefinitionRequest
416
- # data as a hash:
417
- #
418
- # {
419
- # report_id: "ReportId", # required
420
- # report_description: "ReportDescription", # required
421
- # report_frequency: "MONTHLY", # required, accepts MONTHLY, DAILY, ALL
422
- # format: "CSV", # required, accepts CSV, PARQUET
423
- # destination_s3_location: { # required
424
- # bucket: "S3Bucket", # required
425
- # prefix: "S3Prefix", # required
426
- # },
427
- # }
428
- #
429
351
  # @!attribute [rw] report_id
430
352
  # Required. ID of the report to update.
431
353
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-applicationcostprofiler/customizations'
52
52
  # @!group service
53
53
  module Aws::ApplicationCostProfiler
54
54
 
55
- GEM_VERSION = '1.10.0'
55
+ GEM_VERSION = '1.11.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-applicationcostprofiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.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