Show / Hide Table of Contents

Class CfnRuleGroup.CustomResponseBodyProperty

The response body to use in a custom response to a web request.

Inheritance
object
CfnRuleGroup.CustomResponseBodyProperty
Implements
CfnRuleGroup.ICustomResponseBodyProperty
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.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleGroup.CustomResponseBodyProperty : CfnRuleGroup.ICustomResponseBodyProperty
Syntax (vb)
Public Class CfnRuleGroup.CustomResponseBodyProperty Implements CfnRuleGroup.ICustomResponseBodyProperty
Remarks

This is referenced by key from CustomResponse CustomResponseBodyKey .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.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.WAFv2;

             var customResponseBodyProperty = new CustomResponseBodyProperty {
                 Content = "content",
                 ContentType = "contentType"
             };

Synopsis

Constructors

CustomResponseBodyProperty()

The response body to use in a custom response to a web request.

Properties

Content

The payload of the custom response.

ContentType

The type of content in the payload that you are defining in the Content string.

Constructors

CustomResponseBodyProperty()

The response body to use in a custom response to a web request.

public CustomResponseBodyProperty()
Remarks

This is referenced by key from CustomResponse CustomResponseBodyKey .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.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.WAFv2;

             var customResponseBodyProperty = new CustomResponseBodyProperty {
                 Content = "content",
                 ContentType = "contentType"
             };

Properties

Content

The payload of the custom response.

public string Content { get; set; }
Property Value

string

Remarks

You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.

For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.html#cfn-wafv2-rulegroup-customresponsebody-content

ContentType

The type of content in the payload that you are defining in the Content string.

public string ContentType { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.html#cfn-wafv2-rulegroup-customresponsebody-contenttype

Implements

CfnRuleGroup.ICustomResponseBodyProperty
Back to top Generated by DocFX