GetRuleGroup autoit Example
; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oRest = ObjCreate("Chilkat_9_5_0.Rest")
Local $bSuccess
$oAuthAws = ObjCreate("Chilkat_9_5_0.AuthAws")
$oAuthAws.AccessKey = "AWS_ACCESS_KEY"
$oAuthAws.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.)
$oAuthAws.Region = "us-west-2"
$oAuthAws.ServiceName = "wafv2"
; SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
$oRest.SetAuthAws($oAuthAws)
; URL: https://wafv2.us-west-2.amazonaws.com/
; Use the same region as specified above.
$bSuccess = $oRest.Connect("wafv2.us-west-2.amazonaws.com",443,True,True)
If ($bSuccess <> True) Then
ConsoleWrite("ConnectFailReason: " & $oRest.ConnectFailReason & @CRLF)
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
; 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
$oJson = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJson.UpdateString("ARN","string")
$oJson.UpdateString("Id","string")
$oJson.UpdateString("Name","string")
$oJson.UpdateString("Scope","string")
; The JSON request body created by the above code:
; {
; "ARN": "string",
; "Id": "string",
; "Name": "string",
; "Scope": "string"
; }
$oRest.AddHeader("Content-Type","application/x-amz-json-1.1")
$oRest.AddHeader("X-Amz-Target","AWSWAF_20190729.GetRuleGroup")
$oSbRequestBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$oJson.EmitSb($oSbRequestBody)
$oSbResponseBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$bSuccess = $oRest.FullRequestSb("POST","/",$oSbRequestBody,$oSbResponseBody)
If ($bSuccess <> True) Then
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
Local $iRespStatusCode = $oRest.ResponseStatusCode
ConsoleWrite("response status code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode <> 200) Then
ConsoleWrite("Response Header:" & @CRLF)
ConsoleWrite($oRest.ResponseHeader & @CRLF)
ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oSbResponseBody.GetAsString() & @CRLF)
Exit
EndIf
$oJResp = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
; 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
Local $sCustomResponseBodyKey
Local $iResponseCode
Local $iImmunityTime
Local $iPriority
Local $sOversizeHandling
Local $sMatchScope
Local $sCookiesOversizeHandling
Local $sHeadersMatchScope
Local $sHeadersOversizeHandling
Local $sInvalidFallbackBehavior
Local $sJsonBodyMatchScope
Local $sJsonBodyOversizeHandling
Local $sSingleHeaderName
Local $sSingleQueryArgumentName
Local $sPositionalConstraint
Local $iSearchString
Local $sFallbackBehavior
Local $sHeaderName
Local $sIPSetReferenceStatementARN
Local $sIPSetForwardedIPConfigFallbackBehavior
Local $sIPSetForwardedIPConfigHeaderName
Local $sPosition
Local $sKey
Local $sScope
Local $sManagedRuleGroupStatementName
Local $sScopeDownStatement
Local $sVendorName
Local $sVersion
Local $sStatement
Local $sAggregateKeyType
Local $sForwardedIPConfigFallbackBehavior
Local $sForwardedIPConfigHeaderName
Local $iLimit
Local $sRateBasedStatementScopeDownStatement
Local $sBodyOversizeHandling
Local $sCookiesMatchScope
Local $sJsonBodyInvalidFallbackBehavior
Local $sRegexString
Local $sRegexPatternSetReferenceStatementARN
Local $sRuleGroupReferenceStatementARN
Local $sComparisonOperator
Local $iSize
Local $iVisibilityConfigCloudWatchMetricsEnabled
Local $sVisibilityConfigMetricName
Local $iVisibilityConfigSampledRequestsEnabled
Local $iJ
Local $iCount_j
Local $sValue
Local $strVal
Local $sV_Type
Local $sLoginPath
Local $sIdentifier
Local $sPayloadType
Local $sUsernameFieldIdentifier
Local $sLockToken = $oJResp.StringOf("LockToken")
Local $sARN = $oJResp.StringOf("RuleGroup.ARN")
Local $iCapacity = $oJResp.IntOf("RuleGroup.Capacity")
Local $sContent = $oJResp.StringOf("RuleGroup.CustomResponseBodies.string.Content")
Local $sContentType = $oJResp.StringOf("RuleGroup.CustomResponseBodies.string.ContentType")
Local $sDescription = $oJResp.StringOf("RuleGroup.Description")
Local $sId = $oJResp.StringOf("RuleGroup.Id")
Local $sLabelNamespace = $oJResp.StringOf("RuleGroup.LabelNamespace")
Local $sName = $oJResp.StringOf("RuleGroup.Name")
Local $iCloudWatchMetricsEnabled = $oJResp.IntOf("RuleGroup.VisibilityConfig.CloudWatchMetricsEnabled")
Local $sMetricName = $oJResp.StringOf("RuleGroup.VisibilityConfig.MetricName")
Local $iSampledRequestsEnabled = $oJResp.IntOf("RuleGroup.VisibilityConfig.SampledRequestsEnabled")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("RuleGroup.AvailableLabels")
While $i < $iCount_i
$oJResp.I = $i
$sName = $oJResp.StringOf("RuleGroup.AvailableLabels[i].Name")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("RuleGroup.ConsumedLabels")
While $i < $iCount_i
$oJResp.I = $i
$sName = $oJResp.StringOf("RuleGroup.ConsumedLabels[i].Name")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("RuleGroup.Rules")
While $i < $iCount_i
$oJResp.I = $i
$sCustomResponseBodyKey = $oJResp.StringOf("RuleGroup.Rules[i].Action.Block.CustomResponse.CustomResponseBodyKey")
$iResponseCode = $oJResp.IntOf("RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseCode")
$iImmunityTime = $oJResp.IntOf("RuleGroup.Rules[i].CaptchaConfig.ImmunityTimeProperty.ImmunityTime")
$sName = $oJResp.StringOf("RuleGroup.Rules[i].Name")
$iPriority = $oJResp.IntOf("RuleGroup.Rules[i].Priority")
$sOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Body.OversizeHandling")
$sMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchScope")
$sCookiesOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.OversizeHandling")
$sHeadersMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchScope")
$sHeadersOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.OversizeHandling")
$sInvalidFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
$sJsonBodyMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchScope")
$sJsonBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.OversizeHandling")
$sSingleHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.SingleHeader.Name")
$sSingleQueryArgumentName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.SingleQueryArgument.Name")
$sPositionalConstraint = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.PositionalConstraint")
$iSearchString = $oJResp.IntOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.SearchString")
$sFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.GeoMatchStatement.ForwardedIPConfig.FallbackBehavior")
$sHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.GeoMatchStatement.ForwardedIPConfig.HeaderName")
$sIPSetReferenceStatementARN = $oJResp.StringOf("RuleGroup.Rules[i].Statement.IPSetReferenceStatement.ARN")
$sIPSetForwardedIPConfigFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.FallbackBehavior")
$sIPSetForwardedIPConfigHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.HeaderName")
$sPosition = $oJResp.StringOf("RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.Position")
$sKey = $oJResp.StringOf("RuleGroup.Rules[i].Statement.LabelMatchStatement.Key")
$sScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.LabelMatchStatement.Scope")
$sManagedRuleGroupStatementName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.Name")
$sScopeDownStatement = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ScopeDownStatement")
$sVendorName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.VendorName")
$sVersion = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.Version")
$sStatement = $oJResp.StringOf("RuleGroup.Rules[i].Statement.NotStatement.Statement")
$sAggregateKeyType = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RateBasedStatement.AggregateKeyType")
$sForwardedIPConfigFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RateBasedStatement.ForwardedIPConfig.FallbackBehavior")
$sForwardedIPConfigHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RateBasedStatement.ForwardedIPConfig.HeaderName")
$iLimit = $oJResp.IntOf("RuleGroup.Rules[i].Statement.RateBasedStatement.Limit")
$sRateBasedStatementScopeDownStatement = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RateBasedStatement.ScopeDownStatement")
$sBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Body.OversizeHandling")
$sCookiesMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchScope")
$sCookiesOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.OversizeHandling")
$sHeadersMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchScope")
$sHeadersOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.OversizeHandling")
$sJsonBodyInvalidFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
$sJsonBodyMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchScope")
$sJsonBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.OversizeHandling")
$sSingleHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.SingleHeader.Name")
$sSingleQueryArgumentName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.SingleQueryArgument.Name")
$sRegexString = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.RegexString")
$sRegexPatternSetReferenceStatementARN = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.ARN")
$sBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Body.OversizeHandling")
$sCookiesMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchScope")
$sCookiesOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.OversizeHandling")
$sHeadersMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchScope")
$sHeadersOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.OversizeHandling")
$sJsonBodyInvalidFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
$sJsonBodyMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchScope")
$sJsonBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.OversizeHandling")
$sSingleHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.SingleHeader.Name")
$sSingleQueryArgumentName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.SingleQueryArgument.Name")
$sRuleGroupReferenceStatementARN = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ARN")
$sComparisonOperator = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.ComparisonOperator")
$sBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Body.OversizeHandling")
$sCookiesMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchScope")
$sCookiesOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.OversizeHandling")
$sHeadersMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchScope")
$sHeadersOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.OversizeHandling")
$sJsonBodyInvalidFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
$sJsonBodyMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchScope")
$sJsonBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.OversizeHandling")
$sSingleHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.SingleHeader.Name")
$sSingleQueryArgumentName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.SingleQueryArgument.Name")
$iSize = $oJResp.IntOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.Size")
$sBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Body.OversizeHandling")
$sCookiesMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchScope")
$sCookiesOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.OversizeHandling")
$sHeadersMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchScope")
$sHeadersOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.OversizeHandling")
$sJsonBodyInvalidFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
$sJsonBodyMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchScope")
$sJsonBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.OversizeHandling")
$sSingleHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.SingleHeader.Name")
$sSingleQueryArgumentName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.SingleQueryArgument.Name")
$sBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Body.OversizeHandling")
$sCookiesMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchScope")
$sCookiesOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.OversizeHandling")
$sHeadersMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchScope")
$sHeadersOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.OversizeHandling")
$sJsonBodyInvalidFallbackBehavior = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior")
$sJsonBodyMatchScope = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchScope")
$sJsonBodyOversizeHandling = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.OversizeHandling")
$sSingleHeaderName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.SingleHeader.Name")
$sSingleQueryArgumentName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.SingleQueryArgument.Name")
$iVisibilityConfigCloudWatchMetricsEnabled = $oJResp.IntOf("RuleGroup.Rules[i].VisibilityConfig.CloudWatchMetricsEnabled")
$sVisibilityConfigMetricName = $oJResp.StringOf("RuleGroup.Rules[i].VisibilityConfig.MetricName")
$iVisibilityConfigSampledRequestsEnabled = $oJResp.IntOf("RuleGroup.Rules[i].VisibilityConfig.SampledRequestsEnabled")
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders[j].Name")
$sValue = $oJResp.StringOf("RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders[j].Value")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders[j].Name")
$sValue = $oJResp.StringOf("RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders[j].Value")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders[j].Name")
$sValue = $oJResp.StringOf("RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders[j].Value")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders[j].Name")
$sValue = $oJResp.StringOf("RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders[j].Value")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders[j].Name")
$sValue = $oJResp.StringOf("RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders[j].Value")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].RuleLabels")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("RuleGroup.Rules[i].RuleLabels[j].Name")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.AndStatement.Statements")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.AndStatement.Statements[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iPriority = $oJResp.IntOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations[j].Priority")
$sV_Type = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations[j].Type")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.GeoMatchStatement.CountryCodes")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.GeoMatchStatement.CountryCodes[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ExcludedRules")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ExcludedRules[j].Name")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sLoginPath = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].LoginPath")
$sIdentifier = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].PasswordField.Identifier")
$sPayloadType = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].PayloadType")
$sUsernameFieldIdentifier = $oJResp.StringOf("RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].UsernameField.Identifier")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.OrStatement.Statements")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.OrStatement.Statements[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iPriority = $oJResp.IntOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations[j].Priority")
$sV_Type = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations[j].Type")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iPriority = $oJResp.IntOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations[j].Priority")
$sV_Type = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations[j].Type")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ExcludedRules")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sName = $oJResp.StringOf("RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ExcludedRules[j].Name")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iPriority = $oJResp.IntOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations[j].Priority")
$sV_Type = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations[j].Type")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iPriority = $oJResp.IntOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations[j].Priority")
$sV_Type = $oJResp.StringOf("RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations[j].Type")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths")
While $iJ < $iCount_j
$oJResp.J = $iJ
$strVal = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iPriority = $oJResp.IntOf("RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations[j].Priority")
$sV_Type = $oJResp.StringOf("RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations[j].Type")
$iJ = $iJ + 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
; }
; }
; }