@@ -70,7 +70,7 @@ describe('#compileMethodsToSns()', () => {
7070 Type : 'AWS' ,
7171 Credentials : { 'Fn::GetAtt' : [ 'ApigatewayToSnsRole' , 'Arn' ] } ,
7272 Uri : {
73- 'Fn::Join ' : [ '' , [ ' arn:aws:apigateway:' , { Ref : ' AWS::Region' } , ' :sns:path//'] ]
73+ 'Fn::Sub ' : ' arn:aws:apigateway:${ AWS::Region} :sns:path//'
7474 } ,
7575 PassthroughBehavior : 'NEVER' ,
7676 RequestParameters : {
@@ -196,7 +196,7 @@ describe('#compileMethodsToSns()', () => {
196196 Type : 'AWS' ,
197197 Credentials : { 'Fn::GetAtt' : [ 'ApigatewayToSnsRole' , 'Arn' ] } ,
198198 Uri : {
199- 'Fn::Join ' : [ '' , [ ' arn:aws:apigateway:' , { Ref : ' AWS::Region' } , ' :sns:path//'] ]
199+ 'Fn::Sub ' : ' arn:aws:apigateway:${ AWS::Region} :sns:path//'
200200 } ,
201201 PassthroughBehavior : 'NEVER' ,
202202 RequestParameters : {
@@ -465,7 +465,7 @@ describe('#compileMethodsToSns()', () => {
465465 Type : 'AWS' ,
466466 Credentials : { 'Fn::GetAtt' : [ 'ApigatewayToSnsRole' , 'Arn' ] } ,
467467 Uri : {
468- 'Fn::Join ' : [ '' , [ ' arn:aws:apigateway:' , { Ref : ' AWS::Region' } , ' :sns:path//'] ]
468+ 'Fn::Sub ' : ' arn:aws:apigateway:${ AWS::Region} :sns:path//'
469469 } ,
470470 PassthroughBehavior : 'NEVER' ,
471471 RequestParameters : {
@@ -578,7 +578,7 @@ describe('#compileMethodsToSns()', () => {
578578 Type : 'AWS' ,
579579 Credentials : { 'Fn::GetAtt' : [ 'ApigatewayToSnsRole' , 'Arn' ] } ,
580580 Uri : {
581- 'Fn::Join ' : [ '' , [ ' arn:aws:apigateway:' , { Ref : ' AWS::Region' } , ' :sns:path//'] ]
581+ 'Fn::Sub ' : ' arn:aws:apigateway:${ AWS::Region} :sns:path//'
582582 } ,
583583 PassthroughBehavior : 'NEVER' ,
584584 RequestParameters : {
0 commit comments