File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -101,24 +101,28 @@ def get_aws_service_from_arn(arn: str) -> Optional[str]:
101
101
match = REGEX_ARN .match (arn )
102
102
if match :
103
103
return match .group (1 )
104
+ return None
104
105
105
106
106
107
def get_account_id_from_arn (arn : str ) -> Optional [str ]:
107
108
match = REGEX_ARN .match (arn )
108
109
if match :
109
110
return match .group (3 )
111
+ return None
110
112
111
113
112
114
def get_account_id_from_iam_arn (arn : str ) -> Optional [str ]:
113
115
match = REGEX_IAM_ARN .match (arn )
114
116
if match :
115
117
return match .group (1 )
118
+ return None
116
119
117
120
118
121
def get_account_id_from_sts_arn (arn : str ) -> Optional [str ]:
119
122
match = REGEX_STS_ARN .match (arn )
120
123
if match :
121
124
return match .group (1 )
125
+ return None
122
126
123
127
124
128
def get_account_id_from_principal (principal : str ) -> Optional [str ]:
You can’t perform that action at this time.
0 commit comments