AddToPrincipalPolicyResult

class aws_cdk.aws_iam.AddToPrincipalPolicyResult(*, statement_added, policy_dependable=None)

Bases: object

__init__(*, statement_added, policy_dependable=None)

Result of calling addToPrincipalPolicy.

Parameters
  • statement_added (bool) – Whether the statement was added to the identity’s policies.

  • policy_dependable (Optional[IDependable]) – Dependable which allows depending on the policy change being applied. Default: - Required if statementAdded is true.

Return type

None

Attributes

policy_dependable

Dependable which allows depending on the policy change being applied.

default :default: - Required if statementAdded is true.

stability :stability: experimental

Return type

Optional[IDependable]

statement_added

Whether the statement was added to the identity’s policies.

stability :stability: experimental

Return type

bool