Chilkat Online Tools

BatchRead unicodeC Example

Amazon Cloud Directory

#include <C_CkRestW.h>
#include <C_CkAuthAwsW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>

void ChilkatSample(void)
    {
    HCkRestW rest;
    BOOL success;
    HCkAuthAwsW authAws;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkStringBuilderW sbResponseBody;
    int respStatusCode;
    HCkJsonObjectW jResp;
    const wchar_t *Message;
    const wchar_t *v_Type;
    const wchar_t *ObjectIdentifier;
    const wchar_t *NextToken;
    const wchar_t *ListIncomingTypedLinksNextToken;
    const wchar_t *ListIndexNextToken;
    const wchar_t *ListObjectAttributesNextToken;
    const wchar_t *v_String;
    const wchar_t *ListObjectChildrenNextToken;
    const wchar_t *ListObjectParentPathsNextToken;
    const wchar_t *ListObjectParentsNextToken;
    const wchar_t *ListObjectPoliciesNextToken;
    const wchar_t *ListOutgoingTypedLinksNextToken;
    const wchar_t *ListPolicyAttachmentsNextToken;
    const wchar_t *LookupPolicyNextToken;
    int j;
    int count_j;
    const wchar_t *FacetName;
    const wchar_t *Name;
    const wchar_t *SchemaArn;
    int BinaryValue;
    int BooleanValue;
    int DatetimeValue;
    const wchar_t *NumberValue;
    const wchar_t *StringValue;
    const wchar_t *KeyFacetName;
    const wchar_t *KeyName;
    const wchar_t *KeySchemaArn;
    int ValueBinaryValue;
    int ValueBooleanValue;
    int ValueDatetimeValue;
    const wchar_t *ValueNumberValue;
    const wchar_t *ValueStringValue;
    int k;
    int count_k;
    const wchar_t *Selector;
    const wchar_t *TargetObjectReferenceSelector;
    const wchar_t *TypedLinkFacetSchemaArn;
    const wchar_t *TypedLinkName;
    const wchar_t *AttributeName;
    const wchar_t *Path;
    const wchar_t *strVal;
    const wchar_t *LinkName;
    const wchar_t *SourceObjectReferenceSelector;
    const wchar_t *TypedLinkFacetTypedLinkName;
    const wchar_t *PolicyId;
    const wchar_t *PolicyType;
    int i;
    int count_i;

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

    rest = CkRestW_Create();

    authAws = CkAuthAwsW_Create();
    CkAuthAwsW_putAccessKey(authAws,L"AWS_ACCESS_KEY");
    CkAuthAwsW_putSecretKey(authAws,L"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.)
    CkAuthAwsW_putRegion(authAws,L"us-west-2");
    CkAuthAwsW_putServiceName(authAws,L"clouddirectory");
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    CkRestW_SetAuthAws(rest,authAws);

    // URL: https://clouddirectory.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = CkRestW_Connect(rest,L"clouddirectory.us-west-2.amazonaws.com",443,TRUE,TRUE);
    if (success != TRUE) {
        wprintf(L"ConnectFailReason: %d\n",CkRestW_getConnectFailReason(rest));
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        return;
    }

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

    json = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetLinkAttributes.AttributeNames[0]",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].AttributeName",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.BinaryValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.BooleanValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.DatetimeValue",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.NumberValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.IdentityAttributeValues[0].Value.StringValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.SourceObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.TargetObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.TypedLinkFacet.SchemaArn",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetLinkAttributes.TypedLinkSpecifier.TypedLinkFacet.TypedLinkName",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetObjectAttributes.AttributeNames[0]",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetObjectAttributes.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetObjectAttributes.SchemaFacet.FacetName",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetObjectAttributes.SchemaFacet.SchemaArn",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].GetObjectInformation.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListAttachedIndices.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListAttachedIndices.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListAttachedIndices.TargetReference.Selector",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].AttributeName",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndMode",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.BinaryValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.BooleanValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.DatetimeValue",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.NumberValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.EndValue.StringValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartMode",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.BinaryValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.BooleanValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.DatetimeValue",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.NumberValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterAttributeRanges[0].Range.StartValue.StringValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterTypedLink.SchemaArn",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.FilterTypedLink.TypedLinkName",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIncomingTypedLinks.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIncomingTypedLinks.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.IndexReference.Selector",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIndex.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].AttributeKey.FacetName",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].AttributeKey.Name",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].AttributeKey.SchemaArn",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndMode",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.BinaryValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.BooleanValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.DatetimeValue",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.NumberValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.EndValue.StringValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartMode",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.BinaryValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.BooleanValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.DatetimeValue",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.NumberValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListIndex.RangesOnIndexedValues[0].Range.StartValue.StringValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectAttributes.FacetFilter.FacetName",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectAttributes.FacetFilter.SchemaArn",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListObjectAttributes.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectAttributes.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectAttributes.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListObjectChildren.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectChildren.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectChildren.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListObjectParentPaths.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectParentPaths.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectParentPaths.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListObjectParents.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectParents.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectParents.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListObjectPolicies.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectPolicies.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListObjectPolicies.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].AttributeName",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndMode",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.BinaryValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.BooleanValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.DatetimeValue",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.NumberValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.EndValue.StringValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartMode",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.BinaryValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.BooleanValue",123);
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.DatetimeValue",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.NumberValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterAttributeRanges[0].Range.StartValue.StringValue",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterTypedLink.SchemaArn",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.FilterTypedLink.TypedLinkName",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListOutgoingTypedLinks.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListOutgoingTypedLinks.ObjectReference.Selector",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].ListPolicyAttachments.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListPolicyAttachments.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].ListPolicyAttachments.PolicyReference.Selector",L"string");
    CkJsonObjectW_UpdateInt(json,L"Operations[0].LookupPolicy.MaxResults",123);
    CkJsonObjectW_UpdateString(json,L"Operations[0].LookupPolicy.NextToken",L"string");
    CkJsonObjectW_UpdateString(json,L"Operations[0].LookupPolicy.ObjectReference.Selector",L"string");

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

    CkRestW_AddHeader(rest,L"Content-Type",L"application/x-amz-json-1.1");
    CkRestW_AddHeader(rest,L"X-Amz-Target",L"BatchRead");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);
    sbResponseBody = CkStringBuilderW_Create();
    success = CkRestW_FullRequestSb(rest,L"POST",L"/amazonclouddirectory/2017-01-11/batchread",sbRequestBody,sbResponseBody);
    if (success != TRUE) {
        wprintf(L"%s\n",CkRestW_lastErrorText(rest));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    respStatusCode = CkRestW_getResponseStatusCode(rest);
    wprintf(L"response status code = %d\n",respStatusCode);
    if (respStatusCode != 200) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkRestW_responseHeader(rest));
        wprintf(L"Response Body:\n");
        wprintf(L"%s\n",CkStringBuilderW_getAsString(sbResponseBody));
        CkRestW_Dispose(rest);
        CkAuthAwsW_Dispose(authAws);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);

    // The following code parses the JSON response.
    // A sample JSON response is shown below the sample code.

    // Use this online tool to generate parsing code from sample JSON:
    // Generate Parsing Code from JSON

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
    // See this example explaining how this memory should be used: const char * functions.

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"Responses");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        Message = CkJsonObjectW_stringOf(jResp,L"Responses[i].ExceptionResponse.Message");
        v_Type = CkJsonObjectW_stringOf(jResp,L"Responses[i].ExceptionResponse.Type");
        ObjectIdentifier = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectInformation.ObjectIdentifier");
        NextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.NextToken");
        ListIncomingTypedLinksNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.NextToken");
        ListIndexNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.NextToken");
        ListObjectAttributesNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.NextToken");
        v_String = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectChildren.Children.string");
        ListObjectChildrenNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectChildren.NextToken");
        ListObjectParentPathsNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectParentPaths.NextToken");
        ListObjectParentsNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectParents.NextToken");
        ListObjectPoliciesNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectPolicies.NextToken");
        ListOutgoingTypedLinksNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.NextToken");
        ListPolicyAttachmentsNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListPolicyAttachments.NextToken");
        LookupPolicyNextToken = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.LookupPolicy.NextToken");
        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            FacetName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Key.FacetName");
            Name = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Key.Name");
            SchemaArn = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Key.SchemaArn");
            BinaryValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.BinaryValue");
            BooleanValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.BooleanValue");
            DatetimeValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.DatetimeValue");
            NumberValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.NumberValue");
            StringValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetLinkAttributes.Attributes[j].Value.StringValue");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            KeyFacetName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Key.FacetName");
            KeyName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Key.Name");
            KeySchemaArn = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Key.SchemaArn");
            ValueBinaryValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.BinaryValue");
            ValueBooleanValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.BooleanValue");
            ValueDatetimeValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.DatetimeValue");
            ValueNumberValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.NumberValue");
            ValueStringValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectAttributes.Attributes[j].Value.StringValue");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.GetObjectInformation.SchemaFacets");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            FacetName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectInformation.SchemaFacets[j].FacetName");
            SchemaArn = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.GetObjectInformation.SchemaFacets[j].SchemaArn");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            ObjectIdentifier = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].ObjectIdentifier");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                KeyFacetName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Key.FacetName");
                KeyName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Key.Name");
                KeySchemaArn = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Key.SchemaArn");
                ValueBinaryValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.BinaryValue");
                ValueBooleanValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.BooleanValue");
                ValueDatetimeValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.DatetimeValue");
                ValueNumberValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.NumberValue");
                ValueStringValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListAttachedIndices.IndexAttachments[j].IndexedAttributes[k].Value.StringValue");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Selector = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].SourceObjectReference.Selector");
            TargetObjectReferenceSelector = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].TargetObjectReference.Selector");
            TypedLinkFacetSchemaArn = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].TypedLinkFacet.SchemaArn");
            TypedLinkName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].TypedLinkFacet.TypedLinkName");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                AttributeName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].AttributeName");
                ValueBinaryValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.BinaryValue");
                ValueBooleanValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.BooleanValue");
                ValueDatetimeValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.DatetimeValue");
                ValueNumberValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.NumberValue");
                ValueStringValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIncomingTypedLinks.LinkSpecifiers[j].IdentityAttributeValues[k].Value.StringValue");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            ObjectIdentifier = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].ObjectIdentifier");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                KeyFacetName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Key.FacetName");
                KeyName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Key.Name");
                KeySchemaArn = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Key.SchemaArn");
                ValueBinaryValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.BinaryValue");
                ValueBooleanValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.BooleanValue");
                ValueDatetimeValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.DatetimeValue");
                ValueNumberValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.NumberValue");
                ValueStringValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListIndex.IndexAttachments[j].IndexedAttributes[k].Value.StringValue");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            KeyFacetName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Key.FacetName");
            KeyName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Key.Name");
            KeySchemaArn = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Key.SchemaArn");
            ValueBinaryValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.BinaryValue");
            ValueBooleanValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.BooleanValue");
            ValueDatetimeValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.DatetimeValue");
            ValueNumberValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.NumberValue");
            ValueStringValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectAttributes.Attributes[j].Value.StringValue");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListObjectParentPaths.PathToObjectIdentifiersList");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Path = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectParentPaths.PathToObjectIdentifiersList[j].Path");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListObjectParentPaths.PathToObjectIdentifiersList[j].ObjectIdentifiers");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                strVal = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectParentPaths.PathToObjectIdentifiersList[j].ObjectIdentifiers[k]");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListObjectParents.ParentLinks");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            LinkName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectParents.ParentLinks[j].LinkName");
            ObjectIdentifier = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectParents.ParentLinks[j].ObjectIdentifier");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListObjectPolicies.AttachedPolicyIds");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListObjectPolicies.AttachedPolicyIds[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            SourceObjectReferenceSelector = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].SourceObjectReference.Selector");
            TargetObjectReferenceSelector = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].TargetObjectReference.Selector");
            TypedLinkFacetSchemaArn = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].TypedLinkFacet.SchemaArn");
            TypedLinkFacetTypedLinkName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].TypedLinkFacet.TypedLinkName");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                AttributeName = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].AttributeName");
                ValueBinaryValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.BinaryValue");
                ValueBooleanValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.BooleanValue");
                ValueDatetimeValue = CkJsonObjectW_IntOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.DatetimeValue");
                ValueNumberValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.NumberValue");
                ValueStringValue = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListOutgoingTypedLinks.TypedLinkSpecifiers[j].IdentityAttributeValues[k].Value.StringValue");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.ListPolicyAttachments.ObjectIdentifiers");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            strVal = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.ListPolicyAttachments.ObjectIdentifiers[j]");
            j = j + 1;
        }

        j = 0;
        count_j = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList");
        while (j < count_j) {
            CkJsonObjectW_putJ(jResp,j);
            Path = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Path");
            k = 0;
            count_k = CkJsonObjectW_SizeOfArray(jResp,L"Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Policies");
            while (k < count_k) {
                CkJsonObjectW_putK(jResp,k);
                ObjectIdentifier = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Policies[k].ObjectIdentifier");
                PolicyId = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Policies[k].PolicyId");
                PolicyType = CkJsonObjectW_stringOf(jResp,L"Responses[i].SuccessfulResponse.LookupPolicy.PolicyToPathList[j].Policies[k].PolicyType");
                k = k + 1;
            }

            j = j + 1;
        }

        i = i + 1;
    }

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


    CkRestW_Dispose(rest);
    CkAuthAwsW_Dispose(authAws);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(jResp);

    }