aws-sdk-cloudfrontkeyvaluestore 1.53.0 → 1.54.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: e88cfa8cca98649f3187af7c0fdee4d130a42ab54784c3fc7a8960220539dba1
4
- data.tar.gz: a2ff355c5fd1e8a9c6318a172786c671a433a172ecbcf695c247bbac22848619
3
+ metadata.gz: b3090032c6aa9b18eaaeb14b9ba8222e9fa648c9d4b38da549deac0fd0b6f63f
4
+ data.tar.gz: 3eeced366817510847c9060f7133511501dd08765c4f6d14ac49e9674a780edc
5
5
  SHA512:
6
- metadata.gz: 45b8b47a5ef644e89a0bdf3e37f2b8d4d8d45104ca45ece10d8ebe1b608f7bef0d762459cc84e217447dba942c5f7beb3cdecfa3c6258a6da700ec925c923957
7
- data.tar.gz: 8c70ca414c8c697cd18a11026987b0965534d05e433e8989012795e563972a8d75dc35883bfb8a48e03812e84cf58ba9feeef44b972f77fb3be256a23738d4c8
6
+ metadata.gz: 81de9bc68e9023fd789e7a3362756a0a2cad2dc99f4673be786fe8d0304b81d994c774fee6ea1e9e251b5dbf482f5f754267f65e848383249e72b08cb1c31466
7
+ data.tar.gz: ff10c217045c6f8fba075a8c8f358edab64deb6e364d3e7094ed832f3c5cf1a6fe0b7989098e194f3871eda30a3e156d2f4967f47df7037a8cf0b2c0e6121654
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.54.0 (2026-11-23)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for KVSHQ API in the AWS European Sovereign Cloud. Requests for key value stores in the aws-eusc partition are now routed to account-based endpoints under cloudfront-kvs.global.api.amazonwebservices.eu.
8
+
4
9
  1.53.0 (2026-11-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.53.0
1
+ 1.54.0
@@ -482,17 +482,18 @@ module Aws::CloudFrontKeyValueStore
482
482
 
483
483
  # @!group API Operations
484
484
 
485
- # Deletes the key value pair specified by the key.
485
+ # Deletes the key-value pair specified by the key.
486
486
  #
487
487
  # @option params [required, String] :kvs_arn
488
- # The Amazon Resource Name (ARN) of the Key Value Store.
488
+ # The Amazon Resource Name (ARN) of the key value store.
489
489
  #
490
490
  # @option params [required, String] :key
491
491
  # The key to delete.
492
492
  #
493
493
  # @option params [required, String] :if_match
494
- # The current version (ETag) of the Key Value Store that you are
495
- # deleting keys from, which you can get using DescribeKeyValueStore.
494
+ # The current version (`ETag`) of the key value store that you are
495
+ # deleting keys from, which you can get by using the
496
+ # `DescribeKeyValueStore` API operation.
496
497
  #
497
498
  # @return [Types::DeleteKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
498
499
  #
@@ -500,6 +501,22 @@ module Aws::CloudFrontKeyValueStore
500
501
  # * {Types::DeleteKeyResponse#total_size_in_bytes #total_size_in_bytes} => Integer
501
502
  # * {Types::DeleteKeyResponse#etag #etag} => String
502
503
  #
504
+ #
505
+ # @example Example: Delete 'key1' from the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
506
+ #
507
+ # resp = client.delete_key({
508
+ # if_match: "KV0AB12C3DEF456",
509
+ # key: "key1",
510
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
511
+ # })
512
+ #
513
+ # resp.to_h outputs the following:
514
+ # {
515
+ # etag: "KV7XY89Z0ABC012",
516
+ # item_count: 3,
517
+ # total_size_in_bytes: 5,
518
+ # }
519
+ #
503
520
  # @example Request syntax with placeholder values
504
521
  #
505
522
  # resp = client.delete_key({
@@ -523,10 +540,10 @@ module Aws::CloudFrontKeyValueStore
523
540
  req.send_request(options)
524
541
  end
525
542
 
526
- # Returns metadata information about Key Value Store.
543
+ # Returns metadata information about the key value store.
527
544
  #
528
545
  # @option params [required, String] :kvs_arn
529
- # The Amazon Resource Name (ARN) of the Key Value Store.
546
+ # The Amazon Resource Name (ARN) of the key value store.
530
547
  #
531
548
  # @return [Types::DescribeKeyValueStoreResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
532
549
  #
@@ -539,6 +556,42 @@ module Aws::CloudFrontKeyValueStore
539
556
  # * {Types::DescribeKeyValueStoreResponse#status #status} => String
540
557
  # * {Types::DescribeKeyValueStoreResponse#failure_reason #failure_reason} => String
541
558
  #
559
+ #
560
+ # @example Example: Describe the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
561
+ #
562
+ # resp = client.describe_key_value_store({
563
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
564
+ # })
565
+ #
566
+ # resp.to_h outputs the following:
567
+ # {
568
+ # created: Time.parse("2023-11-01T22:18:46Z"),
569
+ # etag: "KV7XY89Z0ABC012",
570
+ # failure_reason: "Datasource size exceeds the allowed limit",
571
+ # item_count: 0,
572
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
573
+ # last_modified: Time.parse("2023-11-01T14:28:17Z"),
574
+ # status: "IMPORT_FAILURE",
575
+ # total_size_in_bytes: 0,
576
+ # }
577
+ #
578
+ # @example Example: Describe the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-1234a9d35678'
579
+ #
580
+ # resp = client.describe_key_value_store({
581
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-1234a9d35678",
582
+ # })
583
+ #
584
+ # resp.to_h outputs the following:
585
+ # {
586
+ # created: Time.parse("2023-11-01T22:18:46Z"),
587
+ # etag: "KV7XY89Z0ABC012",
588
+ # item_count: 4,
589
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-1234a9d35678",
590
+ # last_modified: Time.parse("2023-11-01T14:28:17Z"),
591
+ # status: "READY",
592
+ # total_size_in_bytes: 15,
593
+ # }
594
+ #
542
595
  # @example Request syntax with placeholder values
543
596
  #
544
597
  # resp = client.describe_key_value_store({
@@ -565,10 +618,10 @@ module Aws::CloudFrontKeyValueStore
565
618
  req.send_request(options)
566
619
  end
567
620
 
568
- # Returns a key value pair.
621
+ # Returns a key-value pair.
569
622
  #
570
623
  # @option params [required, String] :kvs_arn
571
- # The Amazon Resource Name (ARN) of the Key Value Store.
624
+ # The Amazon Resource Name (ARN) of the key value store.
572
625
  #
573
626
  # @option params [required, String] :key
574
627
  # The key to get.
@@ -580,6 +633,22 @@ module Aws::CloudFrontKeyValueStore
580
633
  # * {Types::GetKeyResponse#item_count #item_count} => Integer
581
634
  # * {Types::GetKeyResponse#total_size_in_bytes #total_size_in_bytes} => Integer
582
635
  #
636
+ #
637
+ # @example Example: Get 'key1' from the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
638
+ #
639
+ # resp = client.get_key({
640
+ # key: "key1",
641
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
642
+ # })
643
+ #
644
+ # resp.to_h outputs the following:
645
+ # {
646
+ # item_count: 4,
647
+ # key: "key1",
648
+ # total_size_in_bytes: 15,
649
+ # value: "value1",
650
+ # }
651
+ #
583
652
  # @example Request syntax with placeholder values
584
653
  #
585
654
  # resp = client.get_key({
@@ -603,13 +672,13 @@ module Aws::CloudFrontKeyValueStore
603
672
  req.send_request(options)
604
673
  end
605
674
 
606
- # Returns a list of key value pairs.
675
+ # Returns a list of key-value pairs.
607
676
  #
608
677
  # @option params [required, String] :kvs_arn
609
- # The Amazon Resource Name (ARN) of the Key Value Store.
678
+ # The Amazon Resource Name (ARN) of the key value store.
610
679
  #
611
680
  # @option params [String] :next_token
612
- # If nextToken is returned in the response, there are more results
681
+ # If `nextToken` is returned in the response, there are more results
613
682
  # available. Make the next call using the returned token to retrieve the
614
683
  # next page.
615
684
  #
@@ -624,6 +693,60 @@ module Aws::CloudFrontKeyValueStore
624
693
  #
625
694
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
626
695
  #
696
+ #
697
+ # @example Example: List keys in the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
698
+ #
699
+ # resp = client.list_keys({
700
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
701
+ # max_results: 3,
702
+ # })
703
+ #
704
+ # resp.to_h outputs the following:
705
+ # {
706
+ # items: [
707
+ # {
708
+ # key: "key1",
709
+ # value: "value1",
710
+ # },
711
+ # {
712
+ # key: "key2",
713
+ # value: "value2",
714
+ # },
715
+ # {
716
+ # key: "key3",
717
+ # value: "value3",
718
+ # },
719
+ # ],
720
+ # next_token: "hVTTZndkpBZ0VRZ0R1RF",
721
+ # }
722
+ #
723
+ # @example Example: List the next page in the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
724
+ #
725
+ # resp = client.list_keys({
726
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
727
+ # max_results: 3,
728
+ # next_token: "hVTTZndkpBZ0VRZ0R1RF",
729
+ # })
730
+ #
731
+ # resp.to_h outputs the following:
732
+ # {
733
+ # items: [
734
+ # {
735
+ # key: "key4",
736
+ # value: "value4",
737
+ # },
738
+ # {
739
+ # key: "key5",
740
+ # value: "value5",
741
+ # },
742
+ # {
743
+ # key: "key6",
744
+ # value: "value6",
745
+ # },
746
+ # ],
747
+ # next_token: "hQTlB5YmM5UFNoFQvMk",
748
+ # }
749
+ #
627
750
  # @example Request syntax with placeholder values
628
751
  #
629
752
  # resp = client.list_keys({
@@ -648,7 +771,7 @@ module Aws::CloudFrontKeyValueStore
648
771
  req.send_request(options)
649
772
  end
650
773
 
651
- # Creates a new key value pair or replaces the value of an existing key.
774
+ # Creates a new key-value pair or replaces the value of an existing key.
652
775
  #
653
776
  # @option params [required, String] :key
654
777
  # The key to put.
@@ -657,11 +780,12 @@ module Aws::CloudFrontKeyValueStore
657
780
  # The value to put.
658
781
  #
659
782
  # @option params [required, String] :kvs_arn
660
- # The Amazon Resource Name (ARN) of the Key Value Store.
783
+ # The Amazon Resource Name (ARN) of the key value store.
661
784
  #
662
785
  # @option params [required, String] :if_match
663
- # The current version (ETag) of the Key Value Store that you are putting
664
- # keys into, which you can get using DescribeKeyValueStore.
786
+ # The current version (`ETag`) of the key value store that you are
787
+ # putting keys into, which you can get by using the
788
+ # `DescribeKeyValueStore` API operation.
665
789
  #
666
790
  # @return [Types::PutKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
667
791
  #
@@ -669,6 +793,23 @@ module Aws::CloudFrontKeyValueStore
669
793
  # * {Types::PutKeyResponse#total_size_in_bytes #total_size_in_bytes} => Integer
670
794
  # * {Types::PutKeyResponse#etag #etag} => String
671
795
  #
796
+ #
797
+ # @example Example: Put 'key1' with 'value1' into the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
798
+ #
799
+ # resp = client.put_key({
800
+ # if_match: "KV0AB12C3DEF456",
801
+ # key: "key1",
802
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
803
+ # value: "value1",
804
+ # })
805
+ #
806
+ # resp.to_h outputs the following:
807
+ # {
808
+ # etag: "KV7XY89Z0ABC012",
809
+ # item_count: 4,
810
+ # total_size_in_bytes: 15,
811
+ # }
812
+ #
672
813
  # @example Request syntax with placeholder values
673
814
  #
674
815
  # resp = client.put_key({
@@ -693,18 +834,19 @@ module Aws::CloudFrontKeyValueStore
693
834
  req.send_request(options)
694
835
  end
695
836
 
696
- # Puts or Deletes multiple key value pairs in a single, all-or-nothing
837
+ # Puts or deletes multiple key-value pairs in a single, all-or-nothing
697
838
  # operation.
698
839
  #
699
840
  # @option params [required, String] :kvs_arn
700
- # The Amazon Resource Name (ARN) of the Key Value Store.
841
+ # The Amazon Resource Name (ARN) of the key value store.
701
842
  #
702
843
  # @option params [required, String] :if_match
703
- # The current version (ETag) of the Key Value Store that you are
704
- # updating keys of, which you can get using DescribeKeyValueStore.
844
+ # The current version (`ETag`) of the key value store that you are
845
+ # updating keys of, which you can get by using the
846
+ # `DescribeKeyValueStore` API operation.
705
847
  #
706
848
  # @option params [Array<Types::PutKeyRequestListItem>] :puts
707
- # List of key value pairs to put.
849
+ # List of key-value pairs to put.
708
850
  #
709
851
  # @option params [Array<Types::DeleteKeyRequestListItem>] :deletes
710
852
  # List of keys to delete.
@@ -715,6 +857,85 @@ module Aws::CloudFrontKeyValueStore
715
857
  # * {Types::UpdateKeysResponse#total_size_in_bytes #total_size_in_bytes} => Integer
716
858
  # * {Types::UpdateKeysResponse#etag #etag} => String
717
859
  #
860
+ #
861
+ # @example Example: Put 2 keys into the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
862
+ #
863
+ # resp = client.update_keys({
864
+ # if_match: "KV0AB12C3DEF456",
865
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
866
+ # puts: [
867
+ # {
868
+ # key: "key1",
869
+ # value: "value1",
870
+ # },
871
+ # {
872
+ # key: "key2",
873
+ # value: "value2",
874
+ # },
875
+ # ],
876
+ # })
877
+ #
878
+ # resp.to_h outputs the following:
879
+ # {
880
+ # etag: "KV7XY89Z0ABC012",
881
+ # item_count: 4,
882
+ # total_size_in_bytes: 15,
883
+ # }
884
+ #
885
+ # @example Example: Delete 2 keys from the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
886
+ #
887
+ # resp = client.update_keys({
888
+ # deletes: [
889
+ # {
890
+ # key: "key1",
891
+ # },
892
+ # {
893
+ # key: "key2",
894
+ # },
895
+ # ],
896
+ # if_match: "KV0AB12C3DEF456",
897
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
898
+ # })
899
+ #
900
+ # resp.to_h outputs the following:
901
+ # {
902
+ # etag: "KV7XY89Z0ABC012",
903
+ # item_count: 4,
904
+ # total_size_in_bytes: 15,
905
+ # }
906
+ #
907
+ # @example Example: Put 2 keys into and delete 1 key from the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58'
908
+ #
909
+ # resp = client.update_keys({
910
+ # deletes: [
911
+ # {
912
+ # key: "key3",
913
+ # },
914
+ # {
915
+ # key: "key4",
916
+ # },
917
+ # ],
918
+ # if_match: "KV0AB12C3DEF456",
919
+ # kvs_arn: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58",
920
+ # puts: [
921
+ # {
922
+ # key: "key1",
923
+ # value: "value1",
924
+ # },
925
+ # {
926
+ # key: "key2",
927
+ # value: "value2",
928
+ # },
929
+ # ],
930
+ # })
931
+ #
932
+ # resp.to_h outputs the following:
933
+ # {
934
+ # etag: "KV7XY89Z0ABC012",
935
+ # item_count: 4,
936
+ # total_size_in_bytes: 15,
937
+ # }
938
+ #
718
939
  # @example Request syntax with placeholder values
719
940
  #
720
941
  # resp = client.update_keys({
@@ -766,7 +987,7 @@ module Aws::CloudFrontKeyValueStore
766
987
  tracer: tracer
767
988
  )
768
989
  context[:gem_name] = 'aws-sdk-cloudfrontkeyvaluestore'
769
- context[:gem_version] = '1.53.0'
990
+ context[:gem_version] = '1.54.0'
770
991
  Seahorse::Client::Request.new(handlers, context)
771
992
  end
772
993
 
@@ -155,9 +155,10 @@ module Aws::CloudFrontKeyValueStore
155
155
 
156
156
  api.metadata = {
157
157
  "apiVersion" => "2022-07-26",
158
+ "auth" => ["aws.auth#sigv4"],
158
159
  "endpointPrefix" => "cloudfront-keyvaluestore",
159
- "jsonVersion" => "1.1",
160
160
  "protocol" => "rest-json",
161
+ "protocols" => ["rest-json"],
161
162
  "serviceFullName" => "Amazon CloudFront KeyValueStore",
162
163
  "serviceId" => "CloudFront KeyValueStore",
163
164
  "signatureVersion" => "v4",
@@ -10,15 +10,45 @@
10
10
  module Aws::CloudFrontKeyValueStore
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false)
14
- if Aws::Endpoints::Matchers.set?(parameters.kvs_arn)
15
- if (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.kvs_arn))
16
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "cloudfront")
17
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "")
18
- if (arn_type = Aws::Endpoints::Matchers.attr(parsed_arn, "resourceId[0]"))
19
- if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
20
- if Aws::Endpoints::Matchers.string_equals?(arn_type, "key-value-store")
21
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "partition"), "aws")
13
+ if Aws::Endpoints::Matchers.set?(parameters.kvs_arn)
14
+ if (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.kvs_arn))
15
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "cloudfront")
16
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "")
17
+ if (arn_type = Aws::Endpoints::Matchers.attr(parsed_arn, "resourceId[0]"))
18
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
19
+ if Aws::Endpoints::Matchers.string_equals?(arn_type, "key-value-store")
20
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "partition"), "aws")
21
+ if Aws::Endpoints::Matchers.set?(parameters.region)
22
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
23
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{parsed_arn['partition']}")
24
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
25
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false)
26
+ if (url = Aws::Endpoints::Matchers.parse_url(parameters.endpoint))
27
+ return Aws::Endpoints::Endpoint.new(url: "#{url['scheme']}://#{parsed_arn['accountId']}.#{url['authority']}#{url['path']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4a", "signingName" => "cloudfront-keyvaluestore", "signingRegionSet" => ["*"]}]})
28
+ end
29
+ raise ArgumentError, "Provided endpoint is not a valid URL"
30
+ end
31
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
32
+ end
33
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.cloudfront-kvs.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4a", "signingName" => "cloudfront-keyvaluestore", "signingRegionSet" => ["*"]}]})
34
+ end
35
+ raise ArgumentError, "Client was configured for partition `#{partition_result['name']}` but Kvs ARN has `#{parsed_arn['partition']}`"
36
+ end
37
+ raise ArgumentError, "A valid partition could not be determined"
38
+ end
39
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false)
41
+ if (url = Aws::Endpoints::Matchers.parse_url(parameters.endpoint))
42
+ return Aws::Endpoints::Endpoint.new(url: "#{url['scheme']}://#{parsed_arn['accountId']}.#{url['authority']}#{url['path']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4a", "signingName" => "cloudfront-keyvaluestore", "signingRegionSet" => ["*"]}]})
43
+ end
44
+ raise ArgumentError, "Provided endpoint is not a valid URL"
45
+ end
46
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
47
+ end
48
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.cloudfront-kvs.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4a", "signingName" => "cloudfront-keyvaluestore", "signingRegionSet" => ["*"]}]})
49
+ end
50
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "partition"), "aws-eusc")
51
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false)
22
52
  if Aws::Endpoints::Matchers.set?(parameters.region)
23
53
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
54
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "#{parsed_arn['partition']}")
@@ -28,10 +58,11 @@ module Aws::CloudFrontKeyValueStore
28
58
  end
29
59
  raise ArgumentError, "Provided endpoint is not a valid URL"
30
60
  end
31
- return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.cloudfront-kvs.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4a", "signingName" => "cloudfront-keyvaluestore", "signingRegionSet" => ["*"]}]})
61
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.cloudfront-kvs.global.api.amazonwebservices.eu", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4a", "signingName" => "cloudfront-keyvaluestore", "signingRegionSet" => ["*"]}]})
32
62
  end
33
63
  raise ArgumentError, "Client was configured for partition `#{partition_result['name']}` but Kvs ARN has `#{parsed_arn['partition']}`"
34
64
  end
65
+ raise ArgumentError, "A valid partition could not be determined"
35
66
  end
36
67
  if Aws::Endpoints::Matchers.set?(parameters.endpoint)
37
68
  if (url = Aws::Endpoints::Matchers.parse_url(parameters.endpoint))
@@ -39,25 +70,25 @@ module Aws::CloudFrontKeyValueStore
39
70
  end
40
71
  raise ArgumentError, "Provided endpoint is not a valid URL"
41
72
  end
42
- return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.cloudfront-kvs.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4a", "signingName" => "cloudfront-keyvaluestore", "signingRegionSet" => ["*"]}]})
73
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.cloudfront-kvs.global.api.amazonwebservices.eu", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4a", "signingName" => "cloudfront-keyvaluestore", "signingRegionSet" => ["*"]}]})
43
74
  end
44
- raise ArgumentError, "CloudFront-KeyValueStore is not supported in partition `#{parsed_arn['partition']}`"
75
+ raise ArgumentError, "Invalid Configuration: FIPS is not supported with CloudFront-KeyValueStore."
45
76
  end
46
- raise ArgumentError, "ARN resource type is invalid. Expected `key-value-store`, found: `#{arn_type}`"
77
+ raise ArgumentError, "CloudFront-KeyValueStore is not supported in partition `#{parsed_arn['partition']}`"
47
78
  end
48
- raise ArgumentError, "No resource type found in the KVS ARN. Resource type must be `key-value-store`."
79
+ raise ArgumentError, "ARN resource type is invalid. Expected `key-value-store`, found: `#{arn_type}`"
49
80
  end
50
81
  raise ArgumentError, "No resource type found in the KVS ARN. Resource type must be `key-value-store`."
51
82
  end
52
- raise ArgumentError, "Provided ARN must be a global resource ARN. Found: `#{parsed_arn['region']}`"
83
+ raise ArgumentError, "No resource type found in the KVS ARN. Resource type must be `key-value-store`."
53
84
  end
54
- raise ArgumentError, "Provided ARN is not a valid CloudFront Service ARN. Found: `#{parsed_arn['service']}`"
85
+ raise ArgumentError, "Provided ARN must be a global resource ARN. Found: `#{parsed_arn['region']}`"
55
86
  end
56
- raise ArgumentError, "KVS ARN must be a valid ARN"
87
+ raise ArgumentError, "Provided ARN is not a valid CloudFront Service ARN. Found: `#{parsed_arn['service']}`"
57
88
  end
58
- raise ArgumentError, "KVS ARN must be provided to use this service"
89
+ raise ArgumentError, "KVS ARN must be a valid ARN"
59
90
  end
60
- raise ArgumentError, "Invalid Configuration: FIPS is not supported with CloudFront-KeyValueStore."
91
+ raise ArgumentError, "KVS ARN must be provided to use this service"
61
92
  raise ArgumentError, 'No endpoint could be resolved'
62
93
 
63
94
  end
@@ -37,7 +37,7 @@ module Aws::CloudFrontKeyValueStore
37
37
  end
38
38
 
39
39
  # @!attribute [rw] kvs_arn
40
- # The Amazon Resource Name (ARN) of the Key Value Store.
40
+ # The Amazon Resource Name (ARN) of the key value store.
41
41
  # @return [String]
42
42
  #
43
43
  # @!attribute [rw] key
@@ -45,8 +45,9 @@ module Aws::CloudFrontKeyValueStore
45
45
  # @return [String]
46
46
  #
47
47
  # @!attribute [rw] if_match
48
- # The current version (ETag) of the Key Value Store that you are
49
- # deleting keys from, which you can get using DescribeKeyValueStore.
48
+ # The current version (`ETag`) of the key value store that you are
49
+ # deleting keys from, which you can get by using the
50
+ # `DescribeKeyValueStore` API operation.
50
51
  # @return [String]
51
52
  #
52
53
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/DeleteKeyRequest AWS API Documentation
@@ -62,7 +63,7 @@ module Aws::CloudFrontKeyValueStore
62
63
  # List item for keys to delete.
63
64
  #
64
65
  # @!attribute [rw] key
65
- # The key of the key value pair to be deleted.
66
+ # The key of the key-value pair to be deleted.
66
67
  # @return [String]
67
68
  #
68
69
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/DeleteKeyRequestListItem AWS API Documentation
@@ -73,20 +74,20 @@ module Aws::CloudFrontKeyValueStore
73
74
  include Aws::Structure
74
75
  end
75
76
 
76
- # Metadata information about a Key Value Store.
77
+ # Metadata information about a key value store.
77
78
  #
78
79
  # @!attribute [rw] item_count
79
- # Number of key value pairs in the Key Value Store after the
80
+ # Number of key-value pairs in the key value store after the
80
81
  # successful delete.
81
82
  # @return [Integer]
82
83
  #
83
84
  # @!attribute [rw] total_size_in_bytes
84
- # Total size of the Key Value Store after the successful delete, in
85
+ # Total size of the key value store after the successful delete, in
85
86
  # bytes.
86
87
  # @return [Integer]
87
88
  #
88
89
  # @!attribute [rw] etag
89
- # The current version identifier of the Key Value Store after the
90
+ # The current version identifier of the key value store after the
90
91
  # successful delete.
91
92
  # @return [String]
92
93
  #
@@ -101,7 +102,7 @@ module Aws::CloudFrontKeyValueStore
101
102
  end
102
103
 
103
104
  # @!attribute [rw] kvs_arn
104
- # The Amazon Resource Name (ARN) of the Key Value Store.
105
+ # The Amazon Resource Name (ARN) of the key value store.
105
106
  # @return [String]
106
107
  #
107
108
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/DescribeKeyValueStoreRequest AWS API Documentation
@@ -112,40 +113,40 @@ module Aws::CloudFrontKeyValueStore
112
113
  include Aws::Structure
113
114
  end
114
115
 
115
- # Metadata information about a Key Value Store.
116
+ # Metadata information about a key value store.
116
117
  #
117
118
  # @!attribute [rw] item_count
118
- # Number of key value pairs in the Key Value Store.
119
+ # Number of key-value pairs in the key value store.
119
120
  # @return [Integer]
120
121
  #
121
122
  # @!attribute [rw] total_size_in_bytes
122
- # Total size of the Key Value Store in bytes.
123
+ # Total size of the key value store in bytes.
123
124
  # @return [Integer]
124
125
  #
125
126
  # @!attribute [rw] kvs_arn
126
- # The Amazon Resource Name (ARN) of the Key Value Store.
127
+ # The Amazon Resource Name (ARN) of the key value store.
127
128
  # @return [String]
128
129
  #
129
130
  # @!attribute [rw] created
130
- # Date and time when the Key Value Store was created.
131
+ # Date and time when the key value store was created.
131
132
  # @return [Time]
132
133
  #
133
134
  # @!attribute [rw] etag
134
- # The version identifier for the current version of the Key Value
135
- # Store.
135
+ # The version identifier for the current version of the key value
136
+ # store.
136
137
  # @return [String]
137
138
  #
138
139
  # @!attribute [rw] last_modified
139
- # Date and time when the key value pairs in the Key Value Store was
140
+ # Date and time when the key-value pairs in the key value store was
140
141
  # last modified.
141
142
  # @return [Time]
142
143
  #
143
144
  # @!attribute [rw] status
144
- # The current status of the Key Value Store.
145
+ # The current status of the key value store.
145
146
  # @return [String]
146
147
  #
147
148
  # @!attribute [rw] failure_reason
148
- # The reason for Key Value Store creation failure.
149
+ # The reason why the key value store wasn't created.
149
150
  # @return [String]
150
151
  #
151
152
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/DescribeKeyValueStoreResponse AWS API Documentation
@@ -164,7 +165,7 @@ module Aws::CloudFrontKeyValueStore
164
165
  end
165
166
 
166
167
  # @!attribute [rw] kvs_arn
167
- # The Amazon Resource Name (ARN) of the Key Value Store.
168
+ # The Amazon Resource Name (ARN) of the key value store.
168
169
  # @return [String]
169
170
  #
170
171
  # @!attribute [rw] key
@@ -180,22 +181,22 @@ module Aws::CloudFrontKeyValueStore
180
181
  include Aws::Structure
181
182
  end
182
183
 
183
- # A key value pair.
184
+ # A key-value pair.
184
185
  #
185
186
  # @!attribute [rw] key
186
- # The key of the key value pair.
187
+ # The key of the key-value pair.
187
188
  # @return [String]
188
189
  #
189
190
  # @!attribute [rw] value
190
- # The value of the key value pair.
191
+ # The value of the key-value pair.
191
192
  # @return [String]
192
193
  #
193
194
  # @!attribute [rw] item_count
194
- # Number of key value pairs in the Key Value Store.
195
+ # Number of key-value pairs in the key value store.
195
196
  # @return [Integer]
196
197
  #
197
198
  # @!attribute [rw] total_size_in_bytes
198
- # Total size of the Key Value Store in bytes.
199
+ # Total size of the key value store in bytes.
199
200
  # @return [Integer]
200
201
  #
201
202
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/GetKeyResponse AWS API Documentation
@@ -223,11 +224,11 @@ module Aws::CloudFrontKeyValueStore
223
224
  end
224
225
 
225
226
  # @!attribute [rw] kvs_arn
226
- # The Amazon Resource Name (ARN) of the Key Value Store.
227
+ # The Amazon Resource Name (ARN) of the key value store.
227
228
  # @return [String]
228
229
  #
229
230
  # @!attribute [rw] next_token
230
- # If nextToken is returned in the response, there are more results
231
+ # If `nextToken` is returned in the response, there are more results
231
232
  # available. Make the next call using the returned token to retrieve
232
233
  # the next page.
233
234
  # @return [String]
@@ -248,13 +249,13 @@ module Aws::CloudFrontKeyValueStore
248
249
  end
249
250
 
250
251
  # @!attribute [rw] next_token
251
- # If nextToken is returned in the response, there are more results
252
+ # If `nextToken` is returned in the response, there are more results
252
253
  # available. Make the next call using the returned token to retrieve
253
254
  # the next page.
254
255
  # @return [String]
255
256
  #
256
257
  # @!attribute [rw] items
257
- # Key value pairs
258
+ # The key-value pairs.
258
259
  # @return [Array<Types::ListKeysResponseListItem>]
259
260
  #
260
261
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/ListKeysResponse AWS API Documentation
@@ -266,14 +267,14 @@ module Aws::CloudFrontKeyValueStore
266
267
  include Aws::Structure
267
268
  end
268
269
 
269
- # A key value pair.
270
+ # A key-value pair.
270
271
  #
271
272
  # @!attribute [rw] key
272
- # The key of the key value pair.
273
+ # The key of the key-value pair.
273
274
  # @return [String]
274
275
  #
275
276
  # @!attribute [rw] value
276
- # The value of the key value pair.
277
+ # The value of the key-value pair.
277
278
  # @return [String]
278
279
  #
279
280
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/ListKeysResponseListItem AWS API Documentation
@@ -285,7 +286,7 @@ module Aws::CloudFrontKeyValueStore
285
286
  include Aws::Structure
286
287
  end
287
288
 
288
- # A key value pair.
289
+ # A key-value pair.
289
290
  #
290
291
  # @!attribute [rw] key
291
292
  # The key to put.
@@ -296,12 +297,13 @@ module Aws::CloudFrontKeyValueStore
296
297
  # @return [String]
297
298
  #
298
299
  # @!attribute [rw] kvs_arn
299
- # The Amazon Resource Name (ARN) of the Key Value Store.
300
+ # The Amazon Resource Name (ARN) of the key value store.
300
301
  # @return [String]
301
302
  #
302
303
  # @!attribute [rw] if_match
303
- # The current version (ETag) of the Key Value Store that you are
304
- # putting keys into, which you can get using DescribeKeyValueStore.
304
+ # The current version (`ETag`) of the key value store that you are
305
+ # putting keys into, which you can get by using the
306
+ # `DescribeKeyValueStore` API operation.
305
307
  # @return [String]
306
308
  #
307
309
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/PutKeyRequest AWS API Documentation
@@ -315,14 +317,14 @@ module Aws::CloudFrontKeyValueStore
315
317
  include Aws::Structure
316
318
  end
317
319
 
318
- # List item for key value pair to put.
320
+ # List item for key-value pair to put.
319
321
  #
320
322
  # @!attribute [rw] key
321
- # The key of the key value pair list item to put.
323
+ # The key of the key-value pair list item to put.
322
324
  # @return [String]
323
325
  #
324
326
  # @!attribute [rw] value
325
- # The value for the key value pair to put.
327
+ # The value for the key-value pair to put.
326
328
  # @return [String]
327
329
  #
328
330
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/PutKeyRequestListItem AWS API Documentation
@@ -334,20 +336,20 @@ module Aws::CloudFrontKeyValueStore
334
336
  include Aws::Structure
335
337
  end
336
338
 
337
- # Metadata information about a Key Value Store.
339
+ # Metadata information about a key value store.
338
340
  #
339
341
  # @!attribute [rw] item_count
340
- # Number of key value pairs in the Key Value Store after the
342
+ # Number of key-value pairs in the key value store after the
341
343
  # successful put.
342
344
  # @return [Integer]
343
345
  #
344
346
  # @!attribute [rw] total_size_in_bytes
345
- # Total size of the Key Value Store after the successful put, in
347
+ # Total size of the key value store after the successful put, in
346
348
  # bytes.
347
349
  # @return [Integer]
348
350
  #
349
351
  # @!attribute [rw] etag
350
- # The current version identifier of the Key Value Store after the
352
+ # The current version identifier of the key value store after the
351
353
  # successful put.
352
354
  # @return [String]
353
355
  #
@@ -388,16 +390,17 @@ module Aws::CloudFrontKeyValueStore
388
390
  end
389
391
 
390
392
  # @!attribute [rw] kvs_arn
391
- # The Amazon Resource Name (ARN) of the Key Value Store.
393
+ # The Amazon Resource Name (ARN) of the key value store.
392
394
  # @return [String]
393
395
  #
394
396
  # @!attribute [rw] if_match
395
- # The current version (ETag) of the Key Value Store that you are
396
- # updating keys of, which you can get using DescribeKeyValueStore.
397
+ # The current version (`ETag`) of the key value store that you are
398
+ # updating keys of, which you can get by using the
399
+ # `DescribeKeyValueStore` API operation.
397
400
  # @return [String]
398
401
  #
399
402
  # @!attribute [rw] puts
400
- # List of key value pairs to put.
403
+ # List of key-value pairs to put.
401
404
  # @return [Array<Types::PutKeyRequestListItem>]
402
405
  #
403
406
  # @!attribute [rw] deletes
@@ -415,20 +418,20 @@ module Aws::CloudFrontKeyValueStore
415
418
  include Aws::Structure
416
419
  end
417
420
 
418
- # Metadata information about a Key Value Store.
421
+ # Metadata information about a key value store.
419
422
  #
420
423
  # @!attribute [rw] item_count
421
- # Number of key value pairs in the Key Value Store after the
424
+ # Number of key-value pairs in the key value store after the
422
425
  # successful update.
423
426
  # @return [Integer]
424
427
  #
425
428
  # @!attribute [rw] total_size_in_bytes
426
- # Total size of the Key Value Store after the successful update, in
429
+ # Total size of the key value store after the successful update, in
427
430
  # bytes.
428
431
  # @return [Integer]
429
432
  #
430
433
  # @!attribute [rw] etag
431
- # The current version identifier of the Key Value Store after the
434
+ # The current version identifier of the key value store after the
432
435
  # successful update.
433
436
  # @return [String]
434
437
  #
@@ -54,7 +54,7 @@ module Aws::CloudFrontKeyValueStore
54
54
  autoload :EndpointProvider, 'aws-sdk-cloudfrontkeyvaluestore/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-cloudfrontkeyvaluestore/endpoints'
56
56
 
57
- GEM_VERSION = '1.53.0'
57
+ GEM_VERSION = '1.54.0'
58
58
 
59
59
  end
60
60
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudfrontkeyvaluestore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.53.0
4
+ version: 1.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -35,14 +35,14 @@ dependencies:
35
35
  requirements:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
- version: '1.1'
38
+ version: '1.5'
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: '1.1'
45
+ version: '1.5'
46
46
  description: Official AWS Ruby gem for Amazon CloudFront KeyValueStore. This gem is
47
47
  part of the AWS SDK for Ruby.
48
48
  email: