How to use the pycfmodel.model.resources.properties.statement.Statement function in pycfmodel

To help you get started, we’ve selected a few pycfmodel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
def statement_2():
    return Statement(**{"Effect": "Allow", "Action": "action1", "NotAction": ["action2"], "Resource": ["arn"]})
github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
def statement_principal_1():
    return Statement(**{"Principal": {"AWS": "arn:aws:iam::123456789012:root"}})
github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
def statement_not_principal_3():
    return Statement(**{"NotPrincipal": {"Federated": "cognito-identity.amazonaws.com"}})
github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
def statement_1():
    return Statement(**{"Effect": "Allow", "Action": ["action1"], "NotAction": "action2", "Resource": ["arn"]})
github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
def statement_principal_3():
    return Statement(**{"Principal": {"Federated": "cognito-identity.amazonaws.com"}})
github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
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"]}
    )
github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
def statement_not_principal_1():
    return Statement(**{"NotPrincipal": {"AWS": "arn:aws:iam::123456789012:root"}})
github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
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",
            ]
github Skyscanner / pycfmodel / tests / resources / properties / test_statement.py View on Github external
def statement_principal_4():
    return Statement(**{"Principal": "arn:aws:iam::123456789012:root"})