AddToPrincipalPolicyResult

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

Bases: object

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.

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iam as iam
import aws_cdk.core as cdk

# dependable: cdk.IDependable

add_to_principal_policy_result = iam.AddToPrincipalPolicyResult(
    statement_added=False,

    # the properties below are optional
    policy_dependable=dependable
)

Attributes

policy_dependable

Dependable which allows depending on the policy change being applied.

Default
  • Required if statementAdded is true.

Return type

Optional[IDependable]

statement_added

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

Return type

bool