AccountPrincipal

class aws_cdk.aws_iam.AccountPrincipal(account_id)

Bases: aws_cdk.aws_iam.ArnPrincipal

__init__(account_id)
Parameters

account_id (Any) –

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

account_id
Return type

Any

arn
Return type

str

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

policy_fragment

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

Return type

PrincipalPolicyFragment