public static AssumedRoleInfo of(AwsRolePath role, ExternalId externalId) {
        return new AssumedRoleInfo(role, Optional.ofNullable(externalId));
    }
Information used to assume an AWS role.
@param role The role and path to assume
@param externalId The external ID to use when assuming the role, <em>Optional.empty()</em> if not required
@author mortent
jdisc-cloud-aws/src/main/java/ai/vespa/secret/aws/AssumedRoleInfo.java