Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:25
Manikanta Choudary is currently offline Manikanta ChoudaryFriend
Messages: 2
Registered: April 2023
Junior Member
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: Thu Oct 10 14:56:00 GMT 2024

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

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

Back to the top