Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » AWS SDK for PHP Eventbridge scheduler with api destination throws error as Provided Arn is not in co(Hi I am trying to create a schedule with aws eventbridge schedule)
AWS SDK for PHP Eventbridge scheduler with api destination throws error as Provided Arn is not in co [message #1858472] Tue, 04 April 2023 08:25
Eclipse UserFriend
Hi I am trying to create a schedule with aws eventbridge scheduler and reffering the documentation from the aws-sdk for php

I am getting an error as
Parameter is not valid. Reason: Provided Arn is not in correct format.

Below is the code i am using
$result = $AwsSchedulerClient->createSchedule([
            'ClientToken' => 'test_1',
            'Description' => 'test scheduler',
            'FlexibleTimeWindow' => [ 
                'Mode' => 'OFF',
            ],
            'Name' => 'test_scheduler', 
            'ScheduleExpression' => 'at(2023-04-05T08:00:00)', 
            'State' => 'ENABLED',
            'Target' => [ 
                'Arn' => 'Arn name copied from aws console for api destination',
                'RoleArn' => 'role arn copied from aws console',
            ],
        ]);

any help will be appreciated

Previous Topic:RE: Recommended project layout?
Next Topic:How to configure (Run on server) and (PHP web application) on Windows
Goto Forum:
  


Current Time: Sun Apr 27 13:51:58 EDT 2025

Powered by FUDForum. Page generated in 0.02999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top