@Generated(value="software.amazon.awssdk:codegen") public final class ResponseHeadersPolicyServerTimingHeadersConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicyServerTimingHeadersConfig.Builder,ResponseHeadersPolicyServerTimingHeadersConfig>
A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. CloudFront
adds this header to HTTP responses that it sends in response to requests that match a cache behavior that's
associated with this response headers policy.
You can use the Server-Timing header to view metrics that can help you gain insights about the behavior
and performance of CloudFront. For example, you can see which cache layer served a cache hit, or the first byte
latency from the origin when there was a cache miss. You can use the metrics in the Server-Timing header
to troubleshoot issues or test the efficiency of your CloudFront configuration. For more information, see Server-Timing header in the Amazon CloudFront Developer Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResponseHeadersPolicyServerTimingHeadersConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResponseHeadersPolicyServerTimingHeadersConfig.Builder |
builder() |
Boolean |
enabled()
A Boolean that determines whether CloudFront adds the
Server-Timing header to HTTP responses that it
sends in response to requests that match a cache behavior that's associated with this response headers policy. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Double |
samplingRate()
A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the
Server-Timing header to. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResponseHeadersPolicyServerTimingHeadersConfig.Builder> |
serializableBuilderClass() |
ResponseHeadersPolicyServerTimingHeadersConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean enabled()
A Boolean that determines whether CloudFront adds the Server-Timing header to HTTP responses that it
sends in response to requests that match a cache behavior that's associated with this response headers policy.
Server-Timing header to HTTP responses
that it sends in response to requests that match a cache behavior that's associated with this response
headers policy.public final Double samplingRate()
A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the
Server-Timing header to. When you set the sampling rate to 100, CloudFront adds the
Server-Timing header to the HTTP response for every request that matches the cache behavior that
this response headers policy is attached to. When you set it to 50, CloudFront adds the header to 50% of the
responses for requests that match the cache behavior. You can set the sampling rate to any number 0–100 with up
to four decimal places.
Server-Timing header to. When you set the sampling rate to 100, CloudFront adds the
Server-Timing header to the HTTP response for every request that matches the cache behavior
that this response headers policy is attached to. When you set it to 50, CloudFront adds the header to
50% of the responses for requests that match the cache behavior. You can set the sampling rate to any
number 0–100 with up to four decimal places.public ResponseHeadersPolicyServerTimingHeadersConfig.Builder toBuilder()
public static ResponseHeadersPolicyServerTimingHeadersConfig.Builder builder()
public static Class<? extends ResponseHeadersPolicyServerTimingHeadersConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.