aws-sdk-verifiedpermissions 1.39.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-verifiedpermissions/client.rb +11 -1
- data/lib/aws-sdk-verifiedpermissions/client_api.rb +5 -0
- data/lib/aws-sdk-verifiedpermissions/types.rb +32 -2
- data/lib/aws-sdk-verifiedpermissions.rb +1 -1
- data/sig/client.rbs +16 -8
- data/sig/types.rbs +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c917446259d2c9f641698cce1c8d684cb42052455c5a98e7ca2abac121db46a8
|
4
|
+
data.tar.gz: de98a48dba9ee7c25341754aa9fcc9d9a0b48955a250414d48e6eae52772442a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e5627bfb2ebfa6016f5aec61825ed5a16cacffc17427b0116ae7977d7970d2b634dda772ab64944bdaaee5e8ec11d1c3866ce0bc6031f886253e2b34ddfaba2
|
7
|
+
data.tar.gz: 6ee60792291a8173ad20dc5610cf447af1166c7669acbd90d06d1e676af57aa18bd7bc61344f9ef43edf31b20787b6bff0a24afd105d43c7c6bd1d3787906486
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.40.0
|
@@ -842,6 +842,7 @@ module Aws::VerifiedPermissions
|
|
842
842
|
# ],
|
843
843
|
# },
|
844
844
|
# ],
|
845
|
+
# cedar_json: "CedarJson",
|
845
846
|
# },
|
846
847
|
# requests: [ # required
|
847
848
|
# {
|
@@ -861,6 +862,7 @@ module Aws::VerifiedPermissions
|
|
861
862
|
# context_map: {
|
862
863
|
# "String" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
863
864
|
# },
|
865
|
+
# cedar_json: "CedarJson",
|
864
866
|
# },
|
865
867
|
# },
|
866
868
|
# ],
|
@@ -877,6 +879,7 @@ module Aws::VerifiedPermissions
|
|
877
879
|
# resp.results[0].request.resource.entity_id #=> String
|
878
880
|
# resp.results[0].request.context.context_map #=> Hash
|
879
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
|
880
883
|
# resp.results[0].decision #=> String, one of "ALLOW", "DENY"
|
881
884
|
# resp.results[0].determining_policies #=> Array
|
882
885
|
# resp.results[0].determining_policies[0].policy_id #=> String
|
@@ -1130,6 +1133,7 @@ module Aws::VerifiedPermissions
|
|
1130
1133
|
# ],
|
1131
1134
|
# },
|
1132
1135
|
# ],
|
1136
|
+
# cedar_json: "CedarJson",
|
1133
1137
|
# },
|
1134
1138
|
# requests: [ # required
|
1135
1139
|
# {
|
@@ -1145,6 +1149,7 @@ module Aws::VerifiedPermissions
|
|
1145
1149
|
# context_map: {
|
1146
1150
|
# "String" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
1147
1151
|
# },
|
1152
|
+
# cedar_json: "CedarJson",
|
1148
1153
|
# },
|
1149
1154
|
# },
|
1150
1155
|
# ],
|
@@ -1161,6 +1166,7 @@ module Aws::VerifiedPermissions
|
|
1161
1166
|
# resp.results[0].request.resource.entity_id #=> String
|
1162
1167
|
# resp.results[0].request.context.context_map #=> Hash
|
1163
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
|
1164
1170
|
# resp.results[0].decision #=> String, one of "ALLOW", "DENY"
|
1165
1171
|
# resp.results[0].determining_policies #=> Array
|
1166
1172
|
# resp.results[0].determining_policies[0].policy_id #=> String
|
@@ -2478,6 +2484,7 @@ module Aws::VerifiedPermissions
|
|
2478
2484
|
# context_map: {
|
2479
2485
|
# "String" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
2480
2486
|
# },
|
2487
|
+
# cedar_json: "CedarJson",
|
2481
2488
|
# },
|
2482
2489
|
# entities: {
|
2483
2490
|
# entity_list: [
|
@@ -2497,6 +2504,7 @@ module Aws::VerifiedPermissions
|
|
2497
2504
|
# ],
|
2498
2505
|
# },
|
2499
2506
|
# ],
|
2507
|
+
# cedar_json: "CedarJson",
|
2500
2508
|
# },
|
2501
2509
|
# })
|
2502
2510
|
#
|
@@ -2652,6 +2660,7 @@ module Aws::VerifiedPermissions
|
|
2652
2660
|
# context_map: {
|
2653
2661
|
# "String" => "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
2654
2662
|
# },
|
2663
|
+
# cedar_json: "CedarJson",
|
2655
2664
|
# },
|
2656
2665
|
# entities: {
|
2657
2666
|
# entity_list: [
|
@@ -2671,6 +2680,7 @@ module Aws::VerifiedPermissions
|
|
2671
2680
|
# ],
|
2672
2681
|
# },
|
2673
2682
|
# ],
|
2683
|
+
# cedar_json: "CedarJson",
|
2674
2684
|
# },
|
2675
2685
|
# })
|
2676
2686
|
#
|
@@ -3794,7 +3804,7 @@ module Aws::VerifiedPermissions
|
|
3794
3804
|
tracer: tracer
|
3795
3805
|
)
|
3796
3806
|
context[:gem_name] = 'aws-sdk-verifiedpermissions'
|
3797
|
-
context[:gem_version] = '1.
|
3807
|
+
context[:gem_version] = '1.40.0'
|
3798
3808
|
Seahorse::Client::Request.new(handlers, context)
|
3799
3809
|
end
|
3800
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
|
|
data/sig/client.rbs
CHANGED
@@ -116,7 +116,8 @@ module Aws
|
|
116
116
|
},
|
117
117
|
]?
|
118
118
|
},
|
119
|
-
]
|
119
|
+
]?,
|
120
|
+
cedar_json: ::String?
|
120
121
|
},
|
121
122
|
requests: Array[
|
122
123
|
{
|
@@ -133,7 +134,8 @@ module Aws
|
|
133
134
|
entity_id: ::String
|
134
135
|
}?,
|
135
136
|
context: {
|
136
|
-
context_map: Hash[::String, untyped]
|
137
|
+
context_map: Hash[::String, untyped]?,
|
138
|
+
cedar_json: ::String?
|
137
139
|
}?
|
138
140
|
},
|
139
141
|
]
|
@@ -165,7 +167,8 @@ module Aws
|
|
165
167
|
},
|
166
168
|
]?
|
167
169
|
},
|
168
|
-
]
|
170
|
+
]?,
|
171
|
+
cedar_json: ::String?
|
169
172
|
},
|
170
173
|
requests: Array[
|
171
174
|
{
|
@@ -178,7 +181,8 @@ module Aws
|
|
178
181
|
entity_id: ::String
|
179
182
|
}?,
|
180
183
|
context: {
|
181
|
-
context_map: Hash[::String, untyped]
|
184
|
+
context_map: Hash[::String, untyped]?,
|
185
|
+
cedar_json: ::String?
|
182
186
|
}?
|
183
187
|
},
|
184
188
|
]
|
@@ -439,7 +443,8 @@ module Aws
|
|
439
443
|
entity_id: ::String
|
440
444
|
},
|
441
445
|
?context: {
|
442
|
-
context_map: Hash[::String, untyped]
|
446
|
+
context_map: Hash[::String, untyped]?,
|
447
|
+
cedar_json: ::String?
|
443
448
|
},
|
444
449
|
?entities: {
|
445
450
|
entity_list: Array[
|
@@ -456,7 +461,8 @@ module Aws
|
|
456
461
|
},
|
457
462
|
]?
|
458
463
|
},
|
459
|
-
]
|
464
|
+
]?,
|
465
|
+
cedar_json: ::String?
|
460
466
|
}
|
461
467
|
) -> _IsAuthorizedResponseSuccess
|
462
468
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _IsAuthorizedResponseSuccess
|
@@ -482,7 +488,8 @@ module Aws
|
|
482
488
|
entity_id: ::String
|
483
489
|
},
|
484
490
|
?context: {
|
485
|
-
context_map: Hash[::String, untyped]
|
491
|
+
context_map: Hash[::String, untyped]?,
|
492
|
+
cedar_json: ::String?
|
486
493
|
},
|
487
494
|
?entities: {
|
488
495
|
entity_list: Array[
|
@@ -499,7 +506,8 @@ module Aws
|
|
499
506
|
},
|
500
507
|
]?
|
501
508
|
},
|
502
|
-
]
|
509
|
+
]?,
|
510
|
+
cedar_json: ::String?
|
503
511
|
}
|
504
512
|
) -> _IsAuthorizedWithTokenResponseSuccess
|
505
513
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _IsAuthorizedWithTokenResponseSuccess
|
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.
|
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: 2025-01-
|
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
|