Event Gateway Virtual Cluster Produce Policies
Update Produce Policy for Virtual Cluster
Updates an existing produce policy associated with the specified Event Gateway virtual cluster.
put/v1/event-gateways/{gatewayId}/virtual-clusters/{virtualClusterId}/produce-policies/{policyId}#EncryptFields
Request body
Example request
{
"labels": {
"env": "test"
},
"config": {
"encrypt_fields": [
{
"encryption_key": {
"type": "aws",
"arn": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
},
"paths": [
{
"match": "someObject.someArray[1].fieldName"
}
]
}
]
},
"condition": "record.value.content.foo.bar == \"a-value\""
}Response
Updated produce policy object.
Example response
{
"labels": {
"env": "test"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}