diff --git a/CHANGELOG.md b/CHANGELOG.md index 5182638224..85c1b197db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +Release v1.44.171 (2022-12-30) +=== + +### Service Client Updates +* `service/cloudfront`: Updates service API and documentation + * Extend response headers policy to support removing headers from viewer responses +* `service/iotfleetwise`: Updates service documentation + Release v1.44.170 (2022-12-29) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 3b23804219..91cd9c7d42 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -38,7 +38,7 @@ const ( EuWest3RegionID = "eu-west-3" // Europe (Paris). MeCentral1RegionID = "me-central-1" // Middle East (UAE). MeSouth1RegionID = "me-south-1" // Middle East (Bahrain). - SaEast1RegionID = "sa-east-1" // South America (São Paulo). + SaEast1RegionID = "sa-east-1" // South America (Sao Paulo). UsEast1RegionID = "us-east-1" // US East (N. Virginia). UsEast2RegionID = "us-east-2" // US East (Ohio). UsWest1RegionID = "us-west-1" // US West (N. California). @@ -206,7 +206,7 @@ var awsPartition = partition{ Description: "Middle East (Bahrain)", }, "sa-east-1": region{ - Description: "South America (São Paulo)", + Description: "South America (Sao Paulo)", }, "us-east-1": region{ Description: "US East (N. Virginia)", @@ -13906,6 +13906,9 @@ var awsPartition = partition{ }, "kendra": service{ Endpoints: serviceEndpoints{ + endpointKey{ + Region: "ap-south-1", + }: endpoint{}, endpointKey{ Region: "ap-southeast-1", }: endpoint{}, @@ -33216,6 +33219,9 @@ var awsusgovPartition = partition{ endpointKey{ Region: "us-gov-east-1", }: endpoint{}, + endpointKey{ + Region: "us-gov-west-1", + }: endpoint{}, }, }, "pinpoint": service{ diff --git a/aws/version.go b/aws/version.go index b083f1b91d..033c782273 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.170" +const SDKVersion = "1.44.171" diff --git a/models/apis/cloudfront/2020-05-31/api-2.json b/models/apis/cloudfront/2020-05-31/api-2.json index d3709cb6e5..9063739183 100644 --- a/models/apis/cloudfront/2020-05-31/api-2.json +++ b/models/apis/cloudfront/2020-05-31/api-2.json @@ -512,7 +512,8 @@ {"shape":"ResponseHeadersPolicyAlreadyExists"}, {"shape":"TooManyResponseHeadersPolicies"}, {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}, - {"shape":"TooLongCSPInResponseHeadersPolicy"} + {"shape":"TooLongCSPInResponseHeadersPolicy"}, + {"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"} ] }, "CreateStreamingDistribution":{ @@ -1949,7 +1950,8 @@ {"shape":"PreconditionFailed"}, {"shape":"ResponseHeadersPolicyAlreadyExists"}, {"shape":"TooManyCustomHeadersInResponseHeadersPolicy"}, - {"shape":"TooLongCSPInResponseHeadersPolicy"} + {"shape":"TooLongCSPInResponseHeadersPolicy"}, + {"shape":"TooManyRemoveHeadersInResponseHeadersPolicy"} ] }, "UpdateStreamingDistribution":{ @@ -6793,7 +6795,8 @@ "CorsConfig":{"shape":"ResponseHeadersPolicyCorsConfig"}, "SecurityHeadersConfig":{"shape":"ResponseHeadersPolicySecurityHeadersConfig"}, "ServerTimingHeadersConfig":{"shape":"ResponseHeadersPolicyServerTimingHeadersConfig"}, - "CustomHeadersConfig":{"shape":"ResponseHeadersPolicyCustomHeadersConfig"} + "CustomHeadersConfig":{"shape":"ResponseHeadersPolicyCustomHeadersConfig"}, + "RemoveHeadersConfig":{"shape":"ResponseHeadersPolicyRemoveHeadersConfig"} } }, "ResponseHeadersPolicyContentSecurityPolicy":{ @@ -6904,6 +6907,28 @@ "ReferrerPolicy":{"shape":"ReferrerPolicyList"} } }, + "ResponseHeadersPolicyRemoveHeader":{ + "type":"structure", + "required":["Header"], + "members":{ + "Header":{"shape":"string"} + } + }, + "ResponseHeadersPolicyRemoveHeaderList":{ + "type":"list", + "member":{ + "shape":"ResponseHeadersPolicyRemoveHeader", + "locationName":"ResponseHeadersPolicyRemoveHeader" + } + }, + "ResponseHeadersPolicyRemoveHeadersConfig":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"ResponseHeadersPolicyRemoveHeaderList"} + } + }, "ResponseHeadersPolicySecurityHeadersConfig":{ "type":"structure", "members":{ @@ -7717,6 +7742,14 @@ "error":{"httpStatusCode":400}, "exception":true }, + "TooManyRemoveHeadersInResponseHeadersPolicy":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, "TooManyResponseHeadersPolicies":{ "type":"structure", "members":{ diff --git a/models/apis/cloudfront/2020-05-31/docs-2.json b/models/apis/cloudfront/2020-05-31/docs-2.json index 0cd6921df6..4d75d6afcd 100644 --- a/models/apis/cloudfront/2020-05-31/docs-2.json +++ b/models/apis/cloudfront/2020-05-31/docs-2.json @@ -19,7 +19,7 @@ "CreateOriginRequestPolicy": "

Creates an origin request policy.

After you create an origin request policy, you can attach it to one or more cache behaviors. When it's attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:

CloudFront sends a request when it can't find a valid object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy.

For more information about origin request policies, see Controlling origin requests in the Amazon CloudFront Developer Guide.

", "CreatePublicKey": "

Uploads a public key to CloudFront that you can use with signed URLs and signed cookies, or with field-level encryption.

", "CreateRealtimeLogConfig": "

Creates a real-time log configuration.

After you create a real-time log configuration, you can attach it to one or more cache behaviors to send real-time log data to the specified Amazon Kinesis data stream.

For more information about real-time log configurations, see Real-time logs in the Amazon CloudFront Developer Guide.

", - "CreateResponseHeadersPolicy": "

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.

", + "CreateResponseHeadersPolicy": "

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": "

This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.

", "CreateStreamingDistributionWithTags": "

This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.

", "DeleteCachePolicy": "

Deletes a cache policy.

You cannot delete a cache policy if it's attached to a cache behavior. First update your distributions to remove the cache policy from all cache behaviors, then delete the cache policy.

To delete a cache policy, you must provide the policy's identifier and version. To get these values, you can use ListCachePolicies or GetCachePolicy.

", @@ -2637,7 +2637,7 @@ } }, "ResponseHeadersPolicy": { - "base": "

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.

", + "base": "

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.

", "refs": { "CreateResponseHeadersPolicyResult$ResponseHeadersPolicy": "

Contains a response headers policy.

", "GetResponseHeadersPolicyResult$ResponseHeadersPolicy": "

Contains a response headers policy.

", @@ -2681,11 +2681,11 @@ } }, "ResponseHeadersPolicyConfig": { - "base": "

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.

", + "base": "

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.

", "refs": { - "CreateResponseHeadersPolicyRequest$ResponseHeadersPolicyConfig": "

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

", + "CreateResponseHeadersPolicyRequest$ResponseHeadersPolicyConfig": "

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

", "GetResponseHeadersPolicyConfigResult$ResponseHeadersPolicyConfig": "

Contains a response headers policy.

", - "ResponseHeadersPolicy$ResponseHeadersPolicyConfig": "

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.

", + "ResponseHeadersPolicy$ResponseHeadersPolicyConfig": "

A response headers policy configuration.

", "UpdateResponseHeadersPolicyRequest$ResponseHeadersPolicyConfig": "

A response headers policy configuration.

" } }, @@ -2748,6 +2748,24 @@ "ResponseHeadersPolicySecurityHeadersConfig$ReferrerPolicy": "

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": { + "base": "

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.

", + "refs": { + "ResponseHeadersPolicyRemoveHeaderList$member": null + } + }, + "ResponseHeadersPolicyRemoveHeaderList": { + "base": null, + "refs": { + "ResponseHeadersPolicyRemoveHeadersConfig$Items": "

The list of HTTP header names.

" + } + }, + "ResponseHeadersPolicyRemoveHeadersConfig": { + "base": "

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.

", + "refs": { + "ResponseHeadersPolicyConfig$RemoveHeadersConfig": "

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

" + } + }, "ResponseHeadersPolicySecurityHeadersConfig": { "base": "

A configuration for a set of security-related HTTP response headers. CloudFront adds these headers to HTTP responses that it sends for requests that match a cache behavior associated with this response headers policy.

", "refs": { @@ -3248,6 +3266,11 @@ "refs": { } }, + "TooManyRemoveHeadersInResponseHeadersPolicy": { + "base": "

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.

", + "refs": { + } + }, "TooManyResponseHeadersPolicies": { "base": "

You have reached the maximum number of response headers policies for this Amazon Web Services account.

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

", "refs": { @@ -3626,6 +3649,7 @@ "ResponseHeadersPolicyCustomHeadersConfig$Quantity": "

The number of HTTP response headers in the list.

", "ResponseHeadersPolicyList$MaxItems": "

The maximum number of response headers policies requested.

", "ResponseHeadersPolicyList$Quantity": "

The number of response headers policies returned.

", + "ResponseHeadersPolicyRemoveHeadersConfig$Quantity": "

The number of HTTP header names in the list.

", "ResponseHeadersPolicyStrictTransportSecurity$AccessControlMaxAgeSec": "

A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.

", "SessionStickinessConfig$IdleTTL": "

The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).

The value must be less than or equal to MaximumTTL.

", "SessionStickinessConfig$MaximumTTL": "

The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).

The value must be less than or equal to IdleTTL.

", @@ -4092,6 +4116,7 @@ "ResponseHeadersPolicyCustomHeader$Value": "

The value for the HTTP response header.

", "ResponseHeadersPolicyInUse$Message": null, "ResponseHeadersPolicyList$NextMarker": "

If there are more items in the list than are in this response, this element is present. It contains the value that you should use in the Marker field of a subsequent request to continue listing response headers policies where you left off.

", + "ResponseHeadersPolicyRemoveHeader$Header": "

The HTTP header name.

", "ResponseHeadersPolicyXSSProtection$ReportUri": "

A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

You cannot specify a ReportUri when ModeBlock is true.

For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

", "S3Origin$DomainName": "

The DNS name of the Amazon S3 origin.

", "S3Origin$OriginAccessIdentity": "

The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.

If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.

To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.

To replace the origin access identity, update the distribution configuration and specify the new origin access identity.

For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.

", @@ -4167,6 +4192,7 @@ "TooManyQueryStringsInCachePolicy$Message": null, "TooManyQueryStringsInOriginRequestPolicy$Message": null, "TooManyRealtimeLogConfigs$Message": null, + "TooManyRemoveHeadersInResponseHeadersPolicy$Message": null, "TooManyResponseHeadersPolicies$Message": null, "TooManyStreamingDistributionCNAMEs$Message": null, "TooManyStreamingDistributions$Message": null, diff --git a/models/apis/iotfleetwise/2021-06-17/docs-2.json b/models/apis/iotfleetwise/2021-06-17/docs-2.json index aaf94f78ca..e684d4448c 100644 --- a/models/apis/iotfleetwise/2021-06-17/docs-2.json +++ b/models/apis/iotfleetwise/2021-06-17/docs-2.json @@ -1728,7 +1728,7 @@ "CampaignSummary$creationTime": "

The time the campaign was created.

", "CampaignSummary$lastModificationTime": "

The last time the campaign was modified.

", "CreateCampaignRequest$startTime": "

(Optional) The time, in milliseconds, to deliver a campaign after it was approved. If it's not specified, 0 is used.

Default: 0

", - "CreateCampaignRequest$expiryTime": "

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

", + "CreateCampaignRequest$expiryTime": "

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

", "DecoderManifestSummary$creationTime": "

The time the decoder manifest was created in seconds since epoch (January 1, 1970 at midnight UTC time).

", "DecoderManifestSummary$lastModificationTime": "

The time the decoder manifest was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).

", "FleetSummary$creationTime": "

The time the fleet was created, in seconds since epoch (January 1, 1970 at midnight UTC time).

", diff --git a/models/apis/iotfleetwise/2021-06-17/endpoint-tests-1.json b/models/apis/iotfleetwise/2021-06-17/endpoint-tests-1.json index b14ba63a96..5f88f82e30 100644 --- a/models/apis/iotfleetwise/2021-06-17/endpoint-tests-1.json +++ b/models/apis/iotfleetwise/2021-06-17/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" } diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 987f9000fc..ecadccefa3 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -87,7 +87,7 @@ "description" : "Middle East (Bahrain)" }, "sa-east-1" : { - "description" : "South America (São Paulo)" + "description" : "South America (Sao Paulo)" }, "us-east-1" : { "description" : "US East (N. Virginia)" @@ -8088,6 +8088,7 @@ }, "kendra" : { "endpoints" : { + "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, "ca-central-1" : { }, @@ -20000,7 +20001,8 @@ }, "pi" : { "endpoints" : { - "us-gov-east-1" : { } + "us-gov-east-1" : { }, + "us-gov-west-1" : { } } }, "pinpoint" : { diff --git a/service/cloudfront/api.go b/service/cloudfront/api.go index b0b0242b38..cb5722d174 100644 --- a/service/cloudfront/api.go +++ b/service/cloudfront/api.go @@ -2462,15 +2462,20 @@ func (c *CloudFront) CreateResponseHeadersPolicyRequest(input *CreateResponseHea // // 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. +// 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, CloudFront adds the headers in the policy to -// HTTP responses that it sends for requests that match the cache behavior. +// 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 +// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html) +// in the Amazon CloudFront Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2514,6 +2519,13 @@ func (c *CloudFront) CreateResponseHeadersPolicyRequest(input *CreateResponseHea // For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) // (formerly known as limits) in the Amazon CloudFront Developer Guide. // +// - ErrCodeTooManyRemoveHeadersInResponseHeadersPolicy "TooManyRemoveHeadersInResponseHeadersPolicy" +// The number of headers in RemoveHeadersConfig in the response headers policy +// exceeds the maximum. +// +// For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy func (c *CloudFront) CreateResponseHeadersPolicy(input *CreateResponseHeadersPolicyInput) (*CreateResponseHeadersPolicyOutput, error) { req, out := c.CreateResponseHeadersPolicyRequest(input) @@ -11286,6 +11298,13 @@ func (c *CloudFront) UpdateResponseHeadersPolicyRequest(input *UpdateResponseHea // For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) // (formerly known as limits) in the Amazon CloudFront Developer Guide. // +// - ErrCodeTooManyRemoveHeadersInResponseHeadersPolicy "TooManyRemoveHeadersInResponseHeadersPolicy" +// The number of headers in RemoveHeadersConfig in the response headers policy +// exceeds the maximum. +// +// For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy func (c *CloudFront) UpdateResponseHeadersPolicy(input *UpdateResponseHeadersPolicyInput) (*UpdateResponseHeadersPolicyOutput, error) { req, out := c.UpdateResponseHeadersPolicyRequest(input) @@ -15616,7 +15635,7 @@ type CreateResponseHeadersPolicyInput struct { _ struct{} `locationName:"CreateResponseHeadersPolicyRequest" type:"structure" payload:"ResponseHeadersPolicyConfig"` // Contains metadata about the response headers policy, and a set of configurations - // that specify the response headers. + // that specify the HTTP headers. // // ResponseHeadersPolicyConfig is a required field ResponseHeadersPolicyConfig *ResponseHeadersPolicyConfig `locationName:"ResponseHeadersPolicyConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2020-05-31/"` @@ -29472,14 +29491,17 @@ func (s *RealtimeMetricsSubscriptionConfig) SetRealtimeMetricsSubscriptionStatus // A response headers policy. // // A response headers policy contains information about a set of HTTP response -// headers and their values. +// 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. +// 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 HTTP headers to CloudFront responses (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/adding-response-headers.html) +// For more information, see Adding or removing HTTP headers in CloudFront responses +// (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html) // in the Amazon CloudFront Developer Guide. type ResponseHeadersPolicy struct { _ struct{} `type:"structure"` @@ -29496,11 +29518,6 @@ type ResponseHeadersPolicy struct { // 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. - // // ResponseHeadersPolicyConfig is a required field ResponseHeadersPolicyConfig *ResponseHeadersPolicyConfig `type:"structure" required:"true"` } @@ -29821,10 +29838,7 @@ func (s *ResponseHeadersPolicyAccessControlExposeHeaders) SetQuantity(v int64) * // 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. +// headers policy, and configurations for sets of HTTP response headers. type ResponseHeadersPolicyConfig struct { _ struct{} `type:"structure"` @@ -29848,6 +29862,9 @@ type ResponseHeadersPolicyConfig struct { // Name is a required field Name *string `type:"string" required:"true"` + // A configuration for a set of HTTP headers to remove from the HTTP response. + RemoveHeadersConfig *ResponseHeadersPolicyRemoveHeadersConfig `type:"structure"` + // A configuration for a set of security-related HTTP response headers. SecurityHeadersConfig *ResponseHeadersPolicySecurityHeadersConfig `type:"structure"` @@ -29890,6 +29907,11 @@ func (s *ResponseHeadersPolicyConfig) Validate() error { invalidParams.AddNested("CustomHeadersConfig", err.(request.ErrInvalidParams)) } } + if s.RemoveHeadersConfig != nil { + if err := s.RemoveHeadersConfig.Validate(); err != nil { + invalidParams.AddNested("RemoveHeadersConfig", err.(request.ErrInvalidParams)) + } + } if s.SecurityHeadersConfig != nil { if err := s.SecurityHeadersConfig.Validate(); err != nil { invalidParams.AddNested("SecurityHeadersConfig", err.(request.ErrInvalidParams)) @@ -29931,6 +29953,12 @@ func (s *ResponseHeadersPolicyConfig) SetName(v string) *ResponseHeadersPolicyCo return s } +// SetRemoveHeadersConfig sets the RemoveHeadersConfig field's value. +func (s *ResponseHeadersPolicyConfig) SetRemoveHeadersConfig(v *ResponseHeadersPolicyRemoveHeadersConfig) *ResponseHeadersPolicyConfig { + s.RemoveHeadersConfig = v + return s +} + // SetSecurityHeadersConfig sets the SecurityHeadersConfig field's value. func (s *ResponseHeadersPolicyConfig) SetSecurityHeadersConfig(v *ResponseHeadersPolicySecurityHeadersConfig) *ResponseHeadersPolicyConfig { s.SecurityHeadersConfig = v @@ -30616,6 +30644,123 @@ func (s *ResponseHeadersPolicyReferrerPolicy) SetReferrerPolicy(v string) *Respo return s } +// 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. +type ResponseHeadersPolicyRemoveHeader struct { + _ struct{} `type:"structure"` + + // The HTTP header name. + // + // Header is a required field + Header *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResponseHeadersPolicyRemoveHeader) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResponseHeadersPolicyRemoveHeader) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResponseHeadersPolicyRemoveHeader) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResponseHeadersPolicyRemoveHeader"} + if s.Header == nil { + invalidParams.Add(request.NewErrParamRequired("Header")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHeader sets the Header field's value. +func (s *ResponseHeadersPolicyRemoveHeader) SetHeader(v string) *ResponseHeadersPolicyRemoveHeader { + s.Header = &v + return s +} + +// 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. +type ResponseHeadersPolicyRemoveHeadersConfig struct { + _ struct{} `type:"structure"` + + // The list of HTTP header names. + Items []*ResponseHeadersPolicyRemoveHeader `locationNameList:"ResponseHeadersPolicyRemoveHeader" type:"list"` + + // The number of HTTP header names in the list. + // + // Quantity is a required field + Quantity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResponseHeadersPolicyRemoveHeadersConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResponseHeadersPolicyRemoveHeadersConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResponseHeadersPolicyRemoveHeadersConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResponseHeadersPolicyRemoveHeadersConfig"} + if s.Quantity == nil { + invalidParams.Add(request.NewErrParamRequired("Quantity")) + } + if s.Items != nil { + for i, v := range s.Items { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Items", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetItems sets the Items field's value. +func (s *ResponseHeadersPolicyRemoveHeadersConfig) SetItems(v []*ResponseHeadersPolicyRemoveHeader) *ResponseHeadersPolicyRemoveHeadersConfig { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *ResponseHeadersPolicyRemoveHeadersConfig) SetQuantity(v int64) *ResponseHeadersPolicyRemoveHeadersConfig { + s.Quantity = &v + return s +} + // A configuration for a set of security-related HTTP response headers. CloudFront // adds these headers to HTTP responses that it sends for requests that match // a cache behavior associated with this response headers policy. diff --git a/service/cloudfront/errors.go b/service/cloudfront/errors.go index a623832a29..31419dddd5 100644 --- a/service/cloudfront/errors.go +++ b/service/cloudfront/errors.go @@ -928,6 +928,16 @@ const ( // (formerly known as limits) in the Amazon CloudFront Developer Guide. ErrCodeTooManyRealtimeLogConfigs = "TooManyRealtimeLogConfigs" + // ErrCodeTooManyRemoveHeadersInResponseHeadersPolicy for service response error code + // "TooManyRemoveHeadersInResponseHeadersPolicy". + // + // The number of headers in RemoveHeadersConfig in the response headers policy + // exceeds the maximum. + // + // For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) + // (formerly known as limits) in the Amazon CloudFront Developer Guide. + ErrCodeTooManyRemoveHeadersInResponseHeadersPolicy = "TooManyRemoveHeadersInResponseHeadersPolicy" + // ErrCodeTooManyResponseHeadersPolicies for service response error code // "TooManyResponseHeadersPolicies". // diff --git a/service/iotfleetwise/api.go b/service/iotfleetwise/api.go index 6ff7c013c8..c1c594410e 100644 --- a/service/iotfleetwise/api.go +++ b/service/iotfleetwise/api.go @@ -7010,7 +7010,7 @@ type CreateCampaignInput struct { // 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) + // Default: 253402214400 (December 31, 9999, 00:00:00 UTC) ExpiryTime *time.Time `locationName:"expiryTime" type:"timestamp"` // The name of the campaign to create.