Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def statement_2():
return Statement(**{"Effect": "Allow", "Action": "action1", "NotAction": ["action2"], "Resource": ["arn"]})
def statement_principal_1():
return Statement(**{"Principal": {"AWS": "arn:aws:iam::123456789012:root"}})
def statement_not_principal_3():
return Statement(**{"NotPrincipal": {"Federated": "cognito-identity.amazonaws.com"}})
def statement_1():
return Statement(**{"Effect": "Allow", "Action": ["action1"], "NotAction": "action2", "Resource": ["arn"]})
def statement_principal_3():
return Statement(**{"Principal": {"Federated": "cognito-identity.amazonaws.com"}})
def statement_principal_5():
return Statement(
**{"Principal": ["arn:aws:iam::AWS-account-ID:user/user-name-1", "arn:aws:iam::AWS-account-ID:user/UserName2"]}
)
def statement_not_principal_1():
return Statement(**{"NotPrincipal": {"AWS": "arn:aws:iam::123456789012:root"}})
def statement_not_principal_5():
return Statement(
**{
"NotPrincipal": [
"arn:aws:iam::AWS-account-ID:user/user-name-1",
"arn:aws:iam::AWS-account-ID:user/UserName2",
]
def statement_principal_4():
return Statement(**{"Principal": "arn:aws:iam::123456789012:root"})