Chilkat Online Tools

DeleteResourcePolicy unicodeC Example

AWS Secrets Manager

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"SecretId",L"string");    CkRestW_AddHeader(rest,L"Content-Type",L"application/x-amz-json-1.1");    CkRestW_AddHeader(rest,L"X-Amz-Target",L"secretsmanager.DeleteResourcePolicy");    CkJsonObjectW_EmitSb(json,sbRequestBody);    success = CkRestW_FullRequestSb(rest,L"POST",L"/",sbRequestBody,sbResponseBody);    CkJsonObjectW_LoadSb(jResp,sbResponseBody);


    }