PutSecretValue unicodeC Example
void ChilkatSample(void)
{
CkAuthAwsW_putAccessKey(authAws,L"AWS_ACCESS_KEY"); CkAuthAwsW_putSecretKey(authAws,L"AWS_SECRET_KEY"); CkAuthAwsW_putRegion(authAws,L"us-west-2"); CkAuthAwsW_putServiceName(authAws,L"secretsmanager"); CkRestW_SetAuthAws(rest,authAws); success = CkRestW_Connect(rest,L"secretsmanager.us-west-2.amazonaws.com",443,TRUE,TRUE); CkJsonObjectW_UpdateString(json,L"ClientRequestToken",L"string"); CkJsonObjectW_UpdateInt(json,L"SecretBinary",123); CkJsonObjectW_UpdateString(json,L"SecretId",L"string"); CkJsonObjectW_UpdateString(json,L"SecretString",L"string"); CkJsonObjectW_UpdateString(json,L"VersionStages[0]",L"string"); CkRestW_AddHeader(rest,L"Content-Type",L"application/x-amz-json-1.1"); CkRestW_AddHeader(rest,L"X-Amz-Target",L"secretsmanager.PutSecretValue"); CkJsonObjectW_EmitSb(json,sbRequestBody); success = CkRestW_FullRequestSb(rest,L"POST",L"/",sbRequestBody,sbResponseBody); CkJsonObjectW_LoadSb(jResp,sbResponseBody); CkJsonObjectW_putI(jResp,i); strVal = CkJsonObjectW_stringOf(jResp,L"VersionStages[i]"); i = i + 1;
}