GetRuleGroup Xojo Example
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Dim rest As New Chilkat.Rest
Dim success As Boolean
Dim authAws As New Chilkat.AuthAws
authAws.AccessKey = "AWS_ACCESS_KEY"
authAws.SecretKey = "AWS_SECRET_KEY"
// Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
authAws.Region = "us-west-2"
authAws.ServiceName = "wafv2"
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
success = rest.SetAuthAws(authAws)
// URL: https://wafv2.us-west-2.amazonaws.com/
// Use the same region as specified above.
success = rest.Connect("wafv2.us-west-2.amazonaws.com",443,True,True)
If (success <> True) Then
System.DebugLog("ConnectFailReason: " + Str(rest.ConnectFailReason))
System.DebugLog(rest.LastErrorText)
Return
End If
// The following code creates the JSON request body.
// The JSON created by this code is shown below.
// Use this online tool to generate code from sample JSON:
// Generate Code to Create JSON
Dim json As New Chilkat.JsonObject
success = json.UpdateString("ARN","string")
success = json.UpdateString("Id","string")
success = json.UpdateString("Name","string")
success = json.UpdateString("Scope","string")
// The JSON request body created by the above code:
// {
// "ARN": "string",
// "Id": "string",
// "Name": "string",
// "Scope": "string"
// }
success = rest.AddHeader("Content-Type","application/x-amz-json-1.1")
success = rest.AddHeader("X-Amz-Target","AWSWAF_20190729.GetRuleGroup")
Dim sbRequestBody As New Chilkat.StringBuilder
success = json.EmitSb(sbRequestBody)
Dim sbResponseBody As New Chilkat.StringBuilder
success = rest.FullRequestSb("POST","/",sbRequestBody,sbResponseBody)
If (success <> True) Then
System.DebugLog(rest.LastErrorText)
Return
End If
Dim respStatusCode As Int32
respStatusCode = rest.ResponseStatusCode
System.DebugLog("response status code = " + Str(respStatusCode))
If (respStatusCode <> 200) Then
System.DebugLog("Response Header:")
System.DebugLog(rest.ResponseHeader)
System.DebugLog("Response Body:")
System.DebugLog(sbResponseBody.GetAsString())
Return
End If
Dim jResp As New Chilkat.JsonObject
success = jResp.LoadSb(sbResponseBody)
// The following code parses the JSON response.
// A sample JSON response is shown below the sample code.
// Use this online tool to generate parsing code from sample JSON:
// Generate Parsing Code from JSON
Dim CustomResponseBodyKey As String
Dim ResponseCode As Int32
Dim ImmunityTime As Int32
Dim Priority As Int32
Dim OversizeHandling As String
Dim MatchScope As String
Dim CookiesOversizeHandling As String
Dim HeadersMatchScope As String
Dim HeadersOversizeHandling As String
Dim InvalidFallbackBehavior As String
Dim JsonBodyMatchScope As String
Dim JsonBodyOversizeHandling As String
Dim SingleHeaderName As String
Dim SingleQueryArgumentName As String
Dim PositionalConstraint As String
Dim SearchString As Int32
Dim FallbackBehavior As String
Dim HeaderName As String
Dim IPSetReferenceStatementARN As String
Dim IPSetForwardedIPConfigFallbackBehavior As String
Dim IPSetForwardedIPConfigHeaderName As String
Dim Position As String
Dim Key As String
Dim Scope As String
Dim ManagedRuleGroupStatementName As String
Dim ScopeDownStatement As String
Dim VendorName As String
Dim Version As String
Dim Statement As String
Dim AggregateKeyType As String
Dim ForwardedIPConfigFallbackBehavior As String
Dim ForwardedIPConfigHeaderName As String
Dim Limit As Int32
Dim RateBasedStatementScopeDownStatement As String
Dim BodyOversizeHandling As String
Dim CookiesMatchScope As String
Dim JsonBodyInvalidFallbackBehavior As String
Dim RegexString As String
Dim RegexPatternSetReferenceStatementARN As String
Dim RuleGroupReferenceStatementARN As String
Dim ComparisonOperator As String
Dim Size As Int32
Dim VisibilityConfigCloudWatchMetricsEnabled As Int32
Dim VisibilityConfigMetricName As String
Dim VisibilityConfigSampledRequestsEnabled As Int32
Dim j As Int32
Dim count_j As Int32
Dim Value As String
Dim strVal As String
Dim v_Type As String
Dim LoginPath As String
Dim Identifier As String
Dim PayloadType As String
Dim UsernameFieldIdentifier As String
Dim LockToken As String
LockToken = jResp.StringOf("LockToken")
Dim ARN As String
ARN = jResp.StringOf("RuleGroup.ARN")
Dim Capacity As Int32
Capacity = jResp.IntOf("RuleGroup.Capacity")
Dim Content As String
Content = jResp.StringOf("RuleGroup.CustomResponseBodies.string.Content")
Dim ContentType As String
ContentType = jResp.StringOf("RuleGroup.CustomResponseBodies.string.ContentType")
Dim Description As String
Description = jResp.StringOf("RuleGroup.Description")
Dim Id As String
Id = jResp.StringOf("RuleGroup.Id")
Dim LabelNamespace As String
LabelNamespace = jResp.StringOf("RuleGroup.LabelNamespace")
Dim Name As String
Name = jResp.StringOf("RuleGroup.Name")
Dim CloudWatchMetricsEnabled As Int32
CloudWatchMetricsEnabled = jResp.IntOf("RuleGroup.VisibilityConfig.CloudWatchMetricsEnabled")
Dim MetricName As String
MetricName = jResp.StringOf("RuleGroup.VisibilityConfig.MetricName")
Dim SampledRequestsEnabled As Int32
SampledRequestsEnabled = jResp.IntOf("RuleGroup.VisibilityConfig.SampledRequestsEnabled")
Dim i As Int32
i = 0
Dim count_i As Int32
count_i = jResp.SizeOfArray("RuleGroup.AvailableLabels")
While i < count_i
jResp.I = i
Name = jResp.StringOf("RuleGroup.AvailableLabels[i].Name")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("RuleGroup.ConsumedLabels")
While i < count_i
jResp.I = i
Name = jResp.StringOf("RuleGroup.ConsumedLabels[i].Name")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("RuleGroup.Rules")
While i < count_i
jResp.I = i
CustomResponseBodyKey = jResp.StringOf("RuleGroup.Rules[i].Action.Block.CustomResponse.CustomResponseBodyKey")
ResponseCode = jResp.IntOf("RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseCode")
ImmunityTime = jResp.IntOf("RuleGroup.Rules[i].CaptchaConfig.ImmunityTimeProperty.ImmunityTime")
Name = jResp.StringOf("RuleGroup.Rules[i].Name")
Priority = jResp.IntOf("RuleGroup.Rules[i].Priority")
OversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Body.OversizeHandling")
MatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchScope")
CookiesOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.OversizeHandling")
HeadersMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchScope")
HeadersOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.OversizeHandling")
InvalidFallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
JsonBodyMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchScope")
JsonBodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.OversizeHandling")
SingleHeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.SingleHeader.Name")
SingleQueryArgumentName = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.SingleQueryArgument.Name")
PositionalConstraint = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.PositionalConstraint")
SearchString = jResp.IntOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.SearchString")
FallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.GeoMatchStatement.ForwardedIPConfig.FallbackBehavior")
HeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.GeoMatchStatement.ForwardedIPConfig.HeaderName")
IPSetReferenceStatementARN = jResp.StringOf("RuleGroup.Rules[i].Statement.IPSetReferenceStatement.ARN")
IPSetForwardedIPConfigFallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.FallbackBehavior")
IPSetForwardedIPConfigHeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.HeaderName")
Position = jResp.StringOf("RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.Position")
Key = jResp.StringOf("RuleGroup.Rules[i].Statement.LabelMatchStatement.Key")
Scope = jResp.StringOf("RuleGroup.Rules[i].Statement.LabelMatchStatement.Scope")
ManagedRuleGroupStatementName = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.Name")
ScopeDownStatement = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ScopeDownStatement")
VendorName = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.VendorName")
Version = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.Version")
Statement = jResp.StringOf("RuleGroup.Rules[i].Statement.NotStatement.Statement")
AggregateKeyType = jResp.StringOf("RuleGroup.Rules[i].Statement.RateBasedStatement.AggregateKeyType")
ForwardedIPConfigFallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.RateBasedStatement.ForwardedIPConfig.FallbackBehavior")
ForwardedIPConfigHeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.RateBasedStatement.ForwardedIPConfig.HeaderName")
Limit = jResp.IntOf("RuleGroup.Rules[i].Statement.RateBasedStatement.Limit")
RateBasedStatementScopeDownStatement = jResp.StringOf("RuleGroup.Rules[i].Statement.RateBasedStatement.ScopeDownStatement")
BodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Body.OversizeHandling")
CookiesMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchScope")
CookiesOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.OversizeHandling")
HeadersMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchScope")
HeadersOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.OversizeHandling")
JsonBodyInvalidFallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
JsonBodyMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchScope")
JsonBodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.OversizeHandling")
SingleHeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.SingleHeader.Name")
SingleQueryArgumentName = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.SingleQueryArgument.Name")
RegexString = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.RegexString")
RegexPatternSetReferenceStatementARN = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.ARN")
BodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Body.OversizeHandling")
CookiesMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchScope")
CookiesOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.OversizeHandling")
HeadersMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchScope")
HeadersOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.OversizeHandling")
JsonBodyInvalidFallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
JsonBodyMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchScope")
JsonBodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.OversizeHandling")
SingleHeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.SingleHeader.Name")
SingleQueryArgumentName = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.SingleQueryArgument.Name")
RuleGroupReferenceStatementARN = jResp.StringOf("RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ARN")
ComparisonOperator = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.ComparisonOperator")
BodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Body.OversizeHandling")
CookiesMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchScope")
CookiesOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.OversizeHandling")
HeadersMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchScope")
HeadersOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.OversizeHandling")
JsonBodyInvalidFallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
JsonBodyMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchScope")
JsonBodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.OversizeHandling")
SingleHeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.SingleHeader.Name")
SingleQueryArgumentName = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.SingleQueryArgument.Name")
Size = jResp.IntOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.Size")
BodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Body.OversizeHandling")
CookiesMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchScope")
CookiesOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.OversizeHandling")
HeadersMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchScope")
HeadersOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.OversizeHandling")
JsonBodyInvalidFallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
JsonBodyMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchScope")
JsonBodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.OversizeHandling")
SingleHeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.SingleHeader.Name")
SingleQueryArgumentName = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.SingleQueryArgument.Name")
BodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Body.OversizeHandling")
CookiesMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchScope")
CookiesOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.OversizeHandling")
HeadersMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchScope")
HeadersOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.OversizeHandling")
JsonBodyInvalidFallbackBehavior = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
JsonBodyMatchScope = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchScope")
JsonBodyOversizeHandling = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.OversizeHandling")
SingleHeaderName = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.SingleHeader.Name")
SingleQueryArgumentName = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.SingleQueryArgument.Name")
VisibilityConfigCloudWatchMetricsEnabled = jResp.IntOf("RuleGroup.Rules[i].VisibilityConfig.CloudWatchMetricsEnabled")
VisibilityConfigMetricName = jResp.StringOf("RuleGroup.Rules[i].VisibilityConfig.MetricName")
VisibilityConfigSampledRequestsEnabled = jResp.IntOf("RuleGroup.Rules[i].VisibilityConfig.SampledRequestsEnabled")
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders")
While j < count_j
jResp.J = j
Name = jResp.StringOf("RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders[j].Name")
Value = jResp.StringOf("RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders[j].Value")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders")
While j < count_j
jResp.J = j
Name = jResp.StringOf("RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders[j].Name")
Value = jResp.StringOf("RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders[j].Value")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders")
While j < count_j
jResp.J = j
Name = jResp.StringOf("RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders[j].Name")
Value = jResp.StringOf("RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders[j].Value")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders")
While j < count_j
jResp.J = j
Name = jResp.StringOf("RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders[j].Name")
Value = jResp.StringOf("RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders[j].Value")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders")
While j < count_j
jResp.J = j
Name = jResp.StringOf("RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders[j].Name")
Value = jResp.StringOf("RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders[j].Value")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].RuleLabels")
While j < count_j
jResp.J = j
Name = jResp.StringOf("RuleGroup.Rules[i].RuleLabels[j].Name")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.AndStatement.Statements")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.AndStatement.Statements[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations")
While j < count_j
jResp.J = j
Priority = jResp.IntOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations[j].Priority")
v_Type = jResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations[j].Type")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.GeoMatchStatement.CountryCodes")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.GeoMatchStatement.CountryCodes[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ExcludedRules")
While j < count_j
jResp.J = j
Name = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ExcludedRules[j].Name")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs")
While j < count_j
jResp.J = j
LoginPath = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].LoginPath")
Identifier = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].PasswordField.Identifier")
PayloadType = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].PayloadType")
UsernameFieldIdentifier = jResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].UsernameField.Identifier")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.OrStatement.Statements")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.OrStatement.Statements[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations")
While j < count_j
jResp.J = j
Priority = jResp.IntOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations[j].Priority")
v_Type = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations[j].Type")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations")
While j < count_j
jResp.J = j
Priority = jResp.IntOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations[j].Priority")
v_Type = jResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations[j].Type")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ExcludedRules")
While j < count_j
jResp.J = j
Name = jResp.StringOf("RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ExcludedRules[j].Name")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations")
While j < count_j
jResp.J = j
Priority = jResp.IntOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations[j].Priority")
v_Type = jResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations[j].Type")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations")
While j < count_j
jResp.J = j
Priority = jResp.IntOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations[j].Priority")
v_Type = jResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations[j].Type")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While j < count_j
jResp.J = j
strVal = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
j = j + 1
Wend
j = 0
count_j = jResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations")
While j < count_j
jResp.J = j
Priority = jResp.IntOf("RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations[j].Priority")
v_Type = jResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations[j].Type")
j = j + 1
Wend
i = i + 1
Wend
// A sample JSON response body parsed by the above code:
// {
// "LockToken": "string",
// "RuleGroup": {
// "ARN": "string",
// "AvailableLabels": [
// {
// "Name": "string"
// }
// ],
// "Capacity": number,
// "ConsumedLabels": [
// {
// "Name": "string"
// }
// ],
// "CustomResponseBodies": {
// "string": {
// "Content": "string",
// "ContentType": "string"
// }
// },
// "Description": "string",
// "Id": "string",
// "LabelNamespace": "string",
// "Name": "string",
// "Rules": [
// {
// "Action": {
// "Allow": {
// "CustomRequestHandling": {
// "InsertHeaders": [
// {
// "Name": "string",
// "Value": "string"
// }
// ]
// }
// },
// "Block": {
// "CustomResponse": {
// "CustomResponseBodyKey": "string",
// "ResponseCode": number,
// "ResponseHeaders": [
// {
// "Name": "string",
// "Value": "string"
// }
// ]
// }
// },
// "Captcha": {
// "CustomRequestHandling": {
// "InsertHeaders": [
// {
// "Name": "string",
// "Value": "string"
// }
// ]
// }
// },
// "Count": {
// "CustomRequestHandling": {
// "InsertHeaders": [
// {
// "Name": "string",
// "Value": "string"
// }
// ]
// }
// }
// },
// "CaptchaConfig": {
// "ImmunityTimeProperty": {
// "ImmunityTime": number
// }
// },
// "Name": "string",
// "OverrideAction": {
// "Count": {
// "CustomRequestHandling": {
// "InsertHeaders": [
// {
// "Name": "string",
// "Value": "string"
// }
// ]
// }
// },
// "None": {}
// },
// "Priority": number,
// "RuleLabels": [
// {
// "Name": "string"
// }
// ],
// "Statement": {
// "AndStatement": {
// "Statements": [
// "Statement"
// ]
// },
// "ByteMatchStatement": {
// "FieldToMatch": {
// "AllQueryArguments": {},
// "Body": {
// "OversizeHandling": "string"
// },
// "Cookies": {
// "MatchPattern": {
// "All": {},
// "ExcludedCookies": [
// "string"
// ],
// "IncludedCookies": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Headers": {
// "MatchPattern": {
// "All": {},
// "ExcludedHeaders": [
// "string"
// ],
// "IncludedHeaders": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "JsonBody": {
// "InvalidFallbackBehavior": "string",
// "MatchPattern": {
// "All": {},
// "IncludedPaths": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Method": {},
// "QueryString": {},
// "SingleHeader": {
// "Name": "string"
// },
// "SingleQueryArgument": {
// "Name": "string"
// },
// "UriPath": {}
// },
// "PositionalConstraint": "string",
// "SearchString": blob,
// "TextTransformations": [
// {
// "Priority": number,
// "Type": "string"
// }
// ]
// },
// "GeoMatchStatement": {
// "CountryCodes": [
// "string"
// ],
// "ForwardedIPConfig": {
// "FallbackBehavior": "string",
// "HeaderName": "string"
// }
// },
// "IPSetReferenceStatement": {
// "ARN": "string",
// "IPSetForwardedIPConfig": {
// "FallbackBehavior": "string",
// "HeaderName": "string",
// "Position": "string"
// }
// },
// "LabelMatchStatement": {
// "Key": "string",
// "Scope": "string"
// },
// "ManagedRuleGroupStatement": {
// "ExcludedRules": [
// {
// "Name": "string"
// }
// ],
// "ManagedRuleGroupConfigs": [
// {
// "LoginPath": "string",
// "PasswordField": {
// "Identifier": "string"
// },
// "PayloadType": "string",
// "UsernameField": {
// "Identifier": "string"
// }
// }
// ],
// "Name": "string",
// "ScopeDownStatement": "Statement",
// "VendorName": "string",
// "Version": "string"
// },
// "NotStatement": {
// "Statement": "Statement"
// },
// "OrStatement": {
// "Statements": [
// "Statement"
// ]
// },
// "RateBasedStatement": {
// "AggregateKeyType": "string",
// "ForwardedIPConfig": {
// "FallbackBehavior": "string",
// "HeaderName": "string"
// },
// "Limit": number,
// "ScopeDownStatement": "Statement"
// },
// "RegexMatchStatement": {
// "FieldToMatch": {
// "AllQueryArguments": {},
// "Body": {
// "OversizeHandling": "string"
// },
// "Cookies": {
// "MatchPattern": {
// "All": {},
// "ExcludedCookies": [
// "string"
// ],
// "IncludedCookies": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Headers": {
// "MatchPattern": {
// "All": {},
// "ExcludedHeaders": [
// "string"
// ],
// "IncludedHeaders": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "JsonBody": {
// "InvalidFallbackBehavior": "string",
// "MatchPattern": {
// "All": {},
// "IncludedPaths": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Method": {},
// "QueryString": {},
// "SingleHeader": {
// "Name": "string"
// },
// "SingleQueryArgument": {
// "Name": "string"
// },
// "UriPath": {}
// },
// "RegexString": "string",
// "TextTransformations": [
// {
// "Priority": number,
// "Type": "string"
// }
// ]
// },
// "RegexPatternSetReferenceStatement": {
// "ARN": "string",
// "FieldToMatch": {
// "AllQueryArguments": {},
// "Body": {
// "OversizeHandling": "string"
// },
// "Cookies": {
// "MatchPattern": {
// "All": {},
// "ExcludedCookies": [
// "string"
// ],
// "IncludedCookies": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Headers": {
// "MatchPattern": {
// "All": {},
// "ExcludedHeaders": [
// "string"
// ],
// "IncludedHeaders": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "JsonBody": {
// "InvalidFallbackBehavior": "string",
// "MatchPattern": {
// "All": {},
// "IncludedPaths": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Method": {},
// "QueryString": {},
// "SingleHeader": {
// "Name": "string"
// },
// "SingleQueryArgument": {
// "Name": "string"
// },
// "UriPath": {}
// },
// "TextTransformations": [
// {
// "Priority": number,
// "Type": "string"
// }
// ]
// },
// "RuleGroupReferenceStatement": {
// "ARN": "string",
// "ExcludedRules": [
// {
// "Name": "string"
// }
// ]
// },
// "SizeConstraintStatement": {
// "ComparisonOperator": "string",
// "FieldToMatch": {
// "AllQueryArguments": {},
// "Body": {
// "OversizeHandling": "string"
// },
// "Cookies": {
// "MatchPattern": {
// "All": {},
// "ExcludedCookies": [
// "string"
// ],
// "IncludedCookies": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Headers": {
// "MatchPattern": {
// "All": {},
// "ExcludedHeaders": [
// "string"
// ],
// "IncludedHeaders": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "JsonBody": {
// "InvalidFallbackBehavior": "string",
// "MatchPattern": {
// "All": {},
// "IncludedPaths": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Method": {},
// "QueryString": {},
// "SingleHeader": {
// "Name": "string"
// },
// "SingleQueryArgument": {
// "Name": "string"
// },
// "UriPath": {}
// },
// "Size": number,
// "TextTransformations": [
// {
// "Priority": number,
// "Type": "string"
// }
// ]
// },
// "SqliMatchStatement": {
// "FieldToMatch": {
// "AllQueryArguments": {},
// "Body": {
// "OversizeHandling": "string"
// },
// "Cookies": {
// "MatchPattern": {
// "All": {},
// "ExcludedCookies": [
// "string"
// ],
// "IncludedCookies": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Headers": {
// "MatchPattern": {
// "All": {},
// "ExcludedHeaders": [
// "string"
// ],
// "IncludedHeaders": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "JsonBody": {
// "InvalidFallbackBehavior": "string",
// "MatchPattern": {
// "All": {},
// "IncludedPaths": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Method": {},
// "QueryString": {},
// "SingleHeader": {
// "Name": "string"
// },
// "SingleQueryArgument": {
// "Name": "string"
// },
// "UriPath": {}
// },
// "TextTransformations": [
// {
// "Priority": number,
// "Type": "string"
// }
// ]
// },
// "XssMatchStatement": {
// "FieldToMatch": {
// "AllQueryArguments": {},
// "Body": {
// "OversizeHandling": "string"
// },
// "Cookies": {
// "MatchPattern": {
// "All": {},
// "ExcludedCookies": [
// "string"
// ],
// "IncludedCookies": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Headers": {
// "MatchPattern": {
// "All": {},
// "ExcludedHeaders": [
// "string"
// ],
// "IncludedHeaders": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "JsonBody": {
// "InvalidFallbackBehavior": "string",
// "MatchPattern": {
// "All": {},
// "IncludedPaths": [
// "string"
// ]
// },
// "MatchScope": "string",
// "OversizeHandling": "string"
// },
// "Method": {},
// "QueryString": {},
// "SingleHeader": {
// "Name": "string"
// },
// "SingleQueryArgument": {
// "Name": "string"
// },
// "UriPath": {}
// },
// "TextTransformations": [
// {
// "Priority": number,
// "Type": "string"
// }
// ]
// }
// },
// "VisibilityConfig": {
// "CloudWatchMetricsEnabled": boolean,
// "MetricName": "string",
// "SampledRequestsEnabled": boolean
// }
// }
// ],
// "VisibilityConfig": {
// "CloudWatchMetricsEnabled": boolean,
// "MetricName": "string",
// "SampledRequestsEnabled": boolean
// }
// }
// }