CompositePrincipal

class aws_cdk.aws_iam.CompositePrincipal(*principals)

Bases: aws_cdk.aws_iam.PrincipalBase

__init__(*principals)
Parameters

principals (PrincipalBase) –

Return type

None

Methods

add_principals(*principals)
Parameters

principals (PrincipalBase) –

Return type

CompositePrincipal

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

policy_fragment

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

Return type

PrincipalPolicyFragment