Soenneker.Aws.BasicCredentials 4.0.315

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Aws.BasicCredentials --version 4.0.315
                    
NuGet\Install-Package Soenneker.Aws.BasicCredentials -Version 4.0.315
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Aws.BasicCredentials" Version="4.0.315" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Aws.BasicCredentials" Version="4.0.315" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Aws.BasicCredentials" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Aws.BasicCredentials --version 4.0.315
                    
#r "nuget: Soenneker.Aws.BasicCredentials, 4.0.315"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Aws.BasicCredentials@4.0.315
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Aws.BasicCredentials&version=4.0.315
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Aws.BasicCredentials&version=4.0.315
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Aws.BasicCredentials

Creates and caches the AWS SDK's BasicAWSCredentials from application configuration.

Installation

dotnet add package Soenneker.Aws.BasicCredentials

Configuration

The utility requires these keys:

{
  "Aws": {
    "AccessKey": "access-key-id",
    "SecretKey": "secret-access-key"
  }
}

Use a secret provider or environment variables (Aws__AccessKey and Aws__SecretKey) in deployed applications. Do not commit credentials to configuration files.

Registration and use

using Amazon.Runtime;
using Soenneker.Aws.BasicCredentials.Abstract;
using Soenneker.Aws.BasicCredentials.Registrars;

builder.Services.AddBasicAwsCredentialsUtilAsSingleton();

public sealed class AwsClientFactory(IBasicAwsCredentialsUtil credentialsUtil)
{
    public async ValueTask<BasicAWSCredentials> GetCredentials(
        CancellationToken cancellationToken) =>
        await credentialsUtil.Get(cancellationToken);
}

GetSync() is available for callers that cannot use the asynchronous API.

Lifecycle and security

  • Credentials are created on first access and reused for the utility's lifetime.
  • Configuration changes and rotated keys are not picked up after initialization; replace or dispose the utility to create a new credential object.
  • Missing configuration fails credential creation rather than returning blank credentials.
  • BasicAWSCredentials represents long-lived access keys. Prefer an AWS role or temporary credential provider when the hosting environment supports one.
  • Let the DI container dispose registered instances. Do not log the credential object or its secret values.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Aws.BasicCredentials:

Package Downloads
Soenneker.Aws.Route53.DomainsClientUtil

A .NET thread-safe singleton For AWS's Route53 domain client, AmazonRoute53DomainsClient

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.329 79 9/16/2026
4.0.328 91 9/16/2026
4.0.327 108 9/15/2026
4.0.326 149 9/15/2026
4.0.325 135 9/13/2026
4.0.324 106 9/13/2026
4.0.323 128 9/13/2026
4.0.322 112 9/12/2026
4.0.321 90 9/12/2026
4.0.320 136 9/12/2026
4.0.319 161 9/11/2026
4.0.318 116 9/10/2026
4.0.317 147 9/9/2026
4.0.316 118 9/9/2026
4.0.315 117 9/8/2026
4.0.314 128 9/8/2026
4.0.313 125 9/8/2026
4.0.312 128 9/7/2026
4.0.311 145 9/7/2026
4.0.310 137 9/5/2026
Loading failed

Updated Multiple NuGet packages