11/** Available retry strategy types */
2- export type RetryStrategyType = 'LINEAR' | 'EXPONENTIAL' | 'FIXED' | 'SINGLE' | 'NO_RETRIES'
2+ export type RetryStrategyType =
3+ | 'LINEAR'
4+ | 'EXPONENTIAL'
5+ | 'FIXED'
6+ | 'SINGLE_RETRY'
7+ | 'NO_RETRIES'
38
49/**
510 * Conditions can be used to limit when a retry strategy applies.
@@ -18,10 +23,10 @@ export interface RetryStrategy {
1823 /**
1924 * The number of seconds to wait before the first retry attempt.
2025 * This value is used differently based on the retry strategy type:
21- * - FIXED: Same delay for all retries
26+ * - FIXED: Same delay f'or all retries
2227 * - LINEAR: Base value that increases linearly (baseBackoffSeconds * attempt)
2328 * - EXPONENTIAL: Base value that increases exponentially (baseBackoffSeconds ^ attempt)
24- * - SINGLE : The delay for the first and only retry
29+ * - SINGLE_RETRY : The delay for the first and only retry
2530 *
2631 * @defaultValue 60
2732 * @example
@@ -35,7 +40,7 @@ export interface RetryStrategy {
3540 * // Exponential: 5s, 25s, 125s
3641 * baseBackoffSeconds: 5
3742 *
38- * // Single: 10s
43+ * // Single retry : 10s
3944 * baseBackoffSeconds: 10
4045 * ```
4146 */
@@ -120,16 +125,16 @@ export interface FixedRetryStrategy extends RetryStrategy {
120125export type FixedRetryStrategyOptions = RetryStrategyOptions
121126
122127/**
123- * Configuration for single retry strategies.
128+ * Configuration for single retry retry strategies.
124129 */
125- export interface SingleRetryStrategy extends Pick < RetryStrategy , 'type' | 'baseBackoffSeconds' | 'sameRegion' > {
126- type : 'SINGLE '
130+ export interface SingleRetryRetryStrategy extends Pick < RetryStrategy , 'type' | 'baseBackoffSeconds' | 'sameRegion' > {
131+ type : 'SINGLE_RETRY '
127132}
128133
129134/**
130- * Options for configuring single retry strategy behavior.
135+ * Options for configuring single retry retry strategy behavior.
131136 */
132- export type SingleRetryStrategyOptions = Pick < RetryStrategyOptions , 'baseBackoffSeconds' | 'sameRegion' >
137+ export type SingleRetryRetryStrategyOptions = Pick < RetryStrategyOptions , 'baseBackoffSeconds' | 'sameRegion' >
133138
134139/**
135140 * Configuration for no retry retry strategies.
@@ -224,10 +229,10 @@ export class RetryStrategyBuilder {
224229 /**
225230 * A single retry will be performed.
226231 */
227- static singleRetry ( options ?: SingleRetryStrategyOptions ) : SingleRetryStrategy {
232+ static singleRetry ( options ?: SingleRetryRetryStrategyOptions ) : SingleRetryRetryStrategy {
228233 const { baseBackoffSeconds, sameRegion } = RetryStrategyBuilder . defaults ( options )
229234 return {
230- type : 'SINGLE ' ,
235+ type : 'SINGLE_RETRY ' ,
231236 baseBackoffSeconds,
232237 sameRegion,
233238 }
0 commit comments