GrantOnPrincipalOptions

class aws_cdk.aws_iam.GrantOnPrincipalOptions(*, actions, grantee, resource_arns, scope=None)

Bases: aws_cdk.aws_iam.CommonGrantOptions

__init__(*, actions, grantee, resource_arns, scope=None)

Options for a grant operation that only applies to principals.

Parameters
  • actions (List[str]) – The actions to grant.

  • grantee (IGrantable) – The principal to grant to. Default: if principal is undefined, no work is done.

  • resource_arns (List[str]) – The resource ARNs to grant to.

  • scope (Optional[IConstruct]) – Construct to report warnings on in case grant could not be registered. Default: - the construct in which this construct is defined

stability :stability: experimental

Return type

None

Attributes

actions

The actions to grant.

stability :stability: experimental

Return type

List[str]

grantee

The principal to grant to.

default :default: if principal is undefined, no work is done.

stability :stability: experimental

Return type

IGrantable

resource_arns

The resource ARNs to grant to.

stability :stability: experimental

Return type

List[str]

scope

Construct to report warnings on in case grant could not be registered.

default :default: - the construct in which this construct is defined

stability :stability: experimental

Return type

Optional[IConstruct]