@@ -66,7 +66,7 @@ export = {
66
66
expect ( stack ) . to ( haveResource ( "AWS::S3::Bucket" ) ) ;
67
67
expect ( stack ) . to ( haveResource ( "AWS::S3::BucketPolicy" , ExpectedBucketPolicyProperties ) ) ;
68
68
expect ( stack ) . to ( not ( haveResource ( "AWS::Logs::LogGroup" ) ) ) ;
69
- const trail : any = stack . toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
69
+ const trail : any = stack . _toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
70
70
test . deepEqual ( trail . DependsOn , [ 'MyAmazingCloudTrailS3Policy39C120B0' ] ) ;
71
71
test . done ( ) ;
72
72
} ,
@@ -97,7 +97,7 @@ export = {
97
97
PolicyName : logsRolePolicyName ,
98
98
Roles : [ { Ref : 'MyAmazingCloudTrailLogsRoleF2CCF977' } ] ,
99
99
} ) ) ;
100
- const trail : any = stack . toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
100
+ const trail : any = stack . _toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
101
101
test . deepEqual ( trail . DependsOn , [ logsRolePolicyName , logsRoleName , 'MyAmazingCloudTrailS3Policy39C120B0' ] ) ;
102
102
test . done ( ) ;
103
103
} ,
@@ -116,7 +116,7 @@ export = {
116
116
expect ( stack ) . to ( haveResource ( "AWS::Logs::LogGroup" , {
117
117
RetentionInDays : 7
118
118
} ) ) ;
119
- const trail : any = stack . toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
119
+ const trail : any = stack . _toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
120
120
test . deepEqual ( trail . DependsOn , [ logsRolePolicyName , logsRoleName , 'MyAmazingCloudTrailS3Policy39C120B0' ] ) ;
121
121
test . done ( ) ;
122
122
} ,
@@ -134,7 +134,7 @@ export = {
134
134
expect ( stack ) . to ( not ( haveResource ( "AWS::Logs::LogGroup" ) ) ) ;
135
135
expect ( stack ) . to ( not ( haveResource ( "AWS::IAM::Role" ) ) ) ;
136
136
137
- const trail : any = stack . toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
137
+ const trail : any = stack . _toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
138
138
test . equals ( trail . Properties . EventSelectors . length , 1 ) ;
139
139
const selector = trail . Properties . EventSelectors [ 0 ] ;
140
140
test . equals ( selector . ReadWriteType , null , "Expected selector read write type to be undefined" ) ;
@@ -160,7 +160,7 @@ export = {
160
160
expect ( stack ) . to ( not ( haveResource ( "AWS::Logs::LogGroup" ) ) ) ;
161
161
expect ( stack ) . to ( not ( haveResource ( "AWS::IAM::Role" ) ) ) ;
162
162
163
- const trail : any = stack . toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
163
+ const trail : any = stack . _toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
164
164
test . equals ( trail . Properties . EventSelectors . length , 1 ) ;
165
165
const selector = trail . Properties . EventSelectors [ 0 ] ;
166
166
test . equals ( selector . ReadWriteType , "ReadOnly" , "Expected selector read write type to be Read" ) ;
@@ -179,7 +179,7 @@ export = {
179
179
180
180
new CloudTrail ( stack , 'MyAmazingCloudTrail' , { managementEvents : ReadWriteType . WriteOnly } ) ;
181
181
182
- const trail : any = stack . toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
182
+ const trail : any = stack . _toCloudFormation ( ) . Resources . MyAmazingCloudTrail54516E8D ;
183
183
test . equals ( trail . Properties . EventSelectors . length , 1 ) ;
184
184
const selector = trail . Properties . EventSelectors [ 0 ] ;
185
185
test . equals ( selector . ReadWriteType , "WriteOnly" , "Expected selector read write type to be All" ) ;
0 commit comments