Skip to content

Commit

Permalink
Merge branch 'develop' into feat/tracer-auto-disable
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brewer committed Aug 10, 2021
2 parents 05818f9 + b9a1d54 commit e65ab8d
Show file tree
Hide file tree
Showing 7 changed files with 621 additions and 27 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ A suite of Python utilities for AWS Lambda functions to ease adopting best pract
* **[Event source data classes](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/data_classes/)** - Data classes describing the schema of common Lambda event triggers
* **[Parser](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/parser/)** - Data parsing and deep validation using Pydantic
* **[Idempotency](https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/idempotency/)** - Convert your Lambda functions into idempotent operations which are safe to retry
* **[Feature Flags](./utilities/feature_flags.md)** - A simple rule engine to evaluate when one or multiple features should be enabled depending on the input

### Installation

Expand Down
8 changes: 4 additions & 4 deletions aws_lambda_powertools/utilities/feature_flags/appconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(
environment: str,
application: str,
name: str,
cache_seconds: int,
max_age: int = 5,
sdk_config: Optional[Config] = None,
envelope: Optional[str] = "",
jmespath_options: Optional[Dict] = None,
Expand All @@ -36,8 +36,8 @@ def __init__(
AppConfig application name, e.g. 'powertools'
name: str
AppConfig configuration name e.g. `my_conf`
cache_seconds: int
cache expiration time, how often to call AppConfig to fetch latest configuration
max_age: int
cache expiration time in seconds, or how often to call AppConfig to fetch latest configuration
sdk_config: Optional[Config]
Botocore Config object to pass during client initialization
envelope : Optional[str]
Expand All @@ -49,7 +49,7 @@ def __init__(
self.environment = environment
self.application = application
self.name = name
self.cache_seconds = cache_seconds
self.cache_seconds = max_age
self.config = sdk_config
self.envelope = envelope
self.jmespath_options = jmespath_options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, store: StoreProvider):
environment="test",
application="powertools",
name="test_conf_name",
cache_seconds=300,
max_age=300,
envelope="features"
)
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ aws serverlessrepo list-application-versions \
[Event source data classes](./utilities/data_classes.md) | Data classes describing the schema of common Lambda event triggers
[Parser](./utilities/parser.md) | Data parsing and deep validation using Pydantic
[Idempotency](./utilities/idempotency.md) | Idempotent Lambda handler
[Feature Flags](./utilities/feature_flags.md) | A simple rule engine to evaluate when one or multiple features should be enabled depending on the input

## Environment variables

Expand Down
Binary file added docs/media/feat_flags_evaluation_workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e65ab8d

Please sign in to comment.