aws-sdk-ebs 1.27.0 → 1.28.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: ef44f72d6d40d670fe66c328190d8f7e9167f96d65846c5be0a951d815c63b33
4
- data.tar.gz: ce80d750593b4c4415ed00826a447cb4fcd77d0b2b36ec7468df64a406683ead
3
+ metadata.gz: be62fd1fe4d5985b0f239bf5f1326f62ae92aad1d633fd64d1435f90e761ec4c
4
+ data.tar.gz: adb12425b3d0214aba7a2eb5603a93eff7443d1e116456e3e8cec99d18f35891
5
5
  SHA512:
6
- metadata.gz: 8a286d5982b24588169e94b1fc4c4f2248127a9831fd09cdddb726c8125bbeef4934b61728496897350dce3e9bbda13cd653a6b91d1e2cd9510779b25914f883
7
- data.tar.gz: 8dfc9698c7a43cea70d46de838b2a1efba607c1e3359c0f64b4612959e7d0ba0eea8b9bcf940b89ada85f7cdf179c22ff291623353b2e97f584dcbd839bfafaa
6
+ metadata.gz: af043b872a807528b0ba468d264edcaf83871fe30651224d5d0619721d0fdc8ee5cf6c379b40fdc57f816083f346150f66574c7b439331a6efdd8131174a4d36
7
+ data.tar.gz: aaa73322659767f01adc4e4ad1702cd4a0b66763a1835aa7f237eb6b9224096d0d433675494c6780ef36e4566cdce54f9960419d101655247c1b6d23cf237d90
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.28.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.27.0 (2022-10-25)
5
12
  ------------------
6
13
 
@@ -145,4 +152,4 @@ Unreleased Changes
145
152
  1.0.0 (2019-12-04)
146
153
  ------------------
147
154
 
148
- * Feature - Initial release of `aws-sdk-ebs`.
155
+ * Feature - Initial release of `aws-sdk-ebs`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.27.0
1
+ 1.28.0
@@ -909,7 +909,7 @@ module Aws::EBS
909
909
  params: params,
910
910
  config: config)
911
911
  context[:gem_name] = 'aws-sdk-ebs'
912
- context[:gem_version] = '1.27.0'
912
+ context[:gem_version] = '1.28.0'
913
913
  Seahorse::Client::Request.new(handlers, context)
914
914
  end
915
915
 
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::EBS
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://ebs-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://ebs-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://ebs.#{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://ebs.#{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
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGF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- ZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJj
102
- b25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBi
103
- dXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2si
104
- LCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50
105
- Ijp7InVybCI6Imh0dHBzOi8vZWJzLntSZWdpb259LntQYXJ0aXRpb25SZXN1
106
- bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0s
107
- InR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
108
-
109
- JSON
110
50
  end
111
51
  end
@@ -76,17 +76,6 @@ module Aws::EBS
76
76
  include Aws::Structure
77
77
  end
78
78
 
79
- # @note When making an API call, you may pass CompleteSnapshotRequest
80
- # data as a hash:
81
- #
82
- # {
83
- # snapshot_id: "SnapshotId", # required
84
- # changed_blocks_count: 1, # required
85
- # checksum: "Checksum",
86
- # checksum_algorithm: "SHA256", # accepts SHA256
87
- # checksum_aggregation_method: "LINEAR", # accepts LINEAR
88
- # }
89
- #
90
79
  # @!attribute [rw] snapshot_id
91
80
  # The ID of the snapshot.
92
81
  # @return [String]
@@ -173,15 +162,6 @@ module Aws::EBS
173
162
  include Aws::Structure
174
163
  end
175
164
 
176
- # @note When making an API call, you may pass GetSnapshotBlockRequest
177
- # data as a hash:
178
- #
179
- # {
180
- # snapshot_id: "SnapshotId", # required
181
- # block_index: 1, # required
182
- # block_token: "BlockToken", # required
183
- # }
184
- #
185
165
  # @!attribute [rw] snapshot_id
186
166
  # The ID of the snapshot containing the block from which to get data.
187
167
  #
@@ -260,17 +240,6 @@ module Aws::EBS
260
240
  include Aws::Structure
261
241
  end
262
242
 
263
- # @note When making an API call, you may pass ListChangedBlocksRequest
264
- # data as a hash:
265
- #
266
- # {
267
- # first_snapshot_id: "SnapshotId",
268
- # second_snapshot_id: "SnapshotId", # required
269
- # next_token: "PageToken",
270
- # max_results: 1,
271
- # starting_block_index: 1,
272
- # }
273
- #
274
243
  # @!attribute [rw] first_snapshot_id
275
244
  # The ID of the first snapshot to use for the comparison.
276
245
  #
@@ -359,16 +328,6 @@ module Aws::EBS
359
328
  include Aws::Structure
360
329
  end
361
330
 
362
- # @note When making an API call, you may pass ListSnapshotBlocksRequest
363
- # data as a hash:
364
- #
365
- # {
366
- # snapshot_id: "SnapshotId", # required
367
- # next_token: "PageToken",
368
- # max_results: 1,
369
- # starting_block_index: 1,
370
- # }
371
- #
372
331
  # @!attribute [rw] snapshot_id
373
332
  # The ID of the snapshot from which to get block indexes and block
374
333
  # tokens.
@@ -446,19 +405,6 @@ module Aws::EBS
446
405
  include Aws::Structure
447
406
  end
448
407
 
449
- # @note When making an API call, you may pass PutSnapshotBlockRequest
450
- # data as a hash:
451
- #
452
- # {
453
- # snapshot_id: "SnapshotId", # required
454
- # block_index: 1, # required
455
- # block_data: "data", # required
456
- # data_length: 1, # required
457
- # progress: 1,
458
- # checksum: "Checksum", # required
459
- # checksum_algorithm: "SHA256", # required, accepts SHA256
460
- # }
461
- #
462
408
  # @!attribute [rw] snapshot_id
463
409
  # The ID of the snapshot.
464
410
  #
@@ -607,25 +553,6 @@ module Aws::EBS
607
553
  include Aws::Structure
608
554
  end
609
555
 
610
- # @note When making an API call, you may pass StartSnapshotRequest
611
- # data as a hash:
612
- #
613
- # {
614
- # volume_size: 1, # required
615
- # parent_snapshot_id: "SnapshotId",
616
- # tags: [
617
- # {
618
- # key: "TagKey",
619
- # value: "TagValue",
620
- # },
621
- # ],
622
- # description: "Description",
623
- # client_token: "IdempotencyToken",
624
- # encrypted: false,
625
- # kms_key_arn: "KmsKeyArn",
626
- # timeout: 1,
627
- # }
628
- #
629
556
  # @!attribute [rw] volume_size
630
557
  # The size of the volume, in GiB. The maximum size is `65536` GiB (64
631
558
  # TiB).
@@ -829,14 +756,6 @@ module Aws::EBS
829
756
 
830
757
  # Describes a tag.
831
758
  #
832
- # @note When making an API call, you may pass Tag
833
- # data as a hash:
834
- #
835
- # {
836
- # key: "TagKey",
837
- # value: "TagValue",
838
- # }
839
- #
840
759
  # @!attribute [rw] key
841
760
  # The key of the tag.
842
761
  # @return [String]
data/lib/aws-sdk-ebs.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-ebs/customizations'
52
52
  # @!group service
53
53
  module Aws::EBS
54
54
 
55
- GEM_VERSION = '1.27.0'
55
+ GEM_VERSION = '1.28.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ebs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.28.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