This message was deleted.
# python
s
This message was deleted.
c
Did you try something like this:
Copy code
def serialize_secret(args):
    (x_cp_api_id, x_cp_api_key) = args
    return json.dumps({"X-CP-API-ID": x_cp_api_id, "X-CP-API-KEY": x_cp_api_key})

SecretVersion('foo', secret_id='foo', secret_string=Output.all(X_CP_API_ID, X_CP_API_KEY, ...).apply(serialize_secret))