
org.cyclopsgroup.kaufman.aws.FileOrInstanceProfileCredentialsProvider Maven / Gradle / Ivy
The newest version!
package org.cyclopsgroup.kaufman.aws;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import com.amazonaws.auth.InstanceProfileCredentialsProvider;
public class FileOrInstanceProfileCredentialsProvider
extends ChainedCredentialsProvider
{
public FileOrInstanceProfileCredentialsProvider( File file )
throws IOException
{
super( Arrays.asList( file, new InstanceProfileCredentialsProvider() ) );
}
public FileOrInstanceProfileCredentialsProvider( String file )
throws IOException
{
super( Arrays.asList( file, new InstanceProfileCredentialsProvider() ) );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy