@@ -335,6 +335,14 @@ final class StartBuildInput extends Input
335335 */
336336 private $ fleetOverride ;
337337
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+
338346 /**
339347 * @param array{
340348 * projectName?: string,
@@ -369,6 +377,7 @@ final class StartBuildInput extends Input
369377 * imagePullCredentialsTypeOverride?: null|ImagePullCredentialsType::*,
370378 * debugSessionEnabled?: null|bool,
371379 * fleetOverride?: null|ProjectFleet|array,
380+ * autoRetryLimitOverride?: null|int,
372381 * '@region'?: string|null,
373382 * } $input
374383 */
@@ -406,6 +415,7 @@ public function __construct(array $input = [])
406415 $ this ->imagePullCredentialsTypeOverride = $ input ['imagePullCredentialsTypeOverride ' ] ?? null ;
407416 $ this ->debugSessionEnabled = $ input ['debugSessionEnabled ' ] ?? null ;
408417 $ this ->fleetOverride = isset ($ input ['fleetOverride ' ]) ? ProjectFleet::create ($ input ['fleetOverride ' ]) : null ;
418+ $ this ->autoRetryLimitOverride = $ input ['autoRetryLimitOverride ' ] ?? null ;
409419 parent ::__construct ($ input );
410420 }
411421
@@ -443,6 +453,7 @@ public function __construct(array $input = [])
443453 * imagePullCredentialsTypeOverride?: null|ImagePullCredentialsType::*,
444454 * debugSessionEnabled?: null|bool,
445455 * fleetOverride?: null|ProjectFleet|array,
456+ * autoRetryLimitOverride?: null|int,
446457 * '@region'?: string|null,
447458 * }|StartBuildInput $input
448459 */
@@ -456,6 +467,11 @@ public function getArtifactsOverride(): ?ProjectArtifacts
456467 return $ this ->artifactsOverride ;
457468 }
458469
470+ public function getAutoRetryLimitOverride (): ?int
471+ {
472+ return $ this ->autoRetryLimitOverride ;
473+ }
474+
459475 public function getBuildStatusConfigOverride (): ?BuildStatusConfig
460476 {
461477 return $ this ->buildStatusConfigOverride ;
@@ -668,6 +684,13 @@ public function setArtifactsOverride(?ProjectArtifacts $value): self
668684 return $ this ;
669685 }
670686
687+ public function setAutoRetryLimitOverride (?int $ value ): self
688+ {
689+ $ this ->autoRetryLimitOverride = $ value ;
690+
691+ return $ this ;
692+ }
693+
671694 public function setBuildStatusConfigOverride (?BuildStatusConfig $ value ): self
672695 {
673696 $ this ->buildStatusConfigOverride = $ value ;
@@ -1041,6 +1064,9 @@ private function requestBody(): array
10411064 if (null !== $ v = $ this ->fleetOverride ) {
10421065 $ payload ['fleetOverride ' ] = $ v ->requestBody ();
10431066 }
1067+ if (null !== $ v = $ this ->autoRetryLimitOverride ) {
1068+ $ payload ['autoRetryLimitOverride ' ] = $ v ;
1069+ }
10441070
10451071 return $ payload ;
10461072 }
0 commit comments