@Stability(value=Stable) @Internal public static final class CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty
CfnResponseHeadersPolicy.ServerTimingHeadersConfigPropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder, CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Object |
getEnabled()
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.
|
Number |
getSamplingRate()
A number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the `Server-Timing` header to.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder builder)
CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty.Builder.public final Object getEnabled()
CfnResponseHeadersPolicy.ServerTimingHeadersConfigPropertygetEnabled in interface CfnResponseHeadersPolicy.ServerTimingHeadersConfigPropertypublic final Number getSamplingRate()
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty
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.
getSamplingRate in interface CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.