Show / Hide Table of Contents

Class CfnResponseHeadersPolicy.ContentSecurityPolicyProperty

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

Inheritance
object
CfnResponseHeadersPolicy.ContentSecurityPolicyProperty
Implements
CfnResponseHeadersPolicy.IContentSecurityPolicyProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResponseHeadersPolicy.ContentSecurityPolicyProperty : CfnResponseHeadersPolicy.IContentSecurityPolicyProperty
Syntax (vb)
Public Class CfnResponseHeadersPolicy.ContentSecurityPolicyProperty Implements CfnResponseHeadersPolicy.IContentSecurityPolicyProperty
Remarks

For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policy in the MDN Web Docs.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CloudFront;

             var contentSecurityPolicyProperty = new ContentSecurityPolicyProperty {
                 ContentSecurityPolicy = "contentSecurityPolicy",
                 Override = false
             };

Synopsis

Constructors

ContentSecurityPolicyProperty()

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

Properties

ContentSecurityPolicy

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

Override

A Boolean that determines whether CloudFront overrides the Content-Security-Policy HTTP response header received from the origin with the one specified in this response headers policy.

Constructors

ContentSecurityPolicyProperty()

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

public ContentSecurityPolicyProperty()
Remarks

For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policy in the MDN Web Docs.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CloudFront;

             var contentSecurityPolicyProperty = new ContentSecurityPolicyProperty {
                 ContentSecurityPolicy = "contentSecurityPolicy",
                 Override = false
             };

Properties

ContentSecurityPolicy

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

public string ContentSecurityPolicy { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-contentsecuritypolicy

Override

A Boolean that determines whether CloudFront overrides the Content-Security-Policy HTTP response header received from the origin with the one specified in this response headers policy.

public object Override { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-override

Type union: either bool or IResolvable

Implements

CfnResponseHeadersPolicy.IContentSecurityPolicyProperty
Back to top Generated by DocFX