@@ -40,7 +40,12 @@ export function valueForRetryStrategy (genfile: GeneratedFile, strategy?: RetryS
4040 if ( options . sameRegion !== undefined ) {
4141 builder . boolean ( 'sameRegion' , options . sameRegion )
4242 }
43+ }
4344
45+ function buildOnlyOnOption (
46+ options : RetryStrategyOptions ,
47+ builder : ObjectValueBuilder ,
48+ ) : void {
4449 if ( options . onlyOn !== undefined ) {
4550 const onlyOn = Array . isArray ( options . onlyOn ) ? options . onlyOn : [ options . onlyOn ]
4651 if ( onlyOn . length === 1 ) {
@@ -63,6 +68,7 @@ export function valueForRetryStrategy (genfile: GeneratedFile, strategy?: RetryS
6368 buildMaxRetriesOption ( options , builder )
6469 buildMaxDurationSecondsOption ( options , builder )
6570 buildSameRegionOption ( options , builder )
71+ buildOnlyOnOption ( options , builder )
6672 }
6773
6874 if ( strategy === null || strategy === undefined ) {
@@ -109,6 +115,7 @@ export function valueForRetryStrategy (genfile: GeneratedFile, strategy?: RetryS
109115 builder . object ( builder => {
110116 buildBaseBackoffSecondsOption ( strategy , builder )
111117 buildSameRegionOption ( strategy , builder )
118+ buildOnlyOnOption ( strategy , builder )
112119 } )
113120 } )
114121 } )
0 commit comments