aws-sdk-verifiedpermissions 1.38.0 → 1.40.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: ce398d3fb90966bdde54ecc7e2f73b4c45c735d1f9a82c3ddfdcc0516374cf6c
4
- data.tar.gz: 67ed70a02330773408d0da44694e6a4121c0e504b94d85f6d25b5809b073dc94
3
+ metadata.gz: c917446259d2c9f641698cce1c8d684cb42052455c5a98e7ca2abac121db46a8
4
+ data.tar.gz: de98a48dba9ee7c25341754aa9fcc9d9a0b48955a250414d48e6eae52772442a
5
5
  SHA512:
6
- metadata.gz: 4643ea367d7eaaaaf0bc38ba717bcc020be433940fdf6950b860b936d86f1f2c0c7ba5c3348abdfcf7af2dcef78d83a95b79eca7d71498ac77e44455cdf75f5e
7
- data.tar.gz: 17578bfd602aeb480a702107145626b4a6a9ee6d9619e1b4ad4cd47ad0b5ef10ce64065592fdaa48dbfa99bd5e24dd2d9cfdc913e93c254170c423adfa8f8e48
6
+ metadata.gz: 8e5627bfb2ebfa6016f5aec61825ed5a16cacffc17427b0116ae7977d7970d2b634dda772ab64944bdaaee5e8ec11d1c3866ce0bc6031f886253e2b34ddfaba2
7
+ data.tar.gz: 6ee60792291a8173ad20dc5610cf447af1166c7669acbd90d06d1e676af57aa18bd7bc61344f9ef43edf31b20787b6bff0a24afd105d43c7c6bd1d3787906486
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.0 (2025-01-30)
5
+ ------------------
6
+
7
+ * Feature - Adds Cedar JSON format support for entities and context data in authorization requests
8
+
9
+ 1.39.0 (2025-01-15)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.38.0 (2024-11-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.38.0
1
+ 1.40.0
@@ -257,11 +257,34 @@ module Aws::VerifiedPermissions
257
257
  # Used when loading credentials from the shared credentials file
258
258
  # at HOME/.aws/credentials. When not specified, 'default' is used.
259
259
  #
260
+ # @option options [String] :request_checksum_calculation ("when_supported")
261
+ # Determines when a checksum will be calculated for request payloads. Values are:
262
+ #
263
+ # * `when_supported` - (default) When set, a checksum will be
264
+ # calculated for all request payloads of operations modeled with the
265
+ # `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
266
+ # `requestAlgorithmMember` is modeled.
267
+ # * `when_required` - When set, a checksum will only be calculated for
268
+ # request payloads of operations modeled with the `httpChecksum` trait where
269
+ # `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
270
+ # is modeled and supplied.
271
+ #
260
272
  # @option options [Integer] :request_min_compression_size_bytes (10240)
261
273
  # The minimum size in bytes that triggers compression for request
262
274
  # bodies. The value must be non-negative integer value between 0
263
275
  # and 10485780 bytes inclusive.
264
276
  #
277
+ # @option options [String] :response_checksum_validation ("when_supported")
278
+ # Determines when checksum validation will be performed on response payloads. Values are:
279
+ #
280
+ # * `when_supported` - (default) When set, checksum validation is performed on all
281
+ # response payloads of operations modeled with the `httpChecksum` trait where
282
+ # `responseAlgorithms` is modeled, except when no modeled checksum algorithms
283
+ # are supported.
284
+ # * `when_required` - When set, checksum validation is not performed on
285
+ # response payloads of operations unless the checksum algorithm is supported and
286
+ # the `requestValidationModeMember` member is set to `ENABLED`.
287
+ #
265
288
  # @option options [Proc] :retry_backoff
266
289
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
267
290
  # This option is only used in the `legacy` retry mode.
@@ -819,6 +842,7 @@ module Aws::VerifiedPermissions
819
842
  # ],
820
843
  # },
821
844
  # ],
845
+ # cedar_json: "CedarJson",
822
846
  # },
823
847
  # requests: [ # required
824
848
  # {
@@ -838,6 +862,7 @@ module Aws::VerifiedPermissions
838
862
  # context_map: {
839
863
  # "String" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
840
864
  # },
865
+ # cedar_json: "CedarJson",
841
866
  # },
842
867
  # },
843
868
  # ],
@@ -854,6 +879,7 @@ module Aws::VerifiedPermissions
854
879
  # resp.results[0].request.resource.entity_id #=> String
855
880
  # resp.results[0].request.context.context_map #=> Hash
856
881
  # resp.results[0].request.context.context_map["String"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
882
+ # resp.results[0].request.context.cedar_json #=> String
857
883
  # resp.results[0].decision #=> String, one of "ALLOW", "DENY"
858
884
  # resp.results[0].determining_policies #=> Array
859
885
  # resp.results[0].determining_policies[0].policy_id #=> String
@@ -1107,6 +1133,7 @@ module Aws::VerifiedPermissions
1107
1133
  # ],
1108
1134
  # },
1109
1135
  # ],
1136
+ # cedar_json: "CedarJson",
1110
1137
  # },
1111
1138
  # requests: [ # required
1112
1139
  # {
@@ -1122,6 +1149,7 @@ module Aws::VerifiedPermissions
1122
1149
  # context_map: {
1123
1150
  # "String" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1124
1151
  # },
1152
+ # cedar_json: "CedarJson",
1125
1153
  # },
1126
1154
  # },
1127
1155
  # ],
@@ -1138,6 +1166,7 @@ module Aws::VerifiedPermissions
1138
1166
  # resp.results[0].request.resource.entity_id #=> String
1139
1167
  # resp.results[0].request.context.context_map #=> Hash
1140
1168
  # resp.results[0].request.context.context_map["String"] #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
1169
+ # resp.results[0].request.context.cedar_json #=> String
1141
1170
  # resp.results[0].decision #=> String, one of "ALLOW", "DENY"
1142
1171
  # resp.results[0].determining_policies #=> Array
1143
1172
  # resp.results[0].determining_policies[0].policy_id #=> String
@@ -2455,6 +2484,7 @@ module Aws::VerifiedPermissions
2455
2484
  # context_map: {
2456
2485
  # "String" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
2457
2486
  # },
2487
+ # cedar_json: "CedarJson",
2458
2488
  # },
2459
2489
  # entities: {
2460
2490
  # entity_list: [
@@ -2474,6 +2504,7 @@ module Aws::VerifiedPermissions
2474
2504
  # ],
2475
2505
  # },
2476
2506
  # ],
2507
+ # cedar_json: "CedarJson",
2477
2508
  # },
2478
2509
  # })
2479
2510
  #
@@ -2629,6 +2660,7 @@ module Aws::VerifiedPermissions
2629
2660
  # context_map: {
2630
2661
  # "String" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
2631
2662
  # },
2663
+ # cedar_json: "CedarJson",
2632
2664
  # },
2633
2665
  # entities: {
2634
2666
  # entity_list: [
@@ -2648,6 +2680,7 @@ module Aws::VerifiedPermissions
2648
2680
  # ],
2649
2681
  # },
2650
2682
  # ],
2683
+ # cedar_json: "CedarJson",
2651
2684
  # },
2652
2685
  # })
2653
2686
  #
@@ -3771,7 +3804,7 @@ module Aws::VerifiedPermissions
3771
3804
  tracer: tracer
3772
3805
  )
3773
3806
  context[:gem_name] = 'aws-sdk-verifiedpermissions'
3774
- context[:gem_version] = '1.38.0'
3807
+ context[:gem_version] = '1.40.0'
3775
3808
  Seahorse::Client::Request.new(handlers, context)
3776
3809
  end
3777
3810
 
@@ -45,6 +45,7 @@ module Aws::VerifiedPermissions
45
45
  BatchIsAuthorizedWithTokenOutputList = Shapes::ListShape.new(name: 'BatchIsAuthorizedWithTokenOutputList')
46
46
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
47
47
  BooleanAttribute = Shapes::BooleanShape.new(name: 'BooleanAttribute')
48
+ CedarJson = Shapes::StringShape.new(name: 'CedarJson')
48
49
  Claim = Shapes::StringShape.new(name: 'Claim')
49
50
  ClientId = Shapes::StringShape.new(name: 'ClientId')
50
51
  ClientIds = Shapes::ListShape.new(name: 'ClientIds')
@@ -386,8 +387,10 @@ module Aws::VerifiedPermissions
386
387
  ConflictException.struct_class = Types::ConflictException
387
388
 
388
389
  ContextDefinition.add_member(:context_map, Shapes::ShapeRef.new(shape: ContextMap, location_name: "contextMap"))
390
+ ContextDefinition.add_member(:cedar_json, Shapes::ShapeRef.new(shape: CedarJson, location_name: "cedarJson"))
389
391
  ContextDefinition.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
390
392
  ContextDefinition.add_member_subclass(:context_map, Types::ContextDefinition::ContextMap)
393
+ ContextDefinition.add_member_subclass(:cedar_json, Types::ContextDefinition::CedarJson)
391
394
  ContextDefinition.add_member_subclass(:unknown, Types::ContextDefinition::Unknown)
392
395
  ContextDefinition.struct_class = Types::ContextDefinition
393
396
 
@@ -474,8 +477,10 @@ module Aws::VerifiedPermissions
474
477
  DeterminingPolicyList.member = Shapes::ShapeRef.new(shape: DeterminingPolicyItem)
475
478
 
476
479
  EntitiesDefinition.add_member(:entity_list, Shapes::ShapeRef.new(shape: EntityList, location_name: "entityList"))
480
+ EntitiesDefinition.add_member(:cedar_json, Shapes::ShapeRef.new(shape: CedarJson, location_name: "cedarJson"))
477
481
  EntitiesDefinition.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
478
482
  EntitiesDefinition.add_member_subclass(:entity_list, Types::EntitiesDefinition::EntityList)
483
+ EntitiesDefinition.add_member_subclass(:cedar_json, Types::EntitiesDefinition::CedarJson)
479
484
  EntitiesDefinition.add_member_subclass(:unknown, Types::EntitiesDefinition::Unknown)
480
485
  EntitiesDefinition.struct_class = Types::EntitiesDefinition
481
486
 
@@ -1007,6 +1007,11 @@ module Aws::VerifiedPermissions
1007
1007
  # [IsAuthorized][1], [BatchIsAuthorized][2], and
1008
1008
  # [IsAuthorizedWithToken][3] operations.
1009
1009
  #
1010
+ # If you're passing context as part of the request, exactly one
1011
+ # instance of `context` must be passed. If you don't want to pass
1012
+ # context, omit the `context` parameter from your request rather than
1013
+ # sending `context {}`.
1014
+ #
1010
1015
  # Example:
1011
1016
  # `"context":{"contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}}`
1012
1017
  #
@@ -1029,16 +1034,26 @@ module Aws::VerifiedPermissions
1029
1034
  # `"contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}`
1030
1035
  # @return [Hash<String,Types::AttributeValue>]
1031
1036
  #
1037
+ # @!attribute [rw] cedar_json
1038
+ # A Cedar JSON string representation of the context needed to
1039
+ # successfully evaluate an authorization request.
1040
+ #
1041
+ # Example: `{"cedarJson":"{"<KeyName1>": true, "<KeyName2>":
1042
+ # 1234}" }`
1043
+ # @return [String]
1044
+ #
1032
1045
  # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/ContextDefinition AWS API Documentation
1033
1046
  #
1034
1047
  class ContextDefinition < Struct.new(
1035
1048
  :context_map,
1049
+ :cedar_json,
1036
1050
  :unknown)
1037
- SENSITIVE = [:context_map]
1051
+ SENSITIVE = [:context_map, :cedar_json]
1038
1052
  include Aws::Structure
1039
1053
  include Aws::Structure::Union
1040
1054
 
1041
1055
  class ContextMap < ContextDefinition; end
1056
+ class CedarJson < ContextDefinition; end
1042
1057
  class Unknown < ContextDefinition; end
1043
1058
  end
1044
1059
 
@@ -1532,18 +1547,33 @@ module Aws::VerifiedPermissions
1532
1547
  # authorization request. Each entity in this array must include an
1533
1548
  # identifier for the entity, the attributes of the entity, and a list
1534
1549
  # of any parent entities.
1550
+ #
1551
+ # <note markdown="1"> If you include multiple entities with the same `identifier`, only
1552
+ # the last one is processed in the request.
1553
+ #
1554
+ # </note>
1535
1555
  # @return [Array<Types::EntityItem>]
1536
1556
  #
1557
+ # @!attribute [rw] cedar_json
1558
+ # A Cedar JSON string representation of the entities needed to
1559
+ # successfully evaluate an authorization request.
1560
+ #
1561
+ # Example: `{"cedarJson":
1562
+ # "[{"uid":{"type":"Photo","id":"VacationPhoto94.jpg"},"attrs":{"accessLevel":"public"},"parents":[]}]"}`
1563
+ # @return [String]
1564
+ #
1537
1565
  # @see http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/EntitiesDefinition AWS API Documentation
1538
1566
  #
1539
1567
  class EntitiesDefinition < Struct.new(
1540
1568
  :entity_list,
1569
+ :cedar_json,
1541
1570
  :unknown)
1542
- SENSITIVE = []
1571
+ SENSITIVE = [:cedar_json]
1543
1572
  include Aws::Structure
1544
1573
  include Aws::Structure::Union
1545
1574
 
1546
1575
  class EntityList < EntitiesDefinition; end
1576
+ class CedarJson < EntitiesDefinition; end
1547
1577
  class Unknown < EntitiesDefinition; end
1548
1578
  end
1549
1579
 
@@ -55,7 +55,7 @@ module Aws::VerifiedPermissions
55
55
  autoload :EndpointProvider, 'aws-sdk-verifiedpermissions/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-verifiedpermissions/endpoints'
57
57
 
58
- GEM_VERSION = '1.38.0'
58
+ GEM_VERSION = '1.40.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -39,7 +39,9 @@ module Aws
39
39
  ?logger: untyped,
40
40
  ?max_attempts: Integer,
41
41
  ?profile: String,
42
+ ?request_checksum_calculation: String,
42
43
  ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
43
45
  ?retry_backoff: Proc,
44
46
  ?retry_base_delay: Float,
45
47
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
@@ -114,7 +116,8 @@ module Aws
114
116
  },
115
117
  ]?
116
118
  },
117
- ]?
119
+ ]?,
120
+ cedar_json: ::String?
118
121
  },
119
122
  requests: Array[
120
123
  {
@@ -131,7 +134,8 @@ module Aws
131
134
  entity_id: ::String
132
135
  }?,
133
136
  context: {
134
- context_map: Hash[::String, untyped]?
137
+ context_map: Hash[::String, untyped]?,
138
+ cedar_json: ::String?
135
139
  }?
136
140
  },
137
141
  ]
@@ -163,7 +167,8 @@ module Aws
163
167
  },
164
168
  ]?
165
169
  },
166
- ]?
170
+ ]?,
171
+ cedar_json: ::String?
167
172
  },
168
173
  requests: Array[
169
174
  {
@@ -176,7 +181,8 @@ module Aws
176
181
  entity_id: ::String
177
182
  }?,
178
183
  context: {
179
- context_map: Hash[::String, untyped]?
184
+ context_map: Hash[::String, untyped]?,
185
+ cedar_json: ::String?
180
186
  }?
181
187
  },
182
188
  ]
@@ -437,7 +443,8 @@ module Aws
437
443
  entity_id: ::String
438
444
  },
439
445
  ?context: {
440
- context_map: Hash[::String, untyped]?
446
+ context_map: Hash[::String, untyped]?,
447
+ cedar_json: ::String?
441
448
  },
442
449
  ?entities: {
443
450
  entity_list: Array[
@@ -454,7 +461,8 @@ module Aws
454
461
  },
455
462
  ]?
456
463
  },
457
- ]?
464
+ ]?,
465
+ cedar_json: ::String?
458
466
  }
459
467
  ) -> _IsAuthorizedResponseSuccess
460
468
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _IsAuthorizedResponseSuccess
@@ -480,7 +488,8 @@ module Aws
480
488
  entity_id: ::String
481
489
  },
482
490
  ?context: {
483
- context_map: Hash[::String, untyped]?
491
+ context_map: Hash[::String, untyped]?,
492
+ cedar_json: ::String?
484
493
  },
485
494
  ?entities: {
486
495
  entity_list: Array[
@@ -497,7 +506,8 @@ module Aws
497
506
  },
498
507
  ]?
499
508
  },
500
- ]?
509
+ ]?,
510
+ cedar_json: ::String?
501
511
  }
502
512
  ) -> _IsAuthorizedWithTokenResponseSuccess
503
513
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _IsAuthorizedWithTokenResponseSuccess
data/sig/resource.rbs CHANGED
@@ -39,7 +39,9 @@ module Aws
39
39
  ?logger: untyped,
40
40
  ?max_attempts: Integer,
41
41
  ?profile: String,
42
+ ?request_checksum_calculation: String,
42
43
  ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
43
45
  ?retry_backoff: Proc,
44
46
  ?retry_base_delay: Float,
45
47
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
data/sig/types.rbs CHANGED
@@ -232,11 +232,14 @@ module Aws::VerifiedPermissions
232
232
 
233
233
  class ContextDefinition
234
234
  attr_accessor context_map: ::Hash[::String, Types::AttributeValue]
235
+ attr_accessor cedar_json: ::String
235
236
  attr_accessor unknown: untyped
236
- SENSITIVE: [:context_map]
237
+ SENSITIVE: [:context_map, :cedar_json]
237
238
 
238
239
  class ContextMap < ContextDefinition
239
240
  end
241
+ class CedarJson < ContextDefinition
242
+ end
240
243
  class Unknown < ContextDefinition
241
244
  end
242
245
  end
@@ -350,11 +353,14 @@ module Aws::VerifiedPermissions
350
353
 
351
354
  class EntitiesDefinition
352
355
  attr_accessor entity_list: ::Array[Types::EntityItem]
356
+ attr_accessor cedar_json: ::String
353
357
  attr_accessor unknown: untyped
354
- SENSITIVE: []
358
+ SENSITIVE: [:cedar_json]
355
359
 
356
360
  class EntityList < EntitiesDefinition
357
361
  end
362
+ class CedarJson < EntitiesDefinition
363
+ end
358
364
  class Unknown < EntitiesDefinition
359
365
  end
360
366
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-verifiedpermissions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.40.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: 2024-11-18 00:00:00.000000000 Z
11
+ date: 2025-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.210.0
22
+ version: 3.216.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.210.0
32
+ version: 3.216.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement