This feature was added to proc s3 in Viya 4, and is referred to as "custom regions".
To use a custom region, first you define the custom region by providing network connection information with REGION statement and then refer to it using the REGION= option of proc s3.
For example, this will create an S3 connection to BackBlaze B2, an S3-compatible storage system:
proc s3;
region add host="s3.us-west-002.backblazeb2.com"
name="us-west-002"
sslrequired replace;
run;
proc s3 keyid="myb2keyid"
secret="myb2secretaccesskey"
region="us-west-002";
list "/myb2bucket";
run;
Note that some S3 clones may not behave correctly, and proc S3 may or may not handle API implementation differences.
Doc for the region statement:
https://go.documentation.sas.com/doc/en/pgmsascdc/v_010/proc/p04qps86kvhp0in12g3jy96hm97x.htm