OrganizationPrincipal

class aws_cdk.aws_iam.OrganizationPrincipal(organization_id)

Bases: aws_cdk.aws_iam.PrincipalBase

A principal that represents an AWS Organization.

__init__(organization_id)
Parameters

organization_id (str) –

Return type

None

Methods

add_to_policy(_statement)

Add to the policy of this principal.

Parameters

_statement (PolicyStatement) –

Return type

bool

to_json()
Return type

Mapping[str, List[str]]

to_string()

Returns a string representation of an object.

Return type

str

Attributes

assume_role_action

When this Principal is used in an AssumeRole policy, the action to use.

Return type

str

grant_principal

The principal to grant permissions to.

Return type

IPrincipal

organization_id
Return type

str

policy_fragment

Return the policy fragment that identifies this principal in a Policy.

Return type

PrincipalPolicyFragment