Skip to content

Commit 5fc937a

Browse files
authored
Support passing in a nonce
1 parent 79742e8 commit 5fc937a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cdk_cloudfront_update/constructs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def __init__(
2626
distribution_arn: str,
2727
behavior_config: Optional[Dict] = None,
2828
origin_config: Optional[Dict] = None,
29+
nonce: str = '',
2930
lambda_execution_policy_statements: Sequence[iam.PolicyStatement] = [],
3031
**kwargs,
3132
) -> None:
@@ -89,6 +90,7 @@ def __init__(
8990
properties={
9091
"Id": distribution_id,
9192
"FunctionVersion": cf_update_lambda.current_version.version,
93+
"Nonce": nonce,
9294
"PolicyStatementHash": sha256(
9395
b"\n".join(
9496
[

0 commit comments

Comments
 (0)