Skip to content

Commit 4d7185a

Browse files
author
aws-sdk-cpp-automation
committed
This release adds support for Lightsail load balancer HTTP to HTTPS redirect and TLS policy configuration.
Adds new APIs for IVS Chat, a feature for building interactive chat experiences alongside an IVS broadcast. This release adds documentation for the APIs to create, read, delete, list, and batch read of AWS Glue custom patterns, and for Lake Formation configuration settings in the AWS Glue crawler. Documentation updates for Price List API SageMaker Inference Recommender now accepts customer KMS key ID for encryption of endpoints and compilation outputs created during inference recommendation. CloudFront now supports the Server-Timing header in HTTP responses sent from CloudFront. You can use this header to view metrics that help you gain insights about the behavior and performance of CloudFront. To use this header, enable it in a response headers policy. AWS Network Firewall now enables customers to use a customer managed AWS KMS key for the encryption of their firewall resources.
1 parent ed04abb commit 4d7185a

File tree

195 files changed

+16333
-1121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+16333
-1121
lines changed

aws-cpp-sdk-cloudfront/include/aws/cloudfront/model/ResponseHeadersPolicyConfig.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <aws/cloudfront/model/ResponseHeadersPolicyCorsConfig.h>
1010
#include <aws/cloudfront/model/ResponseHeadersPolicySecurityHeadersConfig.h>
1111
#include <aws/cloudfront/model/ResponseHeadersPolicyCustomHeadersConfig.h>
12+
#include <aws/cloudfront/model/ResponseHeadersPolicyServerTimingHeadersConfig.h>
1213
#include <utility>
1314

1415
namespace Aws
@@ -240,6 +241,43 @@ namespace Model
240241
*/
241242
inline ResponseHeadersPolicyConfig& WithCustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig&& value) { SetCustomHeadersConfig(std::move(value)); return *this;}
242243

244+
245+
/**
246+
* <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP
247+
* responses sent from CloudFront.</p>
248+
*/
249+
inline const ResponseHeadersPolicyServerTimingHeadersConfig& GetServerTimingHeadersConfig() const{ return m_serverTimingHeadersConfig; }
250+
251+
/**
252+
* <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP
253+
* responses sent from CloudFront.</p>
254+
*/
255+
inline bool ServerTimingHeadersConfigHasBeenSet() const { return m_serverTimingHeadersConfigHasBeenSet; }
256+
257+
/**
258+
* <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP
259+
* responses sent from CloudFront.</p>
260+
*/
261+
inline void SetServerTimingHeadersConfig(const ResponseHeadersPolicyServerTimingHeadersConfig& value) { m_serverTimingHeadersConfigHasBeenSet = true; m_serverTimingHeadersConfig = value; }
262+
263+
/**
264+
* <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP
265+
* responses sent from CloudFront.</p>
266+
*/
267+
inline void SetServerTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfig&& value) { m_serverTimingHeadersConfigHasBeenSet = true; m_serverTimingHeadersConfig = std::move(value); }
268+
269+
/**
270+
* <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP
271+
* responses sent from CloudFront.</p>
272+
*/
273+
inline ResponseHeadersPolicyConfig& WithServerTimingHeadersConfig(const ResponseHeadersPolicyServerTimingHeadersConfig& value) { SetServerTimingHeadersConfig(value); return *this;}
274+
275+
/**
276+
* <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP
277+
* responses sent from CloudFront.</p>
278+
*/
279+
inline ResponseHeadersPolicyConfig& WithServerTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfig&& value) { SetServerTimingHeadersConfig(std::move(value)); return *this;}
280+
243281
private:
244282

245283
Aws::String m_comment;
@@ -256,6 +294,9 @@ namespace Model
256294

257295
ResponseHeadersPolicyCustomHeadersConfig m_customHeadersConfig;
258296
bool m_customHeadersConfigHasBeenSet;
297+
298+
ResponseHeadersPolicyServerTimingHeadersConfig m_serverTimingHeadersConfig;
299+
bool m_serverTimingHeadersConfigHasBeenSet;
259300
};
260301

261302
} // namespace Model
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#pragma once
7+
#include <aws/cloudfront/CloudFront_EXPORTS.h>
8+
9+
namespace Aws
10+
{
11+
namespace Utils
12+
{
13+
namespace Xml
14+
{
15+
class XmlNode;
16+
} // namespace Xml
17+
} // namespace Utils
18+
namespace CloudFront
19+
{
20+
namespace Model
21+
{
22+
23+
/**
24+
* <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP
25+
* responses sent from CloudFront. CloudFront adds this header to HTTP responses
26+
* that it sends in response to requests that match a cache behavior that's
27+
* associated with this response headers policy.</p> <p>You can use the
28+
* <code>Server-Timing</code> header to view metrics that can help you gain
29+
* insights about the behavior and performance of CloudFront. For example, you can
30+
* see which cache layer served a cache hit, or the first byte latency from the
31+
* origin when there was a cache miss. You can use the metrics in the
32+
* <code>Server-Timing</code> header to troubleshoot issues or test the efficiency
33+
* of your CloudFront configuration. For more information, see <a
34+
* href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html#server-timing-header">Server-Timing
35+
* header</a> in the <i>Amazon CloudFront Developer Guide</i>.</p><p><h3>See
36+
* Also:</h3> <a
37+
* href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicyServerTimingHeadersConfig">AWS
38+
* API Reference</a></p>
39+
*/
40+
class AWS_CLOUDFRONT_API ResponseHeadersPolicyServerTimingHeadersConfig
41+
{
42+
public:
43+
ResponseHeadersPolicyServerTimingHeadersConfig();
44+
ResponseHeadersPolicyServerTimingHeadersConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
45+
ResponseHeadersPolicyServerTimingHeadersConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46+
47+
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48+
49+
50+
/**
51+
* <p>A Boolean that determines whether CloudFront adds the
52+
* <code>Server-Timing</code> header to HTTP responses that it sends in response to
53+
* requests that match a cache behavior that's associated with this response
54+
* headers policy.</p>
55+
*/
56+
inline bool GetEnabled() const{ return m_enabled; }
57+
58+
/**
59+
* <p>A Boolean that determines whether CloudFront adds the
60+
* <code>Server-Timing</code> header to HTTP responses that it sends in response to
61+
* requests that match a cache behavior that's associated with this response
62+
* headers policy.</p>
63+
*/
64+
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
65+
66+
/**
67+
* <p>A Boolean that determines whether CloudFront adds the
68+
* <code>Server-Timing</code> header to HTTP responses that it sends in response to
69+
* requests that match a cache behavior that's associated with this response
70+
* headers policy.</p>
71+
*/
72+
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
73+
74+
/**
75+
* <p>A Boolean that determines whether CloudFront adds the
76+
* <code>Server-Timing</code> header to HTTP responses that it sends in response to
77+
* requests that match a cache behavior that's associated with this response
78+
* headers policy.</p>
79+
*/
80+
inline ResponseHeadersPolicyServerTimingHeadersConfig& WithEnabled(bool value) { SetEnabled(value); return *this;}
81+
82+
83+
/**
84+
* <p>A number 0–100 (inclusive) that specifies the percentage of responses that
85+
* you want CloudFront to add the <code>Server-Timing</code> header to. When you
86+
* set the sampling rate to 100, CloudFront adds the <code>Server-Timing</code>
87+
* header to the HTTP response for every request that matches the cache behavior
88+
* that this response headers policy is attached to. When you set it to 50,
89+
* CloudFront adds the header to 50% of the responses for requests that match the
90+
* cache behavior. You can set the sampling rate to any number 0–100 with up to
91+
* four decimal places.</p>
92+
*/
93+
inline double GetSamplingRate() const{ return m_samplingRate; }
94+
95+
/**
96+
* <p>A number 0–100 (inclusive) that specifies the percentage of responses that
97+
* you want CloudFront to add the <code>Server-Timing</code> header to. When you
98+
* set the sampling rate to 100, CloudFront adds the <code>Server-Timing</code>
99+
* header to the HTTP response for every request that matches the cache behavior
100+
* that this response headers policy is attached to. When you set it to 50,
101+
* CloudFront adds the header to 50% of the responses for requests that match the
102+
* cache behavior. You can set the sampling rate to any number 0–100 with up to
103+
* four decimal places.</p>
104+
*/
105+
inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
106+
107+
/**
108+
* <p>A number 0–100 (inclusive) that specifies the percentage of responses that
109+
* you want CloudFront to add the <code>Server-Timing</code> header to. When you
110+
* set the sampling rate to 100, CloudFront adds the <code>Server-Timing</code>
111+
* header to the HTTP response for every request that matches the cache behavior
112+
* that this response headers policy is attached to. When you set it to 50,
113+
* CloudFront adds the header to 50% of the responses for requests that match the
114+
* cache behavior. You can set the sampling rate to any number 0–100 with up to
115+
* four decimal places.</p>
116+
*/
117+
inline void SetSamplingRate(double value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
118+
119+
/**
120+
* <p>A number 0–100 (inclusive) that specifies the percentage of responses that
121+
* you want CloudFront to add the <code>Server-Timing</code> header to. When you
122+
* set the sampling rate to 100, CloudFront adds the <code>Server-Timing</code>
123+
* header to the HTTP response for every request that matches the cache behavior
124+
* that this response headers policy is attached to. When you set it to 50,
125+
* CloudFront adds the header to 50% of the responses for requests that match the
126+
* cache behavior. You can set the sampling rate to any number 0–100 with up to
127+
* four decimal places.</p>
128+
*/
129+
inline ResponseHeadersPolicyServerTimingHeadersConfig& WithSamplingRate(double value) { SetSamplingRate(value); return *this;}
130+
131+
private:
132+
133+
bool m_enabled;
134+
bool m_enabledHasBeenSet;
135+
136+
double m_samplingRate;
137+
bool m_samplingRateHasBeenSet;
138+
};
139+
140+
} // namespace Model
141+
} // namespace CloudFront
142+
} // namespace Aws

aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyConfig.cpp

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ ResponseHeadersPolicyConfig::ResponseHeadersPolicyConfig() :
2525
m_nameHasBeenSet(false),
2626
m_corsConfigHasBeenSet(false),
2727
m_securityHeadersConfigHasBeenSet(false),
28-
m_customHeadersConfigHasBeenSet(false)
28+
m_customHeadersConfigHasBeenSet(false),
29+
m_serverTimingHeadersConfigHasBeenSet(false)
2930
{
3031
}
3132

@@ -34,7 +35,8 @@ ResponseHeadersPolicyConfig::ResponseHeadersPolicyConfig(const XmlNode& xmlNode)
3435
m_nameHasBeenSet(false),
3536
m_corsConfigHasBeenSet(false),
3637
m_securityHeadersConfigHasBeenSet(false),
37-
m_customHeadersConfigHasBeenSet(false)
38+
m_customHeadersConfigHasBeenSet(false),
39+
m_serverTimingHeadersConfigHasBeenSet(false)
3840
{
3941
*this = xmlNode;
4042
}
@@ -75,6 +77,12 @@ ResponseHeadersPolicyConfig& ResponseHeadersPolicyConfig::operator =(const XmlNo
7577
m_customHeadersConfig = customHeadersConfigNode;
7678
m_customHeadersConfigHasBeenSet = true;
7779
}
80+
XmlNode serverTimingHeadersConfigNode = resultNode.FirstChild("ServerTimingHeadersConfig");
81+
if(!serverTimingHeadersConfigNode.IsNull())
82+
{
83+
m_serverTimingHeadersConfig = serverTimingHeadersConfigNode;
84+
m_serverTimingHeadersConfigHasBeenSet = true;
85+
}
7886
}
7987

8088
return *this;
@@ -113,6 +121,12 @@ void ResponseHeadersPolicyConfig::AddToNode(XmlNode& parentNode) const
113121
m_customHeadersConfig.AddToNode(customHeadersConfigNode);
114122
}
115123

124+
if(m_serverTimingHeadersConfigHasBeenSet)
125+
{
126+
XmlNode serverTimingHeadersConfigNode = parentNode.CreateChildElement("ServerTimingHeadersConfig");
127+
m_serverTimingHeadersConfig.AddToNode(serverTimingHeadersConfigNode);
128+
}
129+
116130
}
117131

118132
} // namespace Model
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/**
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
#include <aws/cloudfront/model/ResponseHeadersPolicyServerTimingHeadersConfig.h>
7+
#include <aws/core/utils/xml/XmlSerializer.h>
8+
#include <aws/core/utils/StringUtils.h>
9+
#include <aws/core/utils/memory/stl/AWSStringStream.h>
10+
11+
#include <utility>
12+
13+
using namespace Aws::Utils::Xml;
14+
using namespace Aws::Utils;
15+
16+
namespace Aws
17+
{
18+
namespace CloudFront
19+
{
20+
namespace Model
21+
{
22+
23+
ResponseHeadersPolicyServerTimingHeadersConfig::ResponseHeadersPolicyServerTimingHeadersConfig() :
24+
m_enabled(false),
25+
m_enabledHasBeenSet(false),
26+
m_samplingRate(0.0),
27+
m_samplingRateHasBeenSet(false)
28+
{
29+
}
30+
31+
ResponseHeadersPolicyServerTimingHeadersConfig::ResponseHeadersPolicyServerTimingHeadersConfig(const XmlNode& xmlNode) :
32+
m_enabled(false),
33+
m_enabledHasBeenSet(false),
34+
m_samplingRate(0.0),
35+
m_samplingRateHasBeenSet(false)
36+
{
37+
*this = xmlNode;
38+
}
39+
40+
ResponseHeadersPolicyServerTimingHeadersConfig& ResponseHeadersPolicyServerTimingHeadersConfig::operator =(const XmlNode& xmlNode)
41+
{
42+
XmlNode resultNode = xmlNode;
43+
44+
if(!resultNode.IsNull())
45+
{
46+
XmlNode enabledNode = resultNode.FirstChild("Enabled");
47+
if(!enabledNode.IsNull())
48+
{
49+
m_enabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(enabledNode.GetText()).c_str()).c_str());
50+
m_enabledHasBeenSet = true;
51+
}
52+
XmlNode samplingRateNode = resultNode.FirstChild("SamplingRate");
53+
if(!samplingRateNode.IsNull())
54+
{
55+
m_samplingRate = StringUtils::ConvertToDouble(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(samplingRateNode.GetText()).c_str()).c_str());
56+
m_samplingRateHasBeenSet = true;
57+
}
58+
}
59+
60+
return *this;
61+
}
62+
63+
void ResponseHeadersPolicyServerTimingHeadersConfig::AddToNode(XmlNode& parentNode) const
64+
{
65+
Aws::StringStream ss;
66+
if(m_enabledHasBeenSet)
67+
{
68+
XmlNode enabledNode = parentNode.CreateChildElement("Enabled");
69+
ss << std::boolalpha << m_enabled;
70+
enabledNode.SetText(ss.str());
71+
ss.str("");
72+
}
73+
74+
if(m_samplingRateHasBeenSet)
75+
{
76+
XmlNode samplingRateNode = parentNode.CreateChildElement("SamplingRate");
77+
ss << m_samplingRate;
78+
samplingRateNode.SetText(ss.str());
79+
ss.str("");
80+
}
81+
82+
}
83+
84+
} // namespace Model
85+
} // namespace CloudFront
86+
} // namespace Aws

aws-cpp-sdk-core/include/aws/core/VersionConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0.
44
*/
55

6-
#define AWS_SDK_VERSION_STRING "1.9.243"
6+
#define AWS_SDK_VERSION_STRING "1.9.244"
77
#define AWS_SDK_VERSION_MAJOR 1
88
#define AWS_SDK_VERSION_MINOR 9
9-
#define AWS_SDK_VERSION_PATCH 243
9+
#define AWS_SDK_VERSION_PATCH 244

0 commit comments

Comments
 (0)