Chilkat Online Tools

GetRuleGroup DataFlex Example

AWS WAFV2

Use ChilkatAx-9.5.0-win32.pkg

Procedure Test
    Handle hoRest
    Boolean iSuccess
    Variant vAuthAws
    Handle hoAuthAws
    Handle hoJson
    Variant vSbRequestBody
    Handle hoSbRequestBody
    Variant vSbResponseBody
    Handle hoSbResponseBody
    Integer iRespStatusCode
    Handle hoJResp
    String sCustomResponseBodyKey
    Integer iResponseCode
    Integer iImmunityTime
    Integer iPriority
    String sOversizeHandling
    String sMatchScope
    String sCookiesOversizeHandling
    String sHeadersMatchScope
    String sHeadersOversizeHandling
    String sInvalidFallbackBehavior
    String sJsonBodyMatchScope
    String sJsonBodyOversizeHandling
    String sSingleHeaderName
    String sSingleQueryArgumentName
    String sPositionalConstraint
    Integer iSearchString
    String sFallbackBehavior
    String sHeaderName
    String sIPSetReferenceStatementARN
    String sIPSetForwardedIPConfigFallbackBehavior
    String sIPSetForwardedIPConfigHeaderName
    String sPosition
    String sKey
    String sScope
    String sManagedRuleGroupStatementName
    String sScopeDownStatement
    String sVendorName
    String sVersion
    String sStatement
    String sAggregateKeyType
    String sForwardedIPConfigFallbackBehavior
    String sForwardedIPConfigHeaderName
    Integer iLimit
    String sRateBasedStatementScopeDownStatement
    String sBodyOversizeHandling
    String sCookiesMatchScope
    String sJsonBodyInvalidFallbackBehavior
    String sRegexString
    String sRegexPatternSetReferenceStatementARN
    String sRuleGroupReferenceStatementARN
    String sComparisonOperator
    Integer iSize
    Integer iVisibilityConfigCloudWatchMetricsEnabled
    String sVisibilityConfigMetricName
    Integer iVisibilityConfigSampledRequestsEnabled
    Integer j
    Integer iCount_j
    String sValue
    String sStrVal
    String sV_Type
    String sLoginPath
    String sIdentifier
    String sPayloadType
    String sUsernameFieldIdentifier
    String sLockToken
    String sARN
    Integer iCapacity
    String sContent
    String sContentType
    String sDescription
    String sId
    String sLabelNamespace
    String sName
    Integer iCloudWatchMetricsEnabled
    String sMetricName
    Integer iSampledRequestsEnabled
    Integer i
    Integer iCount_i
    String sTemp1
    Integer iTemp1

    // This example requires the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    Get Create (RefClass(cComChilkatRest)) To hoRest
    If (Not(IsComObjectCreated(hoRest))) Begin
        Send CreateComObject of hoRest
    End

    Get Create (RefClass(cComChilkatAuthAws)) To hoAuthAws
    If (Not(IsComObjectCreated(hoAuthAws))) Begin
        Send CreateComObject of hoAuthAws
    End
    Set ComAccessKey Of hoAuthAws To "AWS_ACCESS_KEY"
    Set ComSecretKey Of hoAuthAws To "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.)
    Set ComRegion Of hoAuthAws To "us-west-2"
    Set ComServiceName Of hoAuthAws To "wafv2"
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    Get pvComObject of hoAuthAws to vAuthAws
    Get ComSetAuthAws Of hoRest vAuthAws To iSuccess

    // URL: https://wafv2.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    Get ComConnect Of hoRest "wafv2.us-west-2.amazonaws.com" 443 True True To iSuccess
    If (iSuccess <> True) Begin
        Get ComConnectFailReason Of hoRest To iTemp1
        Showln "ConnectFailReason: " iTemp1
        Get ComLastErrorText Of hoRest To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    // 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

    Get Create (RefClass(cComChilkatJsonObject)) To hoJson
    If (Not(IsComObjectCreated(hoJson))) Begin
        Send CreateComObject of hoJson
    End
    Get ComUpdateString Of hoJson "ARN" "string" To iSuccess
    Get ComUpdateString Of hoJson "Id" "string" To iSuccess
    Get ComUpdateString Of hoJson "Name" "string" To iSuccess
    Get ComUpdateString Of hoJson "Scope" "string" To iSuccess

    // The JSON request body created by the above code:

    // {
    //   "ARN": "string",
    //   "Id": "string",
    //   "Name": "string",
    //   "Scope": "string"
    // }

    Get ComAddHeader Of hoRest "Content-Type" "application/x-amz-json-1.1" To iSuccess
    Get ComAddHeader Of hoRest "X-Amz-Target" "AWSWAF_20190729.GetRuleGroup" To iSuccess

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbRequestBody
    If (Not(IsComObjectCreated(hoSbRequestBody))) Begin
        Send CreateComObject of hoSbRequestBody
    End
    Get pvComObject of hoSbRequestBody to vSbRequestBody
    Get ComEmitSb Of hoJson vSbRequestBody To iSuccess
    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
    If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
        Send CreateComObject of hoSbResponseBody
    End
    Get pvComObject of hoSbRequestBody to vSbRequestBody
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComFullRequestSb Of hoRest "POST" "/" vSbRequestBody vSbResponseBody To iSuccess
    If (iSuccess <> True) Begin
        Get ComLastErrorText Of hoRest To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get ComResponseStatusCode Of hoRest To iRespStatusCode
    Showln "response status code = " iRespStatusCode
    If (iRespStatusCode <> 200) Begin
        Showln "Response Header:"
        Get ComResponseHeader Of hoRest To sTemp1
        Showln sTemp1
        Showln "Response Body:"
        Get ComGetAsString Of hoSbResponseBody To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
    If (Not(IsComObjectCreated(hoJResp))) Begin
        Send CreateComObject of hoJResp
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess

    // 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

    Get ComStringOf Of hoJResp "LockToken" To sLockToken
    Get ComStringOf Of hoJResp "RuleGroup.ARN" To sARN
    Get ComIntOf Of hoJResp "RuleGroup.Capacity" To iCapacity
    Get ComStringOf Of hoJResp "RuleGroup.CustomResponseBodies.string.Content" To sContent
    Get ComStringOf Of hoJResp "RuleGroup.CustomResponseBodies.string.ContentType" To sContentType
    Get ComStringOf Of hoJResp "RuleGroup.Description" To sDescription
    Get ComStringOf Of hoJResp "RuleGroup.Id" To sId
    Get ComStringOf Of hoJResp "RuleGroup.LabelNamespace" To sLabelNamespace
    Get ComStringOf Of hoJResp "RuleGroup.Name" To sName
    Get ComIntOf Of hoJResp "RuleGroup.VisibilityConfig.CloudWatchMetricsEnabled" To iCloudWatchMetricsEnabled
    Get ComStringOf Of hoJResp "RuleGroup.VisibilityConfig.MetricName" To sMetricName
    Get ComIntOf Of hoJResp "RuleGroup.VisibilityConfig.SampledRequestsEnabled" To iSampledRequestsEnabled
    Move 0 To i
    Get ComSizeOfArray Of hoJResp "RuleGroup.AvailableLabels" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "RuleGroup.AvailableLabels[i].Name" To sName
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "RuleGroup.ConsumedLabels" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "RuleGroup.ConsumedLabels[i].Name" To sName
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "RuleGroup.Rules" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Block.CustomResponse.CustomResponseBodyKey" To sCustomResponseBodyKey
        Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseCode" To iResponseCode
        Get ComIntOf Of hoJResp "RuleGroup.Rules[i].CaptchaConfig.ImmunityTimeProperty.ImmunityTime" To iImmunityTime
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Name" To sName
        Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Priority" To iPriority
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Body.OversizeHandling" To sOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchScope" To sMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.OversizeHandling" To sCookiesOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchScope" To sHeadersMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.OversizeHandling" To sHeadersOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior" To sInvalidFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchScope" To sJsonBodyMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.OversizeHandling" To sJsonBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.SingleHeader.Name" To sSingleHeaderName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.SingleQueryArgument.Name" To sSingleQueryArgumentName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.PositionalConstraint" To sPositionalConstraint
        Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.SearchString" To iSearchString
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.GeoMatchStatement.ForwardedIPConfig.FallbackBehavior" To sFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.GeoMatchStatement.ForwardedIPConfig.HeaderName" To sHeaderName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.IPSetReferenceStatement.ARN" To sIPSetReferenceStatementARN
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.FallbackBehavior" To sIPSetForwardedIPConfigFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.HeaderName" To sIPSetForwardedIPConfigHeaderName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.IPSetReferenceStatement.IPSetForwardedIPConfig.Position" To sPosition
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.LabelMatchStatement.Key" To sKey
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.LabelMatchStatement.Scope" To sScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.Name" To sManagedRuleGroupStatementName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ScopeDownStatement" To sScopeDownStatement
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.VendorName" To sVendorName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.Version" To sVersion
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.NotStatement.Statement" To sStatement
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RateBasedStatement.AggregateKeyType" To sAggregateKeyType
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RateBasedStatement.ForwardedIPConfig.FallbackBehavior" To sForwardedIPConfigFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RateBasedStatement.ForwardedIPConfig.HeaderName" To sForwardedIPConfigHeaderName
        Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.RateBasedStatement.Limit" To iLimit
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RateBasedStatement.ScopeDownStatement" To sRateBasedStatementScopeDownStatement
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Body.OversizeHandling" To sBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchScope" To sCookiesMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.OversizeHandling" To sCookiesOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchScope" To sHeadersMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.OversizeHandling" To sHeadersOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior" To sJsonBodyInvalidFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchScope" To sJsonBodyMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.OversizeHandling" To sJsonBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.SingleHeader.Name" To sSingleHeaderName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.SingleQueryArgument.Name" To sSingleQueryArgumentName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.RegexString" To sRegexString
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.ARN" To sRegexPatternSetReferenceStatementARN
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Body.OversizeHandling" To sBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchScope" To sCookiesMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.OversizeHandling" To sCookiesOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchScope" To sHeadersMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.OversizeHandling" To sHeadersOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior" To sJsonBodyInvalidFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchScope" To sJsonBodyMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.OversizeHandling" To sJsonBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.SingleHeader.Name" To sSingleHeaderName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.SingleQueryArgument.Name" To sSingleQueryArgumentName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ARN" To sRuleGroupReferenceStatementARN
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.ComparisonOperator" To sComparisonOperator
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Body.OversizeHandling" To sBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchScope" To sCookiesMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.OversizeHandling" To sCookiesOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchScope" To sHeadersMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.OversizeHandling" To sHeadersOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior" To sJsonBodyInvalidFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchScope" To sJsonBodyMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.OversizeHandling" To sJsonBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.SingleHeader.Name" To sSingleHeaderName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.SingleQueryArgument.Name" To sSingleQueryArgumentName
        Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.Size" To iSize
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Body.OversizeHandling" To sBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchScope" To sCookiesMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.OversizeHandling" To sCookiesOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchScope" To sHeadersMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.OversizeHandling" To sHeadersOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior" To sJsonBodyInvalidFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchScope" To sJsonBodyMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.OversizeHandling" To sJsonBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.SingleHeader.Name" To sSingleHeaderName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.SingleQueryArgument.Name" To sSingleQueryArgumentName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Body.OversizeHandling" To sBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchScope" To sCookiesMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.OversizeHandling" To sCookiesOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchScope" To sHeadersMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.OversizeHandling" To sHeadersOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.InvalidFallbackBehavior" To sJsonBodyInvalidFallbackBehavior
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchScope" To sJsonBodyMatchScope
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.OversizeHandling" To sJsonBodyOversizeHandling
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.SingleHeader.Name" To sSingleHeaderName
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.SingleQueryArgument.Name" To sSingleQueryArgumentName
        Get ComIntOf Of hoJResp "RuleGroup.Rules[i].VisibilityConfig.CloudWatchMetricsEnabled" To iVisibilityConfigCloudWatchMetricsEnabled
        Get ComStringOf Of hoJResp "RuleGroup.Rules[i].VisibilityConfig.MetricName" To sVisibilityConfigMetricName
        Get ComIntOf Of hoJResp "RuleGroup.Rules[i].VisibilityConfig.SampledRequestsEnabled" To iVisibilityConfigSampledRequestsEnabled
        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders[j].Name" To sName
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Allow.CustomRequestHandling.InsertHeaders[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders[j].Name" To sName
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Block.CustomResponse.ResponseHeaders[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders[j].Name" To sName
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Captcha.CustomRequestHandling.InsertHeaders[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders[j].Name" To sName
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Action.Count.CustomRequestHandling.InsertHeaders[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders[j].Name" To sName
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].OverrideAction.Count.CustomRequestHandling.InsertHeaders[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].RuleLabels" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].RuleLabels[j].Name" To sName
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.AndStatement.Statements" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.AndStatement.Statements[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations[j].Priority" To iPriority
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ByteMatchStatement.TextTransformations[j].Type" To sV_Type
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.GeoMatchStatement.CountryCodes" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.GeoMatchStatement.CountryCodes[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ExcludedRules" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ExcludedRules[j].Name" To sName
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].LoginPath" To sLoginPath
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].PasswordField.Identifier" To sIdentifier
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].PayloadType" To sPayloadType
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.ManagedRuleGroupStatement.ManagedRuleGroupConfigs[j].UsernameField.Identifier" To sUsernameFieldIdentifier
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.OrStatement.Statements" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.OrStatement.Statements[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations[j].Priority" To iPriority
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexMatchStatement.TextTransformations[j].Type" To sV_Type
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations[j].Priority" To iPriority
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RegexPatternSetReferenceStatement.TextTransformations[j].Type" To sV_Type
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ExcludedRules" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.RuleGroupReferenceStatement.ExcludedRules[j].Name" To sName
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations[j].Priority" To iPriority
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SizeConstraintStatement.TextTransformations[j].Type" To sV_Type
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations[j].Priority" To iPriority
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.SqliMatchStatement.TextTransformations[j].Type" To sV_Type
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.ExcludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Cookies.MatchPattern.IncludedCookies[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.ExcludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.Headers.MatchPattern.IncludedHeaders[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.FieldToMatch.JsonBody.MatchPattern.IncludedPaths[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComIntOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations[j].Priority" To iPriority
            Get ComStringOf Of hoJResp "RuleGroup.Rules[i].Statement.XssMatchStatement.TextTransformations[j].Type" To sV_Type
            Move (j + 1) To j
        Loop

        Move (i + 1) To i
    Loop

    // 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
    //     }
    //   }
    // }


End_Procedure