Skip to content

Commit b92edbd

Browse files
committed
Update CloudFront signing for custom policy with new resourceUrlPattern property
https://issues.amazon.com/issues/P201194040
1 parent 8d354d4 commit b92edbd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

javav2/example_code/cloudfront/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>software.amazon.awssdk</groupId>
3737
<artifactId>bom</artifactId>
38-
<version>2.29.45</version>
38+
<version>2.30.31</version>
3939
<type>pom</type>
4040
<scope>import</scope>
4141
</dependency>

javav2/example_code/cloudfront/src/main/java/com/example/cloudfront/CreateCustomPolicyRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public static CustomSignerRequest createRequestForCustomPolicy(String distributi
3030

3131
return CustomSignerRequest.builder()
3232
.resourceUrl(cloudFrontUrl)
33+
// .resourceUrlPattern("https://*.example.com/*") // Optional.
3334
.privateKey(path)
3435
.keyPairId(publicKeyId)
3536
.expirationDate(expireDate)

0 commit comments

Comments
 (0)