You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## NOT RELEASED
4
4
5
+
### Added
6
+
7
+
- AWS api-change: Adds support for new options on GraphqlAPIs, Resolvers and Data Sources for emitting Amazon CloudWatch metrics for enhanced monitoring of AppSync APIs.
@@ -414,6 +448,12 @@ private function requestBody(): array
414
448
if (null !== $v = $this->code) {
415
449
$payload['code'] = $v;
416
450
}
451
+
if (null !== $v = $this->metricsConfig) {
452
+
if (!ResolverLevelMetricsConfig::exists($v)) {
453
+
thrownewInvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
thrownewInvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "DataSourceLevelMetricsConfig".', __CLASS__, $v));
@@ -414,6 +448,12 @@ private function requestBody(): array
414
448
if (null !== $v = $this->code) {
415
449
$payload['code'] = $v;
416
450
}
451
+
if (null !== $v = $this->metricsConfig) {
452
+
if (!ResolverLevelMetricsConfig::exists($v)) {
453
+
thrownewInvalidArgument(sprintf('Invalid parameter "metricsConfig" for "%s". The value "%s" is not a valid "ResolverLevelMetricsConfig".', __CLASS__, $v));
0 commit comments