File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ const listTrailTagData = async (
122122
123123const getTrailStatus = async (
124124 cloudTrail : CloudTrail ,
125- { Name } : Trail
125+ { TrailARN } : Trail
126126) : Promise < GetTrailStatusResponse | null > => {
127127 try {
128- const data = await cloudTrail . getTrailStatus ( { Name } ) . promise ( )
128+ const data = await cloudTrail . getTrailStatus ( { Name : TrailARN } ) . promise ( )
129129 return data
130130 } catch ( err ) {
131131 errorLog . generateAwsErrorLog ( {
@@ -138,11 +138,11 @@ const getTrailStatus = async (
138138
139139const getEventSelectors = async (
140140 cloudTrail : CloudTrail ,
141- { Name } : Trail
141+ { TrailARN } : Trail
142142) : Promise < EventSelector [ ] > => {
143143 try {
144144 const { EventSelectors : eventSelectors = [ ] } = await cloudTrail
145- . getEventSelectors ( { TrailName : Name } )
145+ . getEventSelectors ( { TrailName : TrailARN } )
146146 . promise ( )
147147 return eventSelectors
148148 } catch ( err ) {
You can’t perform that action at this time.
0 commit comments