@Stability(value=Stable) public static final class CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty |
build()
Builds the configured instance.
|
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder |
enabled(Boolean enabled)
Sets the value of
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.getEnabled() |
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder |
enabled(IResolvable enabled)
Sets the value of
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.getEnabled() |
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder |
samplingRate(Number samplingRate)
|
@Stability(value=Stable) public CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder enabled(Boolean enabled)
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.getEnabled()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. This parameter is required.this@Stability(value=Stable) public CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder enabled(IResolvable enabled)
CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.getEnabled()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. This parameter is required.this@Stability(value=Stable) public CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty.Builder samplingRate(Number samplingRate)
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.this@Stability(value=Stable) public CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty build()
build in interface software.amazon.jsii.Builder<CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty>CfnResponseHeadersPolicy.ServerTimingHeadersConfigPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.