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.
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                
#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                

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 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.

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 85,943 3/10/2024
1.2.0 12,313 2/16/2024
1.1.2 40,471 9/19/2023
1.0.0 230 9/7/2023
0.0.3-preview 244 8/22/2023
0.0.2-preview 1,678 6/21/2023
0.0.1-preview 144 5/12/2023