AWS.Lambda.Powertools.Parameters
0.0.2-preview
Prefix Reserved
This is a prerelease version of AWS.Lambda.Powertools.Parameters.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AWS.Lambda.Powertools.Parameters --version 0.0.2-preview
NuGet\Install-Package AWS.Lambda.Powertools.Parameters -Version 0.0.2-preview
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="AWS.Lambda.Powertools.Parameters" Version="0.0.2-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AWS.Lambda.Powertools.Parameters --version 0.0.2-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AWS.Lambda.Powertools.Parameters, 0.0.2-preview"
#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.
// Install AWS.Lambda.Powertools.Parameters as a Cake Addin #addin nuget:?package=AWS.Lambda.Powertools.Parameters&version=0.0.2-preview&prerelease // Install AWS.Lambda.Powertools.Parameters as a Cake Tool #tool nuget:?package=AWS.Lambda.Powertools.Parameters&version=0.0.2-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AWS.Lambda.Powertools.Parameters
The Parameters utility provides high-level functionality to retrieve one or multiple parameter values from AWS Systems Manager Parameter Store, AWS Secrets Manager, or Amazon DynamoDB. Or bring your own providers.
Key features
- Retrieve one or multiple parameters from the underlying provider
- Cache parameter values for a given amount of time (defaults to 5 seconds)
- Transform parameter values from JSON or base 64 encoded strings
- Bring your own parameter store provider
Read the docs
For a full list of features go to docs.powertools.aws.dev/lambda-dotnet/utilities/parameters/
GitHub: https://github.com/aws-powertools/powertools-lambda-dotnet/
Sample Function using AWS Systems Manager Parameter Store
using AWS.Lambda.Powertools.Logging;
using AWS.Lambda.Powertools.Parameters;
using AWS.Lambda.Powertools.Parameters.SimpleSystemsManagement;
namespace HelloWorld;
public class Function
{
[Logging(LogEvent = true)]
public async Task<APIGatewayProxyResponse> FunctionHandler(APIGatewayProxyRequest apigwProxyEvent,
ILambdaContext context)
{
// Get SSM Provider instance
ISsmProvider ssmProvider = ParametersManager.SsmProvider;
// Retrieve a single parameter
string? value = await ssmProvider
.GetAsync("/my/parameter")
.ConfigureAwait(false);
// Retrieve multiple parameters from a path prefix
// This returns a Dictionary with the parameter name as key
IDictionary<string, string?> values = await ssmProvider
.GetMultipleAsync("/my/path/prefix")
.ConfigureAwait(false);
...
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- AWS.Lambda.Powertools.Common (>= 1.1.1)
- AWSSDK.DynamoDBv2 (>= 3.7.103.1)
- AWSSDK.SecretsManager (>= 3.7.102.38)
- AWSSDK.SimpleSystemsManagement (>= 3.7.104.29)
- Microsoft.Extensions.Configuration (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on AWS.Lambda.Powertools.Parameters:
Repository | Stars |
---|---|
aws-powertools/powertools-lambda-dotnet
Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
|
Version | Downloads | Last updated |
---|---|---|
1.3.0 | 60,380 | 3/10/2024 |
1.2.0 | 10,797 | 2/16/2024 |
1.1.2 | 35,850 | 9/19/2023 |
1.0.0 | 219 | 9/7/2023 |
0.0.3-preview | 237 | 8/22/2023 |
0.0.2-preview | 1,627 | 6/21/2023 |
0.0.1-preview | 138 | 5/12/2023 |