File tree 1 file changed +3
-3
lines changed
packages/aws-cdk/lib/init-templates/lib/typescript/lib
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ export interface %name.PascalCased%Props {
7
7
/**
8
8
* The visibility timeout to be configured on the SQS Queue, in seconds.
9
9
*
10
- * @default 300
10
+ * @default Duration.seconds( 300)
11
11
*/
12
- visibilityTimeout ?: number ;
12
+ visibilityTimeout ?: cdk . Duration ;
13
13
}
14
14
15
15
export class % name . PascalCased % extends cdk . Construct {
@@ -20,7 +20,7 @@ export class %name.PascalCased% extends cdk.Construct {
20
20
super ( scope , id ) ;
21
21
22
22
const queue = new sqs . Queue ( this , '%name.PascalCased%Queue' , {
23
- visibilityTimeoutSec : props . visibilityTimeout || 300
23
+ visibilityTimeout : props . visibilityTimeout || cdk . Duration . seconds ( 300 )
24
24
} ) ;
25
25
26
26
const topic = new sns . Topic ( this , '%name.PascalCased%Topic' ) ;
You can’t perform that action at this time.
0 commit comments