Class AWSAuthFactory

java.lang.Object
org.graylog.integrations.aws.AWSAuthFactory

public class AWSAuthFactory extends Object
  • Constructor Details

    • AWSAuthFactory

      public AWSAuthFactory()
  • Method Details

    • create

      public static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider create(boolean isCloud, @Nullable String stsRegion, @Nullable String accessKey, @Nullable String secretKey, @Nullable String assumeRoleArn)
      Resolves the appropriate AWS authorization provider based on the input. If an accessKey and secretKey are provided, they will be used explicitly. If not, the default DefaultCredentialsProvider will be used instead. This will resolve the role/policy using Java props, environment variables, EC2 instance roles etc. See the DefaultCredentialsProvider Javadoc for more information.