From c23c074d82f6c79a6dfb7ac225f16515fc3c3d9c Mon Sep 17 00:00:00 2001 From: aws-sdk-python-automation Date: Fri, 30 Dec 2022 19:08:43 +0000 Subject: [PATCH] Update to latest models --- .../api-change-cloudfront-79722.json | 5 ++ .../api-change-iotfleetwise-99040.json | 5 ++ .../data/cloudfront/2020-05-31/service-2.json | 62 ++++++++++++++++--- .../iotfleetwise/2021-06-17/service-2.json | 2 +- .../iotfleetwise/endpoint-tests-1.json | 22 +++---- 5 files changed, 77 insertions(+), 19 deletions(-) create mode 100644 .changes/next-release/api-change-cloudfront-79722.json create mode 100644 .changes/next-release/api-change-iotfleetwise-99040.json diff --git a/.changes/next-release/api-change-cloudfront-79722.json b/.changes/next-release/api-change-cloudfront-79722.json new file mode 100644 index 0000000000..970e7b879e --- /dev/null +++ b/.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" +} diff --git a/.changes/next-release/api-change-iotfleetwise-99040.json b/.changes/next-release/api-change-iotfleetwise-99040.json new file mode 100644 index 0000000000..2dbf892f59 --- /dev/null +++ b/.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." +} diff --git a/botocore/data/cloudfront/2020-05-31/service-2.json b/botocore/data/cloudfront/2020-05-31/service-2.json index 04ef05864f..d94b69e10b 100644 --- a/botocore/data/cloudfront/2020-05-31/service-2.json +++ b/botocore/data/cloudfront/2020-05-31/service-2.json @@ -529,9 +529,10 @@ {"shape":"ResponseHeadersPolicyAlreadyExists"}, {"shape":"TooManyResponseHeadersPolicies"}, {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}, - {"shape":"TooLongCSPInResponseHeadersPolicy"} + {"shape":"TooLongCSPInResponseHeadersPolicy"}, + {"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"} ], - "documentation":"

Creates a response headers policy.

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.

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.

" + "documentation":"

Creates a response headers policy.

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.

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.

For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.

" }, "CreateStreamingDistribution":{ "name":"CreateStreamingDistribution2020_05_31", @@ -2053,7 +2054,8 @@ {"shape":"PreconditionFailed"}, {"shape":"ResponseHeadersPolicyAlreadyExists"}, {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}, - {"shape":"TooLongCSPInResponseHeadersPolicy"} + {"shape":"TooLongCSPInResponseHeadersPolicy"}, + {"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"} ], "documentation":"

Updates a response headers policy.

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:

  1. Use GetResponseHeadersPolicyConfig to get the current policy's configuration.

  2. Modify the fields in the response headers policy configuration that you want to update.

  3. Call UpdateResponseHeadersPolicy, providing the entire response headers policy configuration, including the fields that you modified and those that you didn't.

" }, @@ -3627,7 +3629,7 @@ "members":{ "ResponseHeadersPolicyConfig":{ "shape":"ResponseHeadersPolicyConfig", - "documentation":"

Contains metadata about the response headers policy, and a set of configurations that specify the response headers.

", + "documentation":"

Contains metadata about the response headers policy, and a set of configurations that specify the HTTP headers.

", "locationName":"ResponseHeadersPolicyConfig", "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"} } @@ -8734,10 +8736,10 @@ }, "ResponseHeadersPolicyConfig":{ "shape":"ResponseHeadersPolicyConfig", - "documentation":"

A response headers policy configuration.

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.

" + "documentation":"

A response headers policy configuration.

" } }, - "documentation":"

A response headers policy.

A response headers policy contains information about a set of HTTP response headers and their values.

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.

For more information, see Adding HTTP headers to CloudFront responses in the Amazon CloudFront Developer Guide.

" + "documentation":"

A response headers policy.

A response headers policy contains information about a set of HTTP response headers.

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.

For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.

" }, "ResponseHeadersPolicyAccessControlAllowHeaders":{ "type":"structure", @@ -8857,9 +8859,13 @@ "CustomHeadersConfig":{ "shape":"ResponseHeadersPolicyCustomHeadersConfig", "documentation":"

A configuration for a set of custom HTTP response headers.

" + }, + "RemoveHeadersConfig":{ + "shape":"ResponseHeadersPolicyRemoveHeadersConfig", + "documentation":"

A configuration for a set of HTTP headers to remove from the HTTP response.

" } }, - "documentation":"

A response headers policy configuration.

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.

" + "documentation":"

A response headers policy configuration.

A response headers policy configuration contains metadata about the response headers policy, and configurations for sets of HTTP response headers.

" }, "ResponseHeadersPolicyContentSecurityPolicy":{ "type":"structure", @@ -9047,6 +9053,39 @@ }, "documentation":"

Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header's value.

For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web Docs.

" }, + "ResponseHeadersPolicyRemoveHeader":{ + "type":"structure", + "required":["Header"], + "members":{ + "Header":{ + "shape":"string", + "documentation":"

The HTTP header name.

" + } + }, + "documentation":"

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.

" + }, + "ResponseHeadersPolicyRemoveHeaderList":{ + "type":"list", + "member":{ + "shape":"ResponseHeadersPolicyRemoveHeader", + "locationName":"ResponseHeadersPolicyRemoveHeader" + } + }, + "ResponseHeadersPolicyRemoveHeadersConfig":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{ + "shape":"integer", + "documentation":"

The number of HTTP header names in the list.

" + }, + "Items":{ + "shape":"ResponseHeadersPolicyRemoveHeaderList", + "documentation":"

The list of HTTP header names.

" + } + }, + "documentation":"

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.

" + }, "ResponseHeadersPolicySecurityHeadersConfig":{ "type":"structure", "members":{ @@ -10177,6 +10216,15 @@ "error":{"httpStatusCode":400}, "exception":true }, + "TooManyRemoveHeadersInResponseHeadersPolicy":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "documentation":"

The number of headers in RemoveHeadersConfig in the response headers policy exceeds the maximum.

For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

", + "error":{"httpStatusCode":400}, + "exception":true + }, "TooManyResponseHeadersPolicies":{ "type":"structure", "members":{ diff --git a/botocore/data/iotfleetwise/2021-06-17/service-2.json b/botocore/data/iotfleetwise/2021-06-17/service-2.json index 389a8a7049..c1bf7a9811 100644 --- a/botocore/data/iotfleetwise/2021-06-17/service-2.json +++ b/botocore/data/iotfleetwise/2021-06-17/service-2.json @@ -1367,7 +1367,7 @@ }, "expiryTime":{ "shape":"timestamp", - "documentation":"

(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.

Default: 253402243200 (December 31, 9999, 00:00:00 UTC)

" + "documentation":"

(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.

Default: 253402214400 (December 31, 9999, 00:00:00 UTC)

" }, "postTriggerCollectionDuration":{ "shape":"uint32", diff --git a/tests/functional/endpoint-rules/iotfleetwise/endpoint-tests-1.json b/tests/functional/endpoint-rules/iotfleetwise/endpoint-tests-1.json index b14ba63a96..5f88f82e30 100644 --- a/tests/functional/endpoint-rules/iotfleetwise/endpoint-tests-1.json +++ b/tests/functional/endpoint-rules/iotfleetwise/endpoint-tests-1.json @@ -8,8 +8,8 @@ } }, "params": { - "Region": "eu-central-1", "UseDualStack": true, + "Region": "eu-central-1", "UseFIPS": true } }, @@ -21,8 +21,8 @@ } }, "params": { - "Region": "eu-central-1", "UseDualStack": false, + "Region": "eu-central-1", "UseFIPS": true } }, @@ -34,8 +34,8 @@ } }, "params": { - "Region": "eu-central-1", "UseDualStack": true, + "Region": "eu-central-1", "UseFIPS": false } }, @@ -47,8 +47,8 @@ } }, "params": { - "Region": "eu-central-1", "UseDualStack": false, + "Region": "eu-central-1", "UseFIPS": false } }, @@ -60,8 +60,8 @@ } }, "params": { - "Region": "us-east-1", "UseDualStack": true, + "Region": "us-east-1", "UseFIPS": true } }, @@ -73,8 +73,8 @@ } }, "params": { - "Region": "us-east-1", "UseDualStack": false, + "Region": "us-east-1", "UseFIPS": true } }, @@ -86,8 +86,8 @@ } }, "params": { - "Region": "us-east-1", "UseDualStack": true, + "Region": "us-east-1", "UseFIPS": false } }, @@ -99,8 +99,8 @@ } }, "params": { - "Region": "us-east-1", "UseDualStack": false, + "Region": "us-east-1", "UseFIPS": false } }, @@ -112,8 +112,8 @@ } }, "params": { - "Region": "us-east-1", "UseDualStack": false, + "Region": "us-east-1", "UseFIPS": false, "Endpoint": "https://example.com" } @@ -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" } @@ -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" }