Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/aws/aws-cli
/ validate_iam_user_arn
Function
validate_iam_user_arn
awscli/customizations/codedeploy/utils.py:98–102 ·
view source on GitHub ↗
(params)
Source
from the content-addressed store, hash-verified
96
97
98
def
validate_iam_user_arn(params):
99
if
params.iam_user_arn and not re.match(
100
IAM_USER_ARN_PATTERN, params.iam_user_arn
101
):
102
raise
ParamValidationError(
'Invalid IAM user ARN.'
)
103
104
105
def
validate_instance(params):
Callers
3
test_validate_iam_user_arn
Method · 0.90
test_validate_iam_user_arn_throws_on_invalid_arn_pattern
Method · 0.90
_run_main
Method · 0.90
Calls
2
ParamValidationError
Class · 0.90
match
Method · 0.80
Tested by
2
test_validate_iam_user_arn
Method · 0.72
test_validate_iam_user_arn_throws_on_invalid_arn_pattern
Method · 0.72