You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to support the latest version of the Cloudfront API, this Construct will build a Lambda Layer including the latest version of `boto3`. This requires Docker to be running and will store the layer files in `./cdk.out/layers/cf_update_deps_layer`.
198
+
199
+
## Forcing updates with a nonce
200
+
201
+
In the event that it is desirable for the custom resource to run at every deployment, a `nonce` argument can be provided to the construct. This will trigger the redeployment of the `CustomResource` but not the Lambda or related IAM policies.
202
+
203
+
```python
204
+
from time import time
205
+
206
+
from constructs import Construct
207
+
from cdk_cloudfront_update.constructs import CloudfrontUpdate
208
+
209
+
210
+
classMyApi(Construct):
211
+
def__init__(
212
+
self,
213
+
scope: Construct,
214
+
id: str,
215
+
distribution_arn: str,
216
+
service_path_pattern: str,
217
+
load_balancer_dns_name: str,
218
+
**kwargs,
219
+
):
220
+
"""
221
+
Add MyAPI service to the Cloudfront Distribution at the
0 commit comments