'{username}', 'password' => '{password}', )); // 2. Obtain an Orchestration service object from the client. $orchestrationService = $client->orchestrationService(null, '{region}'); // 3. Validate template from URL try { $orchestrationService->validateTemplate(array( 'templateUrl' => '{templateUrl}' )); } catch (InvalidTemplateError $e) { // Use $e->getMessage() for explanation of why template is invalid }