So instead of doing this (which is what I currently use to access the secrets manager service):
AWS.config.credentials = new AWS.Credentials({
accessKeyId: "string",
secretAccessKey: "string",
} )
// Create a Secrets Manager client
var secretsmanager = new AWS.SecretsManager({
region: region,
credentials: AWS.config.credentials
} )
I want to do something in essence like this:
AWS.config.credentials = new AWS.Credentials({
userARN/roleARN: "string",
} )
Is there a way to accomplish that?