Show / Hide Table of Contents

Interface CfnRuleGroup.ICustomResponseBodyProperty

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

Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnRuleGroup.ICustomResponseBodyProperty
Syntax (vb)
Public Interface 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

Properties

Content

The payload of the custom response.

ContentType

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

Properties

Content

The payload of the custom response.

string Content { get; }
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.

string ContentType { get; }
Property Value

string

Remarks

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

Back to top Generated by DocFX