Interface CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty.Jsii$Proxy
- Enclosing class:
CfnResponseHeadersPolicyPropsMixin
@Stability(Stable)
public static interface CfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty
extends software.amazon.jsii.JsiiSerializable
An HTTP response header name and its value.
CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.*;
CustomHeaderProperty customHeaderProperty = CustomHeaderProperty.builder()
.header("header")
.override(false)
.value("value")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResponseHeadersPolicyPropsMixin.CustomHeaderPropertystatic final classAn implementation forCfnResponseHeadersPolicyPropsMixin.CustomHeaderProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe HTTP response header name.default ObjectA Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.default StringgetValue()The value for the HTTP response header.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHeader
The HTTP response header name.- See Also:
-
getOverride
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.Returns union: either
BooleanorIResolvable- See Also:
-
getValue
The value for the HTTP response header.- See Also:
-
builder
-