AWS.Lambda.Powertools.Parameters
1.3.0
Prefix Reserved
dotnet add package AWS.Lambda.Powertools.Parameters --version 1.3.0
NuGet\Install-Package AWS.Lambda.Powertools.Parameters -Version 1.3.0
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="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AWS.Lambda.Powertools.Parameters --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AWS.Lambda.Powertools.Parameters, 1.3.0"
#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=1.3.0 // Install AWS.Lambda.Powertools.Parameters as a Cake Tool #tool nuget:?package=AWS.Lambda.Powertools.Parameters&version=1.3.0
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 is compatible. 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
- AspectInjector (>= 2.8.1)
- AWSSDK.AppConfig (>= 3.7.301)
- AWSSDK.AppConfigData (>= 3.7.301.15)
- AWSSDK.DynamoDBv2 (>= 3.7.301.18)
- AWSSDK.SecretsManager (>= 3.7.302.29)
- AWSSDK.SimpleSystemsManagement (>= 3.7.303.2)
- Microsoft.Extensions.Configuration (>= 8.0.0)
-
net8.0
- AspectInjector (>= 2.8.1)
- AWSSDK.AppConfig (>= 3.7.301)
- AWSSDK.AppConfigData (>= 3.7.301.15)
- AWSSDK.DynamoDBv2 (>= 3.7.301.18)
- AWSSDK.SecretsManager (>= 3.7.302.29)
- AWSSDK.SimpleSystemsManagement (>= 3.7.303.2)
- Microsoft.Extensions.Configuration (>= 8.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 | 67,172 | 3/10/2024 |
1.2.0 | 11,153 | 2/16/2024 |
1.1.2 | 36,973 | 9/19/2023 |
1.0.0 | 222 | 9/7/2023 |
0.0.3-preview | 240 | 8/22/2023 |
0.0.2-preview | 1,634 | 6/21/2023 |
0.0.1-preview | 141 | 5/12/2023 |