Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5199ce

Browse files
authored
Generate EventBridge::putEvents() (async-aws#594)
* Generate EventBridge::putEvents() * Fixed tests * minor * Added changelog for core * Added more changelogs
1 parent 6058006 commit e5199ce

30 files changed

Lines changed: 769 additions & 2 deletions

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ See full documentation on [https://async-aws.com](https://async-aws.com).
1616
| [async-aws/code-deploy](https://github.com/async-aws/code-deploy) | [![Latest Stable Version](https://poser.pugx.org/async-aws/code-deploy/v/stable)](https://packagist.org/packages/async-aws/code-deploy) [![Total Downloads](https://poser.pugx.org/async-aws/code-deploy/downloads)](https://packagist.org/packages/async-aws/code-deploy) | [![](https://github.com/async-aws/code-deploy/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/code-deploy/actions)
1717
| [async-aws/cognito-identity-provider](https://github.com/async-aws/cognito-identity-provider) | [![Latest Stable Version](https://poser.pugx.org/async-aws/cognito-identity-provider/v/stable)](https://packagist.org/packages/async-aws/cognito-identity-provider) [![Total Downloads](https://poser.pugx.org/async-aws/cognito-identity-provider/downloads)](https://packagist.org/packages/async-aws/cognito-identity-provider) | [![](https://github.com/async-aws/cognito-identity-provider/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/cognito-identity-provider/actions)
1818
| [async-aws/dynamo-db](https://github.com/async-aws/dynamo-db) | [![Latest Stable Version](https://poser.pugx.org/async-aws/dynamo-db/v/stable)](https://packagist.org/packages/async-aws/dynamo-db) [![Total Downloads](https://poser.pugx.org/async-aws/dynamo-db/downloads)](https://packagist.org/packages/async-aws/dynamo-db) | [![](https://github.com/async-aws/dynamo-db/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/dynamo-db/actions)
19+
| [async-aws/event-bridge](https://github.com/async-aws/event-bridge) | [![Latest Stable Version](https://poser.pugx.org/async-aws/event-bridge/v/stable)](https://packagist.org/packages/async-aws/event-bridge) [![Total Downloads](https://poser.pugx.org/async-aws/event-bridge/downloads)](https://packagist.org/packages/async-aws/event-bridge) | [![](https://github.com/async-aws/event-bridge/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/event-bridge/actions)
1920
| [async-aws/lambda](https://github.com/async-aws/lambda) | [![Latest Stable Version](https://poser.pugx.org/async-aws/lambda/v/stable)](https://packagist.org/packages/async-aws/lambda) [![Total Downloads](https://poser.pugx.org/async-aws/lambda/downloads)](https://packagist.org/packages/async-aws/lambda) | [![](https://github.com/async-aws/lambda/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/lambda/actions)
2021
| [async-aws/s3](https://github.com/async-aws/s3) | [![Latest Stable Version](https://poser.pugx.org/async-aws/s3/v/stable)](https://packagist.org/packages/async-aws/s3) [![Total Downloads](https://poser.pugx.org/async-aws/s3/downloads)](https://packagist.org/packages/async-aws/s3) | [![](https://github.com/async-aws/s3/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/s3/actions)
2122
| [async-aws/ses](https://github.com/async-aws/ses) | [![Latest Stable Version](https://poser.pugx.org/async-aws/ses/v/stable)](https://packagist.org/packages/async-aws/ses) [![Total Downloads](https://poser.pugx.org/async-aws/ses/downloads)](https://packagist.org/packages/async-aws/ses) | [![](https://github.com/async-aws/ses/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/ses/actions)

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@
4949
"AsyncAws\\DynamoDb\\": "src/Service/DynamoDb/src",
5050
"AsyncAws\\CodeGenerator\\": "src/CodeGenerator/src",
5151
"AsyncAws\\Core\\": "src/Core/src",
52-
"AsyncAws\\Flysystem\\S3\\": "src/Integration/Flysystem/S3/src",
52+
"AsyncAws\\EventBridge\\": "src/Service/EventBridge/src",
5353
"AsyncAws\\Lambda\\": "src/Service/Lambda/src",
5454
"AsyncAws\\Monolog\\CloudWatch\\": "src/Integration/Monolog/CloudWatch/src",
5555
"AsyncAws\\S3\\": "src/Service/S3/src",
5656
"AsyncAws\\Ses\\": "src/Service/Ses/src",
5757
"AsyncAws\\Sns\\": "src/Service/Sns/src",
5858
"AsyncAws\\Sqs\\": "src/Service/Sqs/src",
5959
"AsyncAws\\Ssm\\": "src/Service/Ssm/src",
60+
"AsyncAws\\Flysystem\\S3\\": "src/Integration/Flysystem/S3/src",
6061
"AsyncAws\\Illuminate\\Cache\\": "src/Integration/Laravel/Cache/src",
6162
"AsyncAws\\Illuminate\\Filesystem\\": "src/Integration/Laravel/Filesystem/src",
6263
"AsyncAws\\Illuminate\\Mail\\": "src/Integration/Laravel/Mail/src",
@@ -74,14 +75,15 @@
7475
"AsyncAws\\DynamoDb\\Tests\\": "src/Service/DynamoDb/tests",
7576
"AsyncAws\\CodeGenerator\\Tests\\": "src/CodeGenerator/tests",
7677
"AsyncAws\\Core\\Tests\\": "src/Core/tests",
77-
"AsyncAws\\Flysystem\\S3\\Tests\\": "src/Integration/Flysystem/S3/tests",
78+
"AsyncAws\\EventBridge\\Tests\\": "src/Service/EventBridge/tests",
7879
"AsyncAws\\Lambda\\Tests\\": "src/Service/Lambda/tests",
7980
"AsyncAws\\Monolog\\CloudWatch\\Tests\\": "src/Integration/Monolog/CloudWatch/tests",
8081
"AsyncAws\\S3\\Tests\\": "src/Service/S3/tests",
8182
"AsyncAws\\Ses\\Tests\\": "src/Service/Ses/tests",
8283
"AsyncAws\\Sns\\Tests\\": "src/Service/Sns/tests",
8384
"AsyncAws\\Sqs\\Tests\\": "src/Service/Sqs/tests",
8485
"AsyncAws\\Ssm\\Tests\\": "src/Service/Ssm/tests",
86+
"AsyncAws\\Flysystem\\S3\\Tests\\": "src/Integration/Flysystem/S3/tests",
8587
"AsyncAws\\Illuminate\\Cache\\Tests\\": "src/Integration/Laravel/Cache/tests",
8688
"AsyncAws\\Illuminate\\Filesystem\\Tests\\": "src/Integration/Laravel/Filesystem/tests",
8789
"AsyncAws\\Illuminate\\Mail\\Tests\\": "src/Integration/Laravel/Mail/tests",

docs/clients/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ for more information.
140140
| CodeDeploy | [async-aws/code-deploy](https://packagist.org/packages/async-aws/code-deploy) |
141141
| [CognitoIdentityProvider](./cognito-idp.md) | [async-aws/cognito-identity-provider](https://packagist.org/packages/async-aws/cognito-identity-provider) |
142142
| [DynamoDb]('./dynamodb.md) | [async-aws/dynamo-db](https://packagist.org/packages/async-aws/dynamo-db) |
143+
| EventBridge | [async-aws/lambda](https://packagist.org/packages/async-aws/event-bridge) |
143144
| [Lambda](./lambda.md) | [async-aws/lambda](https://packagist.org/packages/async-aws/lambda) |
144145
| [S3](./s3.md) | [async-aws/s3](https://packagist.org/packages/async-aws/s3) |
145146
| [SES](./ses.md) | [async-aws/ses](https://packagist.org/packages/async-aws/ses) |

manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@
5656
"UpdateTable"
5757
]
5858
},
59+
"EventBridge": {
60+
"source": "https:\/\/raw.githubusercontent.com\/aws\/aws-sdk-php\/${LATEST}\/src\/data\/eventbridge\/2015-10-07\/api-2.json",
61+
"documentation": "https:\/\/raw.githubusercontent.com\/aws\/aws-sdk-php\/${LATEST}\/src\/data\/eventbridge\/2015-10-07\/docs-2.json",
62+
"pagination": "https:\/\/raw.githubusercontent.com\/aws\/aws-sdk-php\/${LATEST}\/src\/data\/eventbridge\/2015-10-07\/paginators-1.json",
63+
"example": "https:\/\/raw.githubusercontent.com\/aws\/aws-sdk-php\/${LATEST}\/src\/data\/eventbridge\/2015-10-07\/examples-1.json",
64+
"methods": [
65+
"PutEvents"
66+
]
67+
},
5968
"Lambda": {
6069
"source": "https:\/\/raw.githubusercontent.com\/aws\/aws-sdk-php\/${LATEST}\/src\/data\/lambda\/2015-03-31\/api-2.json",
6170
"documentation": "https:\/\/raw.githubusercontent.com\/aws\/aws-sdk-php\/${LATEST}\/src\/data\/lambda\/2015-03-31\/docs-2.json",

src/Core/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## NOT RELEASED
4+
5+
### Added
6+
7+
- Support for EventBridge in `AwsClientFactory`
8+
39
## 1.1.0
410

511
### Added

src/Core/src/AwsClientFactory.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use AsyncAws\Core\Exception\MissingDependency;
2121
use AsyncAws\Core\Sts\StsClient;
2222
use AsyncAws\DynamoDb\DynamoDbClient;
23+
use AsyncAws\EventBridge\EventBridgeClient;
2324
use AsyncAws\Lambda\LambdaClient;
2425
use AsyncAws\S3\S3Client;
2526
use AsyncAws\Ses\SesClient;
@@ -138,6 +139,19 @@ public function dynamoDb(): DynamoDbClient
138139
return $this->serviceCache[__METHOD__];
139140
}
140141

142+
public function eventBridge(): EventBridgeClient
143+
{
144+
if (!class_exists(EventBridgeClient::class)) {
145+
throw MissingDependency::create('async-aws/event-bridge', 'EventBridge');
146+
}
147+
148+
if (!isset($this->serviceCache[__METHOD__])) {
149+
$this->serviceCache[__METHOD__] = new EventBridgeClient($this->configuration, $this->credentialProvider, $this->httpClient, $this->logger);
150+
}
151+
152+
return $this->serviceCache[__METHOD__];
153+
}
154+
141155
public function lambda(): LambdaClient
142156
{
143157
if (!class_exists(LambdaClient::class)) {

src/Integration/Symfony/Bundle/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## NOT RELEASED
4+
5+
- Added support for EventBridge.
6+
37
## 0.2.4
48

59
### Changed

src/Integration/Symfony/Bundle/src/DependencyInjection/AwsPackagesProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public static function getAllServices(): array
2929
'class' => \AsyncAws\DynamoDb\DynamoDbClient::class,
3030
'package' => 'async-aws/dynamo-db',
3131
],
32+
'event_bridge' => [
33+
'class' => \AsyncAws\EventBridge\EventBridgeClient::class,
34+
'package' => 'async-aws/event-bridge',
35+
],
3236
'lambda' => [
3337
'class' => \AsyncAws\Lambda\LambdaClient::class,
3438
'package' => 'async-aws/lambda',
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/.github export-ignore
2+
/tests export-ignore
3+
/.gitignore export-ignore
4+
/Makefile export-ignore
5+
/phpunit.xml.dist export-ignore
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [nyholm, jderusse]

0 commit comments

Comments
 (0)