Skip to content

Commit 8416d25

Browse files
committed
remove AppConfig implementation
1 parent 72b3362 commit 8416d25

File tree

11 files changed

+3
-2445
lines changed

11 files changed

+3
-2445
lines changed

docs/utilities/parameters.md

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Utility
44
---
55

66
<!-- markdownlint-disable MD013 -->
7-
The parameters utility provides high-level functions to retrieve one or multiple parameter values from [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html){target="_blank"}, [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/){target="_blank"}, [AWS AppConfig](https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html){target="_blank"}, [Amazon DynamoDB](https://aws.amazon.com/dynamodb/){target="_blank"}, or bring your own.
7+
The parameters utility provides high-level functions to retrieve one or multiple parameter values from [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html){target="_blank"}, [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/){target="_blank"}, [Amazon DynamoDB](https://aws.amazon.com/dynamodb/){target="_blank"}, or bring your own.
88

99
## Key features
1010

@@ -32,7 +32,6 @@ SSM Parameter Store | `SsmProvider.GetMultiple(string)` `SsmProvider.GetMultiple
3232
Secrets Manager | `SecretsProvider.Get(string)` `SecretsProvider.Get<T>(string)` | `secretsmanager:GetSecretValue`
3333
DynamoDB | `DynamoDBProvider.Get(string)` `DynamoDBProvider.Get<T>(string)` | `dynamodb:GetItem`
3434
DynamoDB | `DynamoDBProvider.GetMultiple(string)` `DynamoDBProvider.GetMultiple<T>(string)` | `dynamodb:Query`
35-
App Config | `DynamoDBProvider.Get()` | `appconfig:StartConfigurationSession appconfig:GetLatestConfiguration`
3635

3736
## SSM Parameter Store
3837

@@ -252,65 +251,6 @@ in order to get data from other regions or use specific credentials.
252251
}
253252
```
254253

255-
## App Configurations
256-
257-
For application configurations in AWS AppConfig, use `AppConfigProvider`.
258-
259-
Alternatively, you can retrieve the instance of provider and configure its underlying SDK client,
260-
in order to get data from other regions or use specific credentials.
261-
262-
263-
=== "AppConfigProvider"
264-
265-
```c# hl_lines="10-13 16-18"
266-
using AWS.Lambda.Powertools.Parameters;
267-
using AWS.Lambda.Powertools.Parameters.AppConfig;
268-
269-
public class Function
270-
{
271-
public async Task<APIGatewayProxyResponse> FunctionHandler
272-
(APIGatewayProxyRequest apigProxyEvent, ILambdaContext context)
273-
{
274-
// Get AppConfig Provider instance
275-
IAppConfigProvider appConfigProvider = ParametersManager.AppConfigProvider
276-
.DefaultApplication("MyApplicationId")
277-
.DefaultEnvironment("MyEnvironmentId")
278-
.DefaultConfigProfile("MyConfigProfileId");
279-
280-
// Retrieve a single configuration, latest version
281-
IDictionary<string, string?> value = await appConfigProvider
282-
.GetAsync()
283-
.ConfigureAwait(false);
284-
}
285-
}
286-
```
287-
288-
=== "AppConfigProvider with an explicit region"
289-
290-
```c# hl_lines="10-14"
291-
using AWS.Lambda.Powertools.Parameters;
292-
using AWS.Lambda.Powertools.Parameters.AppConfig;
293-
294-
public class Function
295-
{
296-
public async Task<APIGatewayProxyResponse> FunctionHandler
297-
(APIGatewayProxyRequest apigProxyEvent, ILambdaContext context)
298-
{
299-
// Get AppConfig Provider instance
300-
IAppConfigProvider appConfigProvider = ParametersManager.AppConfigProvider
301-
.ConfigureClient(RegionEndpoint.EUCentral1)
302-
.DefaultApplication("MyApplicationId")
303-
.DefaultEnvironment("MyEnvironmentId")
304-
.DefaultConfigProfile("MyConfigProfileId");
305-
306-
// Retrieve a single configuration, latest version
307-
IDictionary<string, string?> value = await appConfigProvider
308-
.GetAsync()
309-
.ConfigureAwait(false);
310-
}
311-
}
312-
```
313-
314254
## DynamoDB Provider
315255

316256
For parameters stored in a DynamoDB table, use `DynamoDBProvider`.

0 commit comments

Comments
 (0)