public static CloudConfiguration buildCloudConfigurationForTabular(Map<String, String> properties) {
        Map<String, String> copiedProperties = new HashMap<>();
        String sessionAk = properties.getOrDefault(S3FileIOProperties.ACCESS_KEY_ID, null);
        String sessionSk = properties.getOrDefault(S3FileIOProperties.SECRET_ACCESS_KEY, null);
        String sessionToken = properties.getOrDefault(S3FileIOProperties.SESSION_TOKEN, null);
        String region = properties.getOrDefault(AwsClientProperties.CLIENT_REGION, null);
        if (sessionAk != null && sessionSk != null && sessionToken != null && region != null) {
            copiedProperties.put(CloudConfigurationConstants.AWS_S3_ACCESS_KEY, sessionAk);
            copiedProperties.put(CloudConfigurationConstants.AWS_S3_SECRET_KEY, sessionSk);
            copiedProperties.put(CloudConfigurationConstants.AWS_S3_SESSION_TOKEN, sessionToken);
            copiedProperties.put(CloudConfigurationConstants.AWS_S3_REGION, region);
        }
        return buildCloudConfigurationForStorage(copiedProperties);
    }
@Test
    public void testBuildCloudConfigurationForTabular() {
        Map<String, String> map = new HashMap<>();
        map.put(S3FileIOProperties.ACCESS_KEY_ID, "ak");
        map.put(S3FileIOProperties.SECRET_ACCESS_KEY, "sk");
        map.put(S3FileIOProperties.SESSION_TOKEN, "token");
        map.put(AwsClientProperties.CLIENT_REGION, "region");
        CloudConfiguration cloudConfiguration = CloudConfigurationFactory.buildCloudConfigurationForTabular(map);
        Assert.assertNotNull(cloudConfiguration);
        Assert.assertEquals(CloudType.AWS, cloudConfiguration.getCloudType());
        Assert.assertEquals(
                "AWSCloudConfiguration{resources='', jars='', hdpuser='', " +
                        "cred=AWSCloudCredential{useAWSSDKDefaultBehavior=false, " +
                        "useInstanceProfile=false, accessKey='ak', secretKey='sk', " +
                        "sessionToken='token', iamRoleArn='', stsRegion='', stsEndpoint='', externalId='', " +
                        "region='region', endpoint=''}, enablePathStyleAccess=false, enableSSL=true}",
                cloudConfiguration.toConfString());
    }