aws_credential_providers 0.0.2 copy "aws_credential_providers: ^0.0.2" to clipboard
aws_credential_providers: ^0.0.2 copied to clipboard

Credential provider utilities for resolving AWS credentials from different sources. Used with aws_xxx_api packages.

example/README.md

Use individual providers:

final example1 = DynamoDB(region: 'eu-west-1', credentialsProvider: fromEnvironment); 
final example2 = DynamoDB(region: 'eu-west-1', credentialsProvider: fromIni); 

Chain providers:

final ddb = DynamoDB(
    region: 'eu-west-1',
    credentialsProvider: ({Client? client}) async => 
        await fromEnvironment() ?? await fromIni(client: client),
); 

Cache credentials between service calls:

final ddb = DynamoDB(
   region: 'eu-west-1',
   credentialsProvider: CachedCredentialProvider(fromIni).cacheAndRefreshWhenNeeded,
);
2
likes
150
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

Credential provider utilities for resolving AWS credentials from different sources. Used with aws_xxx_api packages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

aws_sts_api, shared_aws_api

More

Packages that depend on aws_credential_providers