How to use vault write with a k8s sidecar

Hi,

With the aws secrets engine, its possible to request different types of credentials using ‘write’

vault write aws/roles/my-role \
    role_arns=arn:aws:iam::000000000000:role/my-role \
    credential_type=assumed_role

Using the k8s sidecar, how would I get this type of token?