ReplicateSecretToRegions phpExt Example
<?php
include("chilkat_9_5_0.php");
$authAws->put_AccessKey('AWS_ACCESS_KEY');$authAws->put_SecretKey('AWS_SECRET_KEY');$authAws->put_Region('us-west-2');$authAws->put_ServiceName('secretsmanager');$rest->SetAuthAws($authAws);$success = $rest->Connect('secretsmanager.us-west-2.amazonaws.com',443,true,true);$json->UpdateString('AddReplicaRegions[0].KmsKeyId','string');$json->UpdateString('AddReplicaRegions[0].Region','string');$json->UpdateInt('ForceOverwriteReplicaSecret',123);$json->UpdateString('SecretId','string');$rest->AddHeader('Content-Type','application/x-amz-json-1.1');$rest->AddHeader('X-Amz-Target','secretsmanager.ReplicateSecretToRegions');$json->EmitSb($sbRequestBody);$success = $rest->FullRequestSb('POST','/',$sbRequestBody,$sbResponseBody);$jResp->LoadSb($sbResponseBody);$jResp->put_I($i);$KmsKeyId = $jResp->stringOf('ReplicationStatus[i].KmsKeyId');$LastAccessedDate = $jResp->IntOf('ReplicationStatus[i].LastAccessedDate');$Region = $jResp->stringOf('ReplicationStatus[i].Region');$Status = $jResp->stringOf('ReplicationStatus[i].Status');$StatusMessage = $jResp->stringOf('ReplicationStatus[i].StatusMessage');$i = $i + 1;
?>