Skip to content

Commit 533cc97

Browse files
author
AWS
committed
Amazon CloudFront Update: Introduced a new error (TooLongCSPInResponseHeadersPolicy) that is returned when the value of the Content-Security-Policy header in a response headers policy exceeds the maximum allowed length.
1 parent d213284 commit 533cc97

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon CloudFront",
4+
"contributor": "",
5+
"description": "Introduced a new error (TooLongCSPInResponseHeadersPolicy) that is returned when the value of the Content-Security-Policy header in a response headers policy exceeds the maximum allowed length."
6+
}

services/cloudfront/src/main/resources/codegen-resources/service-2.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@
402402
{"shape":"InvalidArgument"},
403403
{"shape":"ResponseHeadersPolicyAlreadyExists"},
404404
{"shape":"TooManyResponseHeadersPolicies"},
405-
{"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}
405+
{"shape":"TooManyCustomHeadersInResponseHeadersPolicy"},
406+
{"shape":"TooLongCSPInResponseHeadersPolicy"}
406407
],
407408
"documentation":"<p>Creates a response headers policy.</p> <p>A response headers policy contains information about a set of HTTP response headers and their values. To create a response headers policy, you provide some metadata about the policy, and a set of configurations that specify the response headers.</p> <p>After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it’s attached to a cache behavior, CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match the cache behavior.</p>"
408409
},
@@ -1686,7 +1687,8 @@
16861687
{"shape":"NoSuchResponseHeadersPolicy"},
16871688
{"shape":"PreconditionFailed"},
16881689
{"shape":"ResponseHeadersPolicyAlreadyExists"},
1689-
{"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}
1690+
{"shape":"TooManyCustomHeadersInResponseHeadersPolicy"},
1691+
{"shape":"TooLongCSPInResponseHeadersPolicy"}
16901692
],
16911693
"documentation":"<p>Updates a response headers policy.</p> <p>When you update a response headers policy, the entire policy is replaced. You cannot update some policy fields independent of others. To update a response headers policy configuration:</p> <ol> <li> <p>Use <code>GetResponseHeadersPolicyConfig</code> to get the current policy’s configuration.</p> </li> <li> <p>Modify the fields in the response headers policy configuration that you want to update.</p> </li> <li> <p>Call <code>UpdateResponseHeadersPolicy</code>, providing the entire response headers policy configuration, including the fields that you modified and those that you didn’t.</p> </li> </ol>"
16921694
},
@@ -8633,6 +8635,15 @@
86338635
},
86348636
"documentation":"<p>Contains the result of testing a CloudFront function with <code>TestFunction</code>.</p>"
86358637
},
8638+
"TooLongCSPInResponseHeadersPolicy":{
8639+
"type":"structure",
8640+
"members":{
8641+
"Message":{"shape":"string"}
8642+
},
8643+
"documentation":"<p>The length of the <code>Content-Security-Policy</code> header value in the response headers policy exceeds the maximum.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html\">Quotas</a> (formerly known as limits) in the <i>Amazon CloudFront Developer Guide</i>.</p>",
8644+
"error":{"httpStatusCode":400},
8645+
"exception":true
8646+
},
86368647
"TooManyCacheBehaviors":{
86378648
"type":"structure",
86388649
"members":{

0 commit comments

Comments
 (0)