nm_iam_configuration_policy_create_statement()

DESCRIPTION

Create a statement for a policy

DECLARATION

struct nm_iam_statement* nm_iam_configuration_policy_create_statement(struct nm_iam_policy* policy, enum nm_iam_effect effect)

PARAMETERS

policy:
[in] Policy to create statement in
effect:
[in] Effect the statement should impose on its actions

RETURNS

statement reference to use when adding actions or conditions. Reference is valid for the lifetime of the policy NULL if statement could not be created