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

Skip to content

Commit 8806c92

Browse files
update generated code (#1212)
1 parent e7b98cb commit 8806c92

4 files changed

Lines changed: 30 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
### Added
66

77
- AWS api-change: Added `fips-us-gov-east-1` and `fips-us-gov-west-1` regions
8+
- AWS api-change: Adds new EventBridge Endpoint resources for disaster recovery, multi-region failover, and cross-region replication capabilities to help you build resilient event-driven applications.
9+
- AWS enhancement: Documentation updates for EventBridge
810

911
## 1.3.0
1012

src/EventBridgeClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class EventBridgeClient extends AbstractApi
2222
*
2323
* @param array{
2424
* Entries: PutEventsRequestEntry[],
25+
* EndpointId?: string,
2526
* @region?: string,
2627
* }|PutEventsRequest $input
2728
*

src/Input/PutEventsRequest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,25 @@ final class PutEventsRequest extends Input
2020
*/
2121
private $entries;
2222

23+
/**
24+
* The URL subdomain of the endpoint. For example, if the URL for Endpoint is abcde.veo.endpoints.event.amazonaws.com,
25+
* then the EndpointId is `abcde.veo`.
26+
*
27+
* @var string|null
28+
*/
29+
private $endpointId;
30+
2331
/**
2432
* @param array{
2533
* Entries?: PutEventsRequestEntry[],
34+
* EndpointId?: string,
2635
* @region?: string,
2736
* } $input
2837
*/
2938
public function __construct(array $input = [])
3039
{
3140
$this->entries = isset($input['Entries']) ? array_map([PutEventsRequestEntry::class, 'create'], $input['Entries']) : null;
41+
$this->endpointId = $input['EndpointId'] ?? null;
3242
parent::__construct($input);
3343
}
3444

@@ -37,6 +47,11 @@ public static function create($input): self
3747
return $input instanceof self ? $input : new self($input);
3848
}
3949

50+
public function getEndpointId(): ?string
51+
{
52+
return $this->endpointId;
53+
}
54+
4055
/**
4156
* @return PutEventsRequestEntry[]
4257
*/
@@ -70,6 +85,13 @@ public function request(): Request
7085
return new Request('POST', $uriString, $query, $headers, StreamFactory::create($body));
7186
}
7287

88+
public function setEndpointId(?string $value): self
89+
{
90+
$this->endpointId = $value;
91+
92+
return $this;
93+
}
94+
7395
/**
7496
* @param PutEventsRequestEntry[] $value
7597
*/
@@ -94,6 +116,10 @@ private function requestBody(): array
94116
$payload['Entries'][$index] = $listValue->requestBody();
95117
}
96118

119+
if (null !== $v = $this->endpointId) {
120+
$payload['EndpointId'] = $v;
121+
}
122+
97123
return $payload;
98124
}
99125
}

src/ValueObject/PutEventsRequestEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class PutEventsRequestEntry
3232
private $detailType;
3333

3434
/**
35-
* A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.
35+
* A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested subobjects.
3636
*/
3737
private $detail;
3838

0 commit comments

Comments
 (0)