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