Skip to content

Commit

Permalink
Update to latest models
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-python-automation committed Dec 30, 2022
1 parent eeb1ad4 commit c23c074
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/api-change-cloudfront-79722.json
@@ -0,0 +1,5 @@
{
"type": "api-change",
"category": "``cloudfront``",
"description": "Extend response headers policy to support removing headers from viewer responses"
}
5 changes: 5 additions & 0 deletions .changes/next-release/api-change-iotfleetwise-99040.json
@@ -0,0 +1,5 @@
{
"type": "api-change",
"category": "``iotfleetwise``",
"description": "Update documentation - correct the epoch constant value of default value for expiryTime field in CreateCampaign request."
}
62 changes: 55 additions & 7 deletions botocore/data/cloudfront/2020-05-31/service-2.json
Expand Up @@ -529,9 +529,10 @@
{"shape":"ResponseHeadersPolicyAlreadyExists"},
{"shape":"TooManyResponseHeadersPolicies"},
{"shape":"TooManyCustomHeadersInResponseHeadersPolicy"},
{"shape":"TooLongCSPInResponseHeadersPolicy"}
{"shape":"TooLongCSPInResponseHeadersPolicy"},
{"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"}
],
"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>"
"documentation":"<p>Creates a response headers policy.</p> <p>A response headers policy contains information about a set of HTTP headers. To create a response headers policy, you provide some metadata about the policy and a set of configurations that specify the 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, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html\">Adding or removing HTTP headers in CloudFront responses</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>"
},
"CreateStreamingDistribution":{
"name":"CreateStreamingDistribution2020_05_31",
Expand Down Expand Up @@ -2053,7 +2054,8 @@
{"shape":"PreconditionFailed"},
{"shape":"ResponseHeadersPolicyAlreadyExists"},
{"shape":"TooManyCustomHeadersInResponseHeadersPolicy"},
{"shape":"TooLongCSPInResponseHeadersPolicy"}
{"shape":"TooLongCSPInResponseHeadersPolicy"},
{"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"}
],
"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>"
},
Expand Down Expand Up @@ -3627,7 +3629,7 @@
"members":{
"ResponseHeadersPolicyConfig":{
"shape":"ResponseHeadersPolicyConfig",
"documentation":"<p>Contains metadata about the response headers policy, and a set of configurations that specify the response headers.</p>",
"documentation":"<p>Contains metadata about the response headers policy, and a set of configurations that specify the HTTP headers.</p>",
"locationName":"ResponseHeadersPolicyConfig",
"xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}
}
Expand Down Expand Up @@ -8734,10 +8736,10 @@
},
"ResponseHeadersPolicyConfig":{
"shape":"ResponseHeadersPolicyConfig",
"documentation":"<p>A response headers policy configuration.</p> <p>A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that's associated with the policy.</p>"
"documentation":"<p>A response headers policy configuration.</p>"
}
},
"documentation":"<p>A response headers policy.</p> <p>A response headers policy contains information about a set of HTTP response headers and their values.</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> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/adding-response-headers.html\">Adding HTTP headers to CloudFront responses</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>"
"documentation":"<p>A response headers policy.</p> <p>A response headers policy contains information about a set of HTTP 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, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html\">Adding or removing HTTP headers in CloudFront responses</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>"
},
"ResponseHeadersPolicyAccessControlAllowHeaders":{
"type":"structure",
Expand Down Expand Up @@ -8857,9 +8859,13 @@
"CustomHeadersConfig":{
"shape":"ResponseHeadersPolicyCustomHeadersConfig",
"documentation":"<p>A configuration for a set of custom HTTP response headers.</p>"
},
"RemoveHeadersConfig":{
"shape":"ResponseHeadersPolicyRemoveHeadersConfig",
"documentation":"<p>A configuration for a set of HTTP headers to remove from the HTTP response.</p>"
}
},
"documentation":"<p>A response headers policy configuration.</p> <p>A response headers policy configuration contains metadata about the response headers policy, and configurations for sets of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior associated with the policy.</p>"
"documentation":"<p>A response headers policy configuration.</p> <p>A response headers policy configuration contains metadata about the response headers policy, and configurations for sets of HTTP response headers.</p>"
},
"ResponseHeadersPolicyContentSecurityPolicy":{
"type":"structure",
Expand Down Expand Up @@ -9047,6 +9053,39 @@
},
"documentation":"<p>Determines whether CloudFront includes the <code>Referrer-Policy</code> HTTP response header and the header's value.</p> <p>For more information about the <code>Referrer-Policy</code> HTTP response header, see <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy\">Referrer-Policy</a> in the MDN Web Docs.</p>"
},
"ResponseHeadersPolicyRemoveHeader":{
"type":"structure",
"required":["Header"],
"members":{
"Header":{
"shape":"string",
"documentation":"<p>The HTTP header name.</p>"
}
},
"documentation":"<p>The name of an HTTP header that CloudFront removes from HTTP responses to requests that match the cache behavior that this response headers policy is attached to.</p>"
},
"ResponseHeadersPolicyRemoveHeaderList":{
"type":"list",
"member":{
"shape":"ResponseHeadersPolicyRemoveHeader",
"locationName":"ResponseHeadersPolicyRemoveHeader"
}
},
"ResponseHeadersPolicyRemoveHeadersConfig":{
"type":"structure",
"required":["Quantity"],
"members":{
"Quantity":{
"shape":"integer",
"documentation":"<p>The number of HTTP header names in the list.</p>"
},
"Items":{
"shape":"ResponseHeadersPolicyRemoveHeaderList",
"documentation":"<p>The list of HTTP header names.</p>"
}
},
"documentation":"<p>A list of HTTP header names that CloudFront removes from HTTP responses to requests that match the cache behavior that this response headers policy is attached to.</p>"
},
"ResponseHeadersPolicySecurityHeadersConfig":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -10177,6 +10216,15 @@
"error":{"httpStatusCode":400},
"exception":true
},
"TooManyRemoveHeadersInResponseHeadersPolicy":{
"type":"structure",
"members":{
"Message":{"shape":"string"}
},
"documentation":"<p>The number of headers in <code>RemoveHeadersConfig</code> 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>",
"error":{"httpStatusCode":400},
"exception":true
},
"TooManyResponseHeadersPolicies":{
"type":"structure",
"members":{
Expand Down
2 changes: 1 addition & 1 deletion botocore/data/iotfleetwise/2021-06-17/service-2.json
Expand Up @@ -1367,7 +1367,7 @@
},
"expiryTime":{
"shape":"timestamp",
"documentation":"<p> (Optional) The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time). Vehicle data won't be collected after the campaign expires. </p> <p>Default: 253402243200 (December 31, 9999, 00:00:00 UTC)</p>"
"documentation":"<p> (Optional) The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time). Vehicle data won't be collected after the campaign expires. </p> <p>Default: 253402214400 (December 31, 9999, 00:00:00 UTC)</p>"
},
"postTriggerCollectionDuration":{
"shape":"uint32",
Expand Down
22 changes: 11 additions & 11 deletions tests/functional/endpoint-rules/iotfleetwise/endpoint-tests-1.json
Expand Up @@ -8,8 +8,8 @@
}
},
"params": {
"Region": "eu-central-1",
"UseDualStack": true,
"Region": "eu-central-1",
"UseFIPS": true
}
},
Expand All @@ -21,8 +21,8 @@
}
},
"params": {
"Region": "eu-central-1",
"UseDualStack": false,
"Region": "eu-central-1",
"UseFIPS": true
}
},
Expand All @@ -34,8 +34,8 @@
}
},
"params": {
"Region": "eu-central-1",
"UseDualStack": true,
"Region": "eu-central-1",
"UseFIPS": false
}
},
Expand All @@ -47,8 +47,8 @@
}
},
"params": {
"Region": "eu-central-1",
"UseDualStack": false,
"Region": "eu-central-1",
"UseFIPS": false
}
},
Expand All @@ -60,8 +60,8 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": true,
"Region": "us-east-1",
"UseFIPS": true
}
},
Expand All @@ -73,8 +73,8 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": false,
"Region": "us-east-1",
"UseFIPS": true
}
},
Expand All @@ -86,8 +86,8 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": true,
"Region": "us-east-1",
"UseFIPS": false
}
},
Expand All @@ -99,8 +99,8 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": false,
"Region": "us-east-1",
"UseFIPS": false
}
},
Expand All @@ -112,8 +112,8 @@
}
},
"params": {
"Region": "us-east-1",
"UseDualStack": false,
"Region": "us-east-1",
"UseFIPS": false,
"Endpoint": "https://example.com"
}
Expand All @@ -124,8 +124,8 @@
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
},
"params": {
"Region": "us-east-1",
"UseDualStack": false,
"Region": "us-east-1",
"UseFIPS": true,
"Endpoint": "https://example.com"
}
Expand All @@ -136,8 +136,8 @@
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
},
"params": {
"Region": "us-east-1",
"UseDualStack": true,
"Region": "us-east-1",
"UseFIPS": false,
"Endpoint": "https://example.com"
}
Expand Down

0 comments on commit c23c074

Please sign in to comment.