diff --git a/cdk_cloudfront_update/constructs.py b/cdk_cloudfront_update/constructs.py index 6d804e5..a4c6b87 100644 --- a/cdk_cloudfront_update/constructs.py +++ b/cdk_cloudfront_update/constructs.py @@ -26,6 +26,7 @@ def __init__( distribution_arn: str, behavior_config: Optional[Dict] = None, origin_config: Optional[Dict] = None, + nonce: str = '', lambda_execution_policy_statements: Sequence[iam.PolicyStatement] = [], **kwargs, ) -> None: @@ -89,6 +90,7 @@ def __init__( properties={ "Id": distribution_id, "FunctionVersion": cf_update_lambda.current_version.version, + "Nonce": nonce, "PolicyStatementHash": sha256( b"\n".join( [