ChainedCredentialProvider class

Utility class for chaining multiple providers in a fallback chain Example usage with default chain:

import 'package:aws_credential_providers/aws_credential_providers.dart';
import 'package:aws_sts_api/sts-2011-06-15.dart';

final sts = STS(
 credentialsProvider: ChainedCredentialProvider([
    fromEnvironment,
    fromIni,
    fromInstanceMetaDataService,
  ]).chainedFallback,
);

Constructors

ChainedCredentialProvider(List<AwsClientCredentialsProvider> credentialProviders)

Properties

credentialProviders List<AwsClientCredentialsProvider>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

chainedFallback({Client? client}) Future<AwsClientCredentials?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited