PluginProbe ʕ •ᴥ•ʔ
Transferito: WP Migration / trunk
Transferito: WP Migration vtrunk
trunk 11.4.0 12.0.0 13.1.0 14.0.0 14.0.11 14.0.7 14.1.0 14.1.1 14.1.2 14.1.3 14.1.4
transferito / vendor / aws / aws-sdk-php / src / EventBridge / EventBridgeClient.php
transferito / vendor / aws / aws-sdk-php / src / EventBridge Last commit date
Exception 11 months ago EventBridgeClient.php 11 months ago EventBridgeEndpointMiddleware.php 11 months ago
EventBridgeClient.php
146 lines
1 <?php
2 namespace Aws\EventBridge;
3
4 use Aws\AwsClient;
5
6 /**
7 * This client is used to interact with the **Amazon EventBridge** service.
8 * @method \Aws\Result activateEventSource(array $args = [])
9 * @method \GuzzleHttp\Promise\Promise activateEventSourceAsync(array $args = [])
10 * @method \Aws\Result cancelReplay(array $args = [])
11 * @method \GuzzleHttp\Promise\Promise cancelReplayAsync(array $args = [])
12 * @method \Aws\Result createApiDestination(array $args = [])
13 * @method \GuzzleHttp\Promise\Promise createApiDestinationAsync(array $args = [])
14 * @method \Aws\Result createArchive(array $args = [])
15 * @method \GuzzleHttp\Promise\Promise createArchiveAsync(array $args = [])
16 * @method \Aws\Result createConnection(array $args = [])
17 * @method \GuzzleHttp\Promise\Promise createConnectionAsync(array $args = [])
18 * @method \Aws\Result createEndpoint(array $args = [])
19 * @method \GuzzleHttp\Promise\Promise createEndpointAsync(array $args = [])
20 * @method \Aws\Result createEventBus(array $args = [])
21 * @method \GuzzleHttp\Promise\Promise createEventBusAsync(array $args = [])
22 * @method \Aws\Result createPartnerEventSource(array $args = [])
23 * @method \GuzzleHttp\Promise\Promise createPartnerEventSourceAsync(array $args = [])
24 * @method \Aws\Result deactivateEventSource(array $args = [])
25 * @method \GuzzleHttp\Promise\Promise deactivateEventSourceAsync(array $args = [])
26 * @method \Aws\Result deauthorizeConnection(array $args = [])
27 * @method \GuzzleHttp\Promise\Promise deauthorizeConnectionAsync(array $args = [])
28 * @method \Aws\Result deleteApiDestination(array $args = [])
29 * @method \GuzzleHttp\Promise\Promise deleteApiDestinationAsync(array $args = [])
30 * @method \Aws\Result deleteArchive(array $args = [])
31 * @method \GuzzleHttp\Promise\Promise deleteArchiveAsync(array $args = [])
32 * @method \Aws\Result deleteConnection(array $args = [])
33 * @method \GuzzleHttp\Promise\Promise deleteConnectionAsync(array $args = [])
34 * @method \Aws\Result deleteEndpoint(array $args = [])
35 * @method \GuzzleHttp\Promise\Promise deleteEndpointAsync(array $args = [])
36 * @method \Aws\Result deleteEventBus(array $args = [])
37 * @method \GuzzleHttp\Promise\Promise deleteEventBusAsync(array $args = [])
38 * @method \Aws\Result deletePartnerEventSource(array $args = [])
39 * @method \GuzzleHttp\Promise\Promise deletePartnerEventSourceAsync(array $args = [])
40 * @method \Aws\Result deleteRule(array $args = [])
41 * @method \GuzzleHttp\Promise\Promise deleteRuleAsync(array $args = [])
42 * @method \Aws\Result describeApiDestination(array $args = [])
43 * @method \GuzzleHttp\Promise\Promise describeApiDestinationAsync(array $args = [])
44 * @method \Aws\Result describeArchive(array $args = [])
45 * @method \GuzzleHttp\Promise\Promise describeArchiveAsync(array $args = [])
46 * @method \Aws\Result describeConnection(array $args = [])
47 * @method \GuzzleHttp\Promise\Promise describeConnectionAsync(array $args = [])
48 * @method \Aws\Result describeEndpoint(array $args = [])
49 * @method \GuzzleHttp\Promise\Promise describeEndpointAsync(array $args = [])
50 * @method \Aws\Result describeEventBus(array $args = [])
51 * @method \GuzzleHttp\Promise\Promise describeEventBusAsync(array $args = [])
52 * @method \Aws\Result describeEventSource(array $args = [])
53 * @method \GuzzleHttp\Promise\Promise describeEventSourceAsync(array $args = [])
54 * @method \Aws\Result describePartnerEventSource(array $args = [])
55 * @method \GuzzleHttp\Promise\Promise describePartnerEventSourceAsync(array $args = [])
56 * @method \Aws\Result describeReplay(array $args = [])
57 * @method \GuzzleHttp\Promise\Promise describeReplayAsync(array $args = [])
58 * @method \Aws\Result describeRule(array $args = [])
59 * @method \GuzzleHttp\Promise\Promise describeRuleAsync(array $args = [])
60 * @method \Aws\Result disableRule(array $args = [])
61 * @method \GuzzleHttp\Promise\Promise disableRuleAsync(array $args = [])
62 * @method \Aws\Result enableRule(array $args = [])
63 * @method \GuzzleHttp\Promise\Promise enableRuleAsync(array $args = [])
64 * @method \Aws\Result listApiDestinations(array $args = [])
65 * @method \GuzzleHttp\Promise\Promise listApiDestinationsAsync(array $args = [])
66 * @method \Aws\Result listArchives(array $args = [])
67 * @method \GuzzleHttp\Promise\Promise listArchivesAsync(array $args = [])
68 * @method \Aws\Result listConnections(array $args = [])
69 * @method \GuzzleHttp\Promise\Promise listConnectionsAsync(array $args = [])
70 * @method \Aws\Result listEndpoints(array $args = [])
71 * @method \GuzzleHttp\Promise\Promise listEndpointsAsync(array $args = [])
72 * @method \Aws\Result listEventBuses(array $args = [])
73 * @method \GuzzleHttp\Promise\Promise listEventBusesAsync(array $args = [])
74 * @method \Aws\Result listEventSources(array $args = [])
75 * @method \GuzzleHttp\Promise\Promise listEventSourcesAsync(array $args = [])
76 * @method \Aws\Result listPartnerEventSourceAccounts(array $args = [])
77 * @method \GuzzleHttp\Promise\Promise listPartnerEventSourceAccountsAsync(array $args = [])
78 * @method \Aws\Result listPartnerEventSources(array $args = [])
79 * @method \GuzzleHttp\Promise\Promise listPartnerEventSourcesAsync(array $args = [])
80 * @method \Aws\Result listReplays(array $args = [])
81 * @method \GuzzleHttp\Promise\Promise listReplaysAsync(array $args = [])
82 * @method \Aws\Result listRuleNamesByTarget(array $args = [])
83 * @method \GuzzleHttp\Promise\Promise listRuleNamesByTargetAsync(array $args = [])
84 * @method \Aws\Result listRules(array $args = [])
85 * @method \GuzzleHttp\Promise\Promise listRulesAsync(array $args = [])
86 * @method \Aws\Result listTagsForResource(array $args = [])
87 * @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
88 * @method \Aws\Result listTargetsByRule(array $args = [])
89 * @method \GuzzleHttp\Promise\Promise listTargetsByRuleAsync(array $args = [])
90 * @method \Aws\Result putEvents(array $args = [])
91 * @method \GuzzleHttp\Promise\Promise putEventsAsync(array $args = [])
92 * @method \Aws\Result putPartnerEvents(array $args = [])
93 * @method \GuzzleHttp\Promise\Promise putPartnerEventsAsync(array $args = [])
94 * @method \Aws\Result putPermission(array $args = [])
95 * @method \GuzzleHttp\Promise\Promise putPermissionAsync(array $args = [])
96 * @method \Aws\Result putRule(array $args = [])
97 * @method \GuzzleHttp\Promise\Promise putRuleAsync(array $args = [])
98 * @method \Aws\Result putTargets(array $args = [])
99 * @method \GuzzleHttp\Promise\Promise putTargetsAsync(array $args = [])
100 * @method \Aws\Result removePermission(array $args = [])
101 * @method \GuzzleHttp\Promise\Promise removePermissionAsync(array $args = [])
102 * @method \Aws\Result removeTargets(array $args = [])
103 * @method \GuzzleHttp\Promise\Promise removeTargetsAsync(array $args = [])
104 * @method \Aws\Result startReplay(array $args = [])
105 * @method \GuzzleHttp\Promise\Promise startReplayAsync(array $args = [])
106 * @method \Aws\Result tagResource(array $args = [])
107 * @method \GuzzleHttp\Promise\Promise tagResourceAsync(array $args = [])
108 * @method \Aws\Result testEventPattern(array $args = [])
109 * @method \GuzzleHttp\Promise\Promise testEventPatternAsync(array $args = [])
110 * @method \Aws\Result untagResource(array $args = [])
111 * @method \GuzzleHttp\Promise\Promise untagResourceAsync(array $args = [])
112 * @method \Aws\Result updateApiDestination(array $args = [])
113 * @method \GuzzleHttp\Promise\Promise updateApiDestinationAsync(array $args = [])
114 * @method \Aws\Result updateArchive(array $args = [])
115 * @method \GuzzleHttp\Promise\Promise updateArchiveAsync(array $args = [])
116 * @method \Aws\Result updateConnection(array $args = [])
117 * @method \GuzzleHttp\Promise\Promise updateConnectionAsync(array $args = [])
118 * @method \Aws\Result updateEndpoint(array $args = [])
119 * @method \GuzzleHttp\Promise\Promise updateEndpointAsync(array $args = [])
120 */
121 class EventBridgeClient extends AwsClient {
122 public function __construct(array $args)
123 {
124 parent::__construct($args);
125
126 if ($this->isUseEndpointV2()) {
127 $stack = $this->getHandlerList();
128 $isCustomEndpoint = isset($args['endpoint']);
129 $stack->appendBuild(
130 EventBridgeEndpointMiddleware::wrap(
131 $this->getRegion(),
132 [
133 'use_fips_endpoint' =>
134 $this->getConfig('use_fips_endpoint')->isUseFipsEndpoint(),
135 'dual_stack' =>
136 $this->getConfig('use_dual_stack_endpoint')->isUseDualStackEndpoint(),
137 ],
138 $this->getConfig('endpoint_provider'),
139 $isCustomEndpoint
140 ),
141 'eventbridge.endpoint_middleware'
142 );
143 }
144 }
145 }
146