forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used AWS guidelines safe names in examples
- Loading branch information
Showing
23 changed files
with
93 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
# The string that replaces values that have been erased | ||
DATA_MASKING_STRING: str = "*****" | ||
# The maximum number of entries that can be retained in the local cryptographic materials cache | ||
CACHE_CAPACITY: int = 100 | ||
# The maximum time (in seconds) that a cache entry may be kept in the cache | ||
MAX_CACHE_AGE_SECONDS: float = 300.0 | ||
# Maximum number of messages which are allowed to be encrypted under a single cached data key | ||
MAX_MESSAGES_ENCRYPTED: int = 4294967296 # 2 ** 32 | ||
# Values can be [1 - 4294967296] (2 ** 32) | ||
MAX_MESSAGES_ENCRYPTED: int = 4294967296 | ||
# Maximum number of bytes which are allowed to be encrypted under a single cached data key | ||
MAX_BYTES_ENCRYPTED: int = 9223372036854775807 # 2 ** 63 - 1 | ||
# Values can be [1 - 9223372036854775807] (2 ** 63 - 1) | ||
MAX_BYTES_ENCRYPTED: int = 9223372036854775807 | ||
|
||
ENCRYPTED_DATA_KEY_CTX_KEY = "aws-crypto-public-key" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
examples/data_masking/src/choosing_payload_all_nested_keys.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
examples/data_masking/src/choosing_payload_all_nested_keys_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
examples/data_masking/src/choosing_payload_complex_search.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"name": "Lessa", | ||
"name": "Carlos", | ||
"operation": "non sensitive", | ||
"card_number": "1000 4444 333 2222", | ||
"card_number": "1111 2222 3333 4444", | ||
"address": [ | ||
{ | ||
"postcode": 81847, | ||
"street": "38986 Joanne Stravenue" | ||
"postcode": 12345, | ||
"street": "123 Any Drive" | ||
}, | ||
{ | ||
"postcode": 91034, | ||
"street": "14987 Avenue 1" | ||
"postcode": 67890, | ||
"street": "111 Main Street" | ||
}, | ||
{ | ||
"postcode": 78495, | ||
"street": "34452 Avenue 10" | ||
"postcode": 11111, | ||
"street": "100 Any Street" | ||
} | ||
] | ||
} |
12 changes: 6 additions & 6 deletions
12
examples/data_masking/src/choosing_payload_complex_search_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"name": "Lessa", | ||
"name": "Carlos", | ||
"operation": "non sensitive", | ||
"card_number": "1000 4444 333 2222", | ||
"card_number": "1111 2222 3333 4444", | ||
"address": [ | ||
{ | ||
"postcode": 81847, | ||
"postcode": 12345, | ||
"street": "*****" | ||
}, | ||
{ | ||
"postcode": 91034, | ||
"postcode": 67890, | ||
"street": "*****" | ||
}, | ||
{ | ||
"postcode": 78495, | ||
"street": "34452 Avenue 10" | ||
"postcode": 11111, | ||
"street": "100 Any Street" | ||
} | ||
] | ||
} |
12 changes: 6 additions & 6 deletions
12
examples/data_masking/src/choosing_payload_list_all_index.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"name": "Lessa", | ||
"name": "Carlos", | ||
"operation": "non sensitive", | ||
"card_number": "1000 4444 333 2222", | ||
"card_number": "1111 2222 3333 4444", | ||
"address": [ | ||
{ | ||
"postcode": 81847, | ||
"street": "38986 Joanne Stravenue" | ||
"postcode": 12345, | ||
"street": "123 Any Drive" | ||
}, | ||
{ | ||
"postcode": 91034, | ||
"street": "14987 Avenue 1" | ||
"postcode": 67890, | ||
"street": "100 Main Street," | ||
} | ||
] | ||
} |
8 changes: 4 additions & 4 deletions
8
examples/data_masking/src/choosing_payload_list_all_index_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"name": "Lessa", | ||
"name": "Carlos", | ||
"operation": "non sensitive", | ||
"card_number": "1000 4444 333 2222", | ||
"card_number": "1111 2222 3333 4444", | ||
"address": [ | ||
{ | ||
"postcode": 81847, | ||
"street": "38986 Joanne Stravenue" | ||
"postcode": 12345, | ||
"street": "123 Any Street" | ||
}, | ||
{ | ||
"postcode": 91034, | ||
"street": "14987 Avenue 1" | ||
"postcode": 67890, | ||
"street": "100 Main Street" | ||
} | ||
] | ||
} |
10 changes: 5 additions & 5 deletions
10
examples/data_masking/src/choosing_payload_list_index_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"name": "Lessa", | ||
"name": "Carlos", | ||
"operation": "non sensitive", | ||
"card_number": "1000 4444 333 2222", | ||
"card_number": "1111 2222 3333 4444", | ||
"address": [ | ||
{ | ||
"postcode": 81847, | ||
"street": "38986 Joanne Stravenue" | ||
"postcode": 12345, | ||
"street": "123 Any Street" | ||
}, | ||
{ | ||
"postcode": 91034, | ||
"street": "14987 Avenue 1" | ||
"postcode": 67890, | ||
"street": "100 Main Street" | ||
}, | ||
{ | ||
"postcode": 78495, | ||
"street": "34452 Avenue 10" | ||
"street": "111 Any Drive" | ||
} | ||
] | ||
} |
14 changes: 7 additions & 7 deletions
14
examples/data_masking/src/choosing_payload_list_slice_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
examples/data_masking/src/choosing_payload_multiple_keys.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "Lessa", | ||
"name": "Carlos", | ||
"operation": "non sensitive", | ||
"card_number": "1000 4444 333 2222", | ||
"card_number": "1111 2222 3333 4444", | ||
"address": { | ||
"postcode": 81847, | ||
"street": "38986 Joanne Stravenue" | ||
"postcode": 12345, | ||
"street": "123 Any Street" | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
examples/data_masking/src/choosing_payload_multiple_keys_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "Lessa", | ||
"name": "Carlos", | ||
"operation": "non sensitive", | ||
"card_number": "1000 4444 333 2222", | ||
"card_number": "1111 2222 3333 4444", | ||
"address": { | ||
"postcode": 81847 | ||
"postcode": 12345 | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
examples/data_masking/src/choosing_payload_nested_key_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.