avp-cli
Version:
Small CLI to help interacts with the Amazon Verified Permissions (AVP) service.
83 lines (82 loc) • 2.38 kB
JSON
{
"policyStoreId": "your-policy-store-id",
"principal": {
"entityType": "EcommercePlatform::Seller",
"entityId": "1"
},
"action": {
"actionType": "EcommercePlatform::Action",
"actionId": "Sell"
},
"resource": {
"entityType": "EcommercePlatform::Car",
"entityId": "porsche"
},
"entities": {
"entityList": [
{
"identifier": {
"entityType": "EcommercePlatform::Seller",
"entityId": "1"
},
"attributes": {
"department": {
"entityIdentifier": {
"entityType": "EcommercePlatform::Department",
"entityId": "2"
}
},
"rating": {
"long": 8
}
},
"parents": []
},
{
"identifier": {
"entityType": "EcommercePlatform::Car",
"entityId": "porsche"
},
"attributes": {
"price": {
"long": 10000000
},
"department": {
"entityIdentifier": {
"entityType": "EcommercePlatform::Department",
"entityId": "1"
}
}
},
"parents": []
},
{
"identifier": {
"entityType": "EcommercePlatform::Department",
"entityId": "1"
},
"attributes": {
"name": {
"string": "luxury"
}
},
"parents": []
},
{
"identifier": {
"entityType": "EcommercePlatform::Department",
"entityId": "2"
},
"attributes": {
"name": {
"string": "normal"
}
},
"parents": []
}
]
},
"context": {
"contextMap": {}
}
}