|
402 | 402 | {"shape":"InvalidArgument"},
|
403 | 403 | {"shape":"ResponseHeadersPolicyAlreadyExists"},
|
404 | 404 | {"shape":"TooManyResponseHeadersPolicies"},
|
405 |
| - {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"} |
| 405 | + {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}, |
| 406 | + {"shape":"TooLongCSPInResponseHeadersPolicy"} |
406 | 407 | ],
|
407 | 408 | "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>"
|
408 | 409 | },
|
|
1686 | 1687 | {"shape":"NoSuchResponseHeadersPolicy"},
|
1687 | 1688 | {"shape":"PreconditionFailed"},
|
1688 | 1689 | {"shape":"ResponseHeadersPolicyAlreadyExists"},
|
1689 |
| - {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"} |
| 1690 | + {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}, |
| 1691 | + {"shape":"TooLongCSPInResponseHeadersPolicy"} |
1690 | 1692 | ],
|
1691 | 1693 | "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>"
|
1692 | 1694 | },
|
|
8633 | 8635 | },
|
8634 | 8636 | "documentation":"<p>Contains the result of testing a CloudFront function with <code>TestFunction</code>.</p>"
|
8635 | 8637 | },
|
| 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 | + }, |
8636 | 8647 | "TooManyCacheBehaviors":{
|
8637 | 8648 | "type":"structure",
|
8638 | 8649 | "members":{
|
|
0 commit comments