Skip to content
v2.273.0

CfnResponseHeadersPolicyPropsMixin Mixin ​

A response headers policy.

A response headers policy contains information about a set of HTTP response headers.

After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.

For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide .

Initializer ​

ts
new CfnResponseHeadersPolicyPropsMixin(props: CfnResponseHeadersPolicyMixinProps, options?: CfnPropertyMixinOptions)
python
CfnResponseHeadersPolicyPropsMixin(props: CfnResponseHeadersPolicyMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnResponseHeadersPolicyPropsMixin(CfnResponseHeadersPolicyMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnResponseHeadersPolicyPropsMixin(CfnResponseHeadersPolicyMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnResponseHeadersPolicyPropsMixin(Props CfnResponseHeadersPolicyMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.