Chilkat Online Tools

BatchRead DataFlex Example

Amazon Cloud Directory

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 sMessage
    String sV_Type
    String sObjectIdentifier
    String sNextToken
    String sListIncomingTypedLinksNextToken
    String sListIndexNextToken
    String sListObjectAttributesNextToken
    String sV_String
    String sListObjectChildrenNextToken
    String sListObjectParentPathsNextToken
    String sListObjectParentsNextToken
    String sListObjectPoliciesNextToken
    String sListOutgoingTypedLinksNextToken
    String sListPolicyAttachmentsNextToken
    String sLookupPolicyNextToken
    Integer j
    Integer iCount_j
    String sFacetName
    String sName
    String sSchemaArn
    Integer iBinaryValue
    Integer iBooleanValue
    Integer iDatetimeValue
    String sNumberValue
    String sStringValue
    String sKeyFacetName
    String sKeyName
    String sKeySchemaArn
    Integer iValueBinaryValue
    Integer iValueBooleanValue
    Integer iValueDatetimeValue
    String sValueNumberValue
    String sValueStringValue
    Integer k
    Integer iCount_k
    String sSelector
    String sTargetObjectReferenceSelector
    String sTypedLinkFacetSchemaArn
    String sTypedLinkName
    String sAttributeName
    String sPath
    String sStrVal
    String sLinkName
    String sSourceObjectReferenceSelector
    String sTypedLinkFacetTypedLinkName
    String sPolicyId
    String sPolicyType
    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 "clouddirectory"
    // 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://clouddirectory.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    Get ComConnect Of hoRest "clouddirectory.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 "Operations[0].GetLinkAttributes.AttributeNames[0]" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].AttributeName" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.BinaryValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.BooleanValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.DatetimeValue" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.NumberValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.StringValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.SourceObjectReference.Selector" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.TargetObjectReference.Selector" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.TypedLinkFacet.SchemaArn" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetLinkAttributes.TypedLinkSpecifier.TypedLinkFacet.TypedLinkName" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetObjectAttributes.AttributeNames[0]" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetObjectAttributes.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetObjectAttributes.SchemaFacet.FacetName" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetObjectAttributes.SchemaFacet.SchemaArn" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].GetObjectInformation.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListAttachedIndices.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListAttachedIndices.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListAttachedIndices.TargetReference.Selector" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].AttributeName" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndMode" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.BinaryValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.BooleanValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.DatetimeValue" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.NumberValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.StringValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartMode" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.BinaryValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.BooleanValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.DatetimeValue" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.NumberValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.StringValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterTypedLink.SchemaArn" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.FilterTypedLink.TypedLinkName" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIncomingTypedLinks.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIncomingTypedLinks.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.IndexReference.Selector" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIndex.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].AttributeKey.FacetName" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].AttributeKey.Name" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].AttributeKey.SchemaArn" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndMode" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.BinaryValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.BooleanValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.DatetimeValue" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.NumberValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.StringValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartMode" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.BinaryValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.BooleanValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.DatetimeValue" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.NumberValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.StringValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectAttributes.FacetFilter.FacetName" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectAttributes.FacetFilter.SchemaArn" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListObjectAttributes.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectAttributes.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectAttributes.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListObjectChildren.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectChildren.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectChildren.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListObjectParentPaths.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectParentPaths.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectParentPaths.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListObjectParents.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectParents.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectParents.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListObjectPolicies.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectPolicies.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListObjectPolicies.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].AttributeName" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndMode" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.BinaryValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.BooleanValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.DatetimeValue" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.NumberValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.StringValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartMode" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.BinaryValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.BooleanValue" 123 To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.DatetimeValue" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.NumberValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.StringValue" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterTypedLink.SchemaArn" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.FilterTypedLink.TypedLinkName" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListOutgoingTypedLinks.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListOutgoingTypedLinks.ObjectReference.Selector" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].ListPolicyAttachments.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListPolicyAttachments.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].ListPolicyAttachments.PolicyReference.Selector" "string" To iSuccess
    Get ComUpdateInt Of hoJson "Operations[0].LookupPolicy.MaxResults" 123 To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].LookupPolicy.NextToken" "string" To iSuccess
    Get ComUpdateString Of hoJson "Operations[0].LookupPolicy.ObjectReference.Selector" "string" To iSuccess

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

    // {
    //   "Operations": [
    //     {
    //       "GetLinkAttributes": {
    //         "AttributeNames": [
    //           "string"
    //         ],
    //         "TypedLinkSpecifier": {
    //           "IdentityAttributeValues": [
    //             {
    //               "AttributeName": "string",
    //               "Value": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               }
    //             }
    //           ],
    //           "SourceObjectReference": {
    //             "Selector": "string"
    //           },
    //           "TargetObjectReference": {
    //             "Selector": "string"
    //           },
    //           "TypedLinkFacet": {
    //             "SchemaArn": "string",
    //             "TypedLinkName": "string"
    //           }
    //         }
    //       },
    //       "GetObjectAttributes": {
    //         "AttributeNames": [
    //           "string"
    //         ],
    //         "ObjectReference": {
    //           "Selector": "string"
    //         },
    //         "SchemaFacet": {
    //           "FacetName": "string",
    //           "SchemaArn": "string"
    //         }
    //       },
    //       "GetObjectInformation": {
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListAttachedIndices": {
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "TargetReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListIncomingTypedLinks": {
    //         "FilterAttributeRanges": [
    //           {
    //             "AttributeName": "string",
    //             "Range": {
    //               "EndMode": "string",
    //               "EndValue": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               },
    //               "StartMode": "string",
    //               "StartValue": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               }
    //             }
    //           }
    //         ],
    //         "FilterTypedLink": {
    //           "SchemaArn": "string",
    //           "TypedLinkName": "string"
    //         },
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListIndex": {
    //         "IndexReference": {
    //           "Selector": "string"
    //         },
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "RangesOnIndexedValues": [
    //           {
    //             "AttributeKey": {
    //               "FacetName": "string",
    //               "Name": "string",
    //               "SchemaArn": "string"
    //             },
    //             "Range": {
    //               "EndMode": "string",
    //               "EndValue": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               },
    //               "StartMode": "string",
    //               "StartValue": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               }
    //             }
    //           }
    //         ]
    //       },
    //       "ListObjectAttributes": {
    //         "FacetFilter": {
    //           "FacetName": "string",
    //           "SchemaArn": "string"
    //         },
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListObjectChildren": {
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListObjectParentPaths": {
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListObjectParents": {
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListObjectPolicies": {
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListOutgoingTypedLinks": {
    //         "FilterAttributeRanges": [
    //           {
    //             "AttributeName": "string",
    //             "Range": {
    //               "EndMode": "string",
    //               "EndValue": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               },
    //               "StartMode": "string",
    //               "StartValue": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               }
    //             }
    //           }
    //         ],
    //         "FilterTypedLink": {
    //           "SchemaArn": "string",
    //           "TypedLinkName": "string"
    //         },
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "ListPolicyAttachments": {
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "PolicyReference": {
    //           "Selector": "string"
    //         }
    //       },
    //       "LookupPolicy": {
    //         "MaxResults": number,
    //         "NextToken": "string",
    //         "ObjectReference": {
    //           "Selector": "string"
    //         }
    //       }
    //     }
    //   ]
    // }

    Get ComAddHeader Of hoRest "Content-Type" "application/x-amz-json-1.1" To iSuccess
    Get ComAddHeader Of hoRest "X-Amz-Target" "BatchRead" 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" "/amazonclouddirectory/2017-01-11/batchread" 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

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "Responses" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "Responses[i].ExceptionResponse.Message" To sMessage
        Get ComStringOf Of hoJResp "Responses[i].ExceptionResponse.Type" To sV_Type
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectInformation.ObjectIdentifier" To sObjectIdentifier
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.NextToken" To sNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.NextToken" To sListIncomingTypedLinksNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.NextToken" To sListIndexNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.NextToken" To sListObjectAttributesNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectChildren.Children.string" To sV_String
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectChildren.NextToken" To sListObjectChildrenNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParentPaths.NextToken" To sListObjectParentPathsNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParents.NextToken" To sListObjectParentsNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectPolicies.NextToken" To sListObjectPoliciesNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.NextToken" To sListOutgoingTypedLinksNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListPolicyAttachments.NextToken" To sListPolicyAttachmentsNextToken
        Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.LookupPolicy.NextToken" To sLookupPolicyNextToken
        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Key.FacetName" To sFacetName
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Key.Name" To sName
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Key.SchemaArn" To sSchemaArn
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.BinaryValue" To iBinaryValue
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.BooleanValue" To iBooleanValue
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.DatetimeValue" To iDatetimeValue
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.NumberValue" To sNumberValue
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.StringValue" To sStringValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Key.FacetName" To sKeyFacetName
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Key.Name" To sKeyName
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Key.SchemaArn" To sKeySchemaArn
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.BinaryValue" To iValueBinaryValue
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.BooleanValue" To iValueBooleanValue
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.DatetimeValue" To iValueDatetimeValue
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.NumberValue" To sValueNumberValue
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.StringValue" To sValueStringValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.GetObjectInformation.SchemaFacets" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectInformation.SchemaFacets[j].FacetName" To sFacetName
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.GetObjectInformation.SchemaFacets[j].SchemaArn" To sSchemaArn
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].ObjectIdentifier" To sObjectIdentifier
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Key.FacetName" To sKeyFacetName
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Key.Name" To sKeyName
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Key.SchemaArn" To sKeySchemaArn
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.BinaryValue" To iValueBinaryValue
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.BooleanValue" To iValueBooleanValue
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.DatetimeValue" To iValueDatetimeValue
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.NumberValue" To sValueNumberValue
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.StringValue" To sValueStringValue
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].SourceObjectReference.Selector" To sSelector
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].TargetObjectReference.Selector" To sTargetObjectReferenceSelector
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].TypedLinkFacet.SchemaArn" To sTypedLinkFacetSchemaArn
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].TypedLinkFacet.TypedLinkName" To sTypedLinkName
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].AttributeName" To sAttributeName
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.BinaryValue" To iValueBinaryValue
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.BooleanValue" To iValueBooleanValue
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.DatetimeValue" To iValueDatetimeValue
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.NumberValue" To sValueNumberValue
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.StringValue" To sValueStringValue
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].ObjectIdentifier" To sObjectIdentifier
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Key.FacetName" To sKeyFacetName
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Key.Name" To sKeyName
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Key.SchemaArn" To sKeySchemaArn
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.BinaryValue" To iValueBinaryValue
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.BooleanValue" To iValueBooleanValue
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.DatetimeValue" To iValueDatetimeValue
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.NumberValue" To sValueNumberValue
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.StringValue" To sValueStringValue
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Key.FacetName" To sKeyFacetName
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Key.Name" To sKeyName
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Key.SchemaArn" To sKeySchemaArn
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.BinaryValue" To iValueBinaryValue
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.BooleanValue" To iValueBooleanValue
            Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.DatetimeValue" To iValueDatetimeValue
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.NumberValue" To sValueNumberValue
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.StringValue" To sValueStringValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParentPaths.PathToObjectIdentifiersList" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParentPaths.PathToObjectIdentifiersList[j].Path" To sPath
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParentPaths.PathToObjectIdentifiersList[j].ObjectIdentifiers" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParentPaths.PathToObjectIdentifiersList[j].ObjectIdentifiers[k]" To sStrVal
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParents.ParentLinks" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParents.ParentLinks[j].LinkName" To sLinkName
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectParents.ParentLinks[j].ObjectIdentifier" To sObjectIdentifier
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListObjectPolicies.AttachedPolicyIds" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListObjectPolicies.AttachedPolicyIds[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].SourceObjectReference.Selector" To sSourceObjectReferenceSelector
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].TargetObjectReference.Selector" To sTargetObjectReferenceSelector
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].TypedLinkFacet.SchemaArn" To sTypedLinkFacetSchemaArn
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].TypedLinkFacet.TypedLinkName" To sTypedLinkFacetTypedLinkName
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].AttributeName" To sAttributeName
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.BinaryValue" To iValueBinaryValue
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.BooleanValue" To iValueBooleanValue
                Get ComIntOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.DatetimeValue" To iValueDatetimeValue
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.NumberValue" To sValueNumberValue
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.StringValue" To sValueStringValue
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.ListPolicyAttachments.ObjectIdentifiers" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.ListPolicyAttachments.ObjectIdentifiers[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Path" To sPath
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Policies" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Policies[k].ObjectIdentifier" To sObjectIdentifier
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Policies[k].PolicyId" To sPolicyId
                Get ComStringOf Of hoJResp "Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Policies[k].PolicyType" To sPolicyType
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move (i + 1) To i
    Loop

    // A sample JSON response body parsed by the above code:

    // {
    //   "Responses": [
    //     {
    //       "ExceptionResponse": {
    //         "Message": "string",
    //         "Type": "string"
    //       },
    //       "SuccessfulResponse": {
    //         "GetLinkAttributes": {
    //           "Attributes": [
    //             {
    //               "Key": {
    //                 "FacetName": "string",
    //                 "Name": "string",
    //                 "SchemaArn": "string"
    //               },
    //               "Value": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               }
    //             }
    //           ]
    //         },
    //         "GetObjectAttributes": {
    //           "Attributes": [
    //             {
    //               "Key": {
    //                 "FacetName": "string",
    //                 "Name": "string",
    //                 "SchemaArn": "string"
    //               },
    //               "Value": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               }
    //             }
    //           ]
    //         },
    //         "GetObjectInformation": {
    //           "ObjectIdentifier": "string",
    //           "SchemaFacets": [
    //             {
    //               "FacetName": "string",
    //               "SchemaArn": "string"
    //             }
    //           ]
    //         },
    //         "ListAttachedIndices": {
    //           "IndexAttachments": [
    //             {
    //               "IndexedAttributes": [
    //                 {
    //                   "Key": {
    //                     "FacetName": "string",
    //                     "Name": "string",
    //                     "SchemaArn": "string"
    //                   },
    //                   "Value": {
    //                     "BinaryValue": blob,
    //                     "BooleanValue": boolean,
    //                     "DatetimeValue": number,
    //                     "NumberValue": "string",
    //                     "StringValue": "string"
    //                   }
    //                 }
    //               ],
    //               "ObjectIdentifier": "string"
    //             }
    //           ],
    //           "NextToken": "string"
    //         },
    //         "ListIncomingTypedLinks": {
    //           "LinkSpecifiers": [
    //             {
    //               "IdentityAttributeValues": [
    //                 {
    //                   "AttributeName": "string",
    //                   "Value": {
    //                     "BinaryValue": blob,
    //                     "BooleanValue": boolean,
    //                     "DatetimeValue": number,
    //                     "NumberValue": "string",
    //                     "StringValue": "string"
    //                   }
    //                 }
    //               ],
    //               "SourceObjectReference": {
    //                 "Selector": "string"
    //               },
    //               "TargetObjectReference": {
    //                 "Selector": "string"
    //               },
    //               "TypedLinkFacet": {
    //                 "SchemaArn": "string",
    //                 "TypedLinkName": "string"
    //               }
    //             }
    //           ],
    //           "NextToken": "string"
    //         },
    //         "ListIndex": {
    //           "IndexAttachments": [
    //             {
    //               "IndexedAttributes": [
    //                 {
    //                   "Key": {
    //                     "FacetName": "string",
    //                     "Name": "string",
    //                     "SchemaArn": "string"
    //                   },
    //                   "Value": {
    //                     "BinaryValue": blob,
    //                     "BooleanValue": boolean,
    //                     "DatetimeValue": number,
    //                     "NumberValue": "string",
    //                     "StringValue": "string"
    //                   }
    //                 }
    //               ],
    //               "ObjectIdentifier": "string"
    //             }
    //           ],
    //           "NextToken": "string"
    //         },
    //         "ListObjectAttributes": {
    //           "Attributes": [
    //             {
    //               "Key": {
    //                 "FacetName": "string",
    //                 "Name": "string",
    //                 "SchemaArn": "string"
    //               },
    //               "Value": {
    //                 "BinaryValue": blob,
    //                 "BooleanValue": boolean,
    //                 "DatetimeValue": number,
    //                 "NumberValue": "string",
    //                 "StringValue": "string"
    //               }
    //             }
    //           ],
    //           "NextToken": "string"
    //         },
    //         "ListObjectChildren": {
    //           "Children": {
    //             "string": "string"
    //           },
    //           "NextToken": "string"
    //         },
    //         "ListObjectParentPaths": {
    //           "NextToken": "string",
    //           "PathToObjectIdentifiersList": [
    //             {
    //               "ObjectIdentifiers": [
    //                 "string"
    //               ],
    //               "Path": "string"
    //             }
    //           ]
    //         },
    //         "ListObjectParents": {
    //           "NextToken": "string",
    //           "ParentLinks": [
    //             {
    //               "LinkName": "string",
    //               "ObjectIdentifier": "string"
    //             }
    //           ]
    //         },
    //         "ListObjectPolicies": {
    //           "AttachedPolicyIds": [
    //             "string"
    //           ],
    //           "NextToken": "string"
    //         },
    //         "ListOutgoingTypedLinks": {
    //           "NextToken": "string",
    //           "TypedLinkSpecifiers": [
    //             {
    //               "IdentityAttributeValues": [
    //                 {
    //                   "AttributeName": "string",
    //                   "Value": {
    //                     "BinaryValue": blob,
    //                     "BooleanValue": boolean,
    //                     "DatetimeValue": number,
    //                     "NumberValue": "string",
    //                     "StringValue": "string"
    //                   }
    //                 }
    //               ],
    //               "SourceObjectReference": {
    //                 "Selector": "string"
    //               },
    //               "TargetObjectReference": {
    //                 "Selector": "string"
    //               },
    //               "TypedLinkFacet": {
    //                 "SchemaArn": "string",
    //                 "TypedLinkName": "string"
    //               }
    //             }
    //           ]
    //         },
    //         "ListPolicyAttachments": {
    //           "NextToken": "string",
    //           "ObjectIdentifiers": [
    //             "string"
    //           ]
    //         },
    //         "LookupPolicy": {
    //           "NextToken": "string",
    //           "PolicyToPathList": [
    //             {
    //               "Path": "string",
    //               "Policies": [
    //                 {
    //                   "ObjectIdentifier": "string",
    //                   "PolicyId": "string",
    //                   "PolicyType": "string"
    //                 }
    //               ]
    //             }
    //           ]
    //         }
    //       }
    //     }
    //   ]
    // }


End_Procedure