@@ -335,6 +335,14 @@ final class StartBuildInput extends Input
335
335
*/
336
336
private $ fleetOverride ;
337
337
338
+ /**
339
+ * The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set
340
+ * to 2, CodeBuild will call the `RetryBuild` API to automatically retry your build for up to 2 additional times.
341
+ *
342
+ * @var int|null
343
+ */
344
+ private $ autoRetryLimitOverride ;
345
+
338
346
/**
339
347
* @param array{
340
348
* projectName?: string,
@@ -369,6 +377,7 @@ final class StartBuildInput extends Input
369
377
* imagePullCredentialsTypeOverride?: null|ImagePullCredentialsType::*,
370
378
* debugSessionEnabled?: null|bool,
371
379
* fleetOverride?: null|ProjectFleet|array,
380
+ * autoRetryLimitOverride?: null|int,
372
381
* '@region'?: string|null,
373
382
* } $input
374
383
*/
@@ -406,6 +415,7 @@ public function __construct(array $input = [])
406
415
$ this ->imagePullCredentialsTypeOverride = $ input ['imagePullCredentialsTypeOverride ' ] ?? null ;
407
416
$ this ->debugSessionEnabled = $ input ['debugSessionEnabled ' ] ?? null ;
408
417
$ this ->fleetOverride = isset ($ input ['fleetOverride ' ]) ? ProjectFleet::create ($ input ['fleetOverride ' ]) : null ;
418
+ $ this ->autoRetryLimitOverride = $ input ['autoRetryLimitOverride ' ] ?? null ;
409
419
parent ::__construct ($ input );
410
420
}
411
421
@@ -443,6 +453,7 @@ public function __construct(array $input = [])
443
453
* imagePullCredentialsTypeOverride?: null|ImagePullCredentialsType::*,
444
454
* debugSessionEnabled?: null|bool,
445
455
* fleetOverride?: null|ProjectFleet|array,
456
+ * autoRetryLimitOverride?: null|int,
446
457
* '@region'?: string|null,
447
458
* }|StartBuildInput $input
448
459
*/
@@ -456,6 +467,11 @@ public function getArtifactsOverride(): ?ProjectArtifacts
456
467
return $ this ->artifactsOverride ;
457
468
}
458
469
470
+ public function getAutoRetryLimitOverride (): ?int
471
+ {
472
+ return $ this ->autoRetryLimitOverride ;
473
+ }
474
+
459
475
public function getBuildStatusConfigOverride (): ?BuildStatusConfig
460
476
{
461
477
return $ this ->buildStatusConfigOverride ;
@@ -668,6 +684,13 @@ public function setArtifactsOverride(?ProjectArtifacts $value): self
668
684
return $ this ;
669
685
}
670
686
687
+ public function setAutoRetryLimitOverride (?int $ value ): self
688
+ {
689
+ $ this ->autoRetryLimitOverride = $ value ;
690
+
691
+ return $ this ;
692
+ }
693
+
671
694
public function setBuildStatusConfigOverride (?BuildStatusConfig $ value ): self
672
695
{
673
696
$ this ->buildStatusConfigOverride = $ value ;
@@ -1041,6 +1064,9 @@ private function requestBody(): array
1041
1064
if (null !== $ v = $ this ->fleetOverride ) {
1042
1065
$ payload ['fleetOverride ' ] = $ v ->requestBody ();
1043
1066
}
1067
+ if (null !== $ v = $ this ->autoRetryLimitOverride ) {
1068
+ $ payload ['autoRetryLimitOverride ' ] = $ v ;
1069
+ }
1044
1070
1045
1071
return $ payload ;
1046
1072
}
0 commit comments