GrantOnPrincipalOptions

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

Bases: aws_cdk.aws_iam.CommonGrantOptions

(experimental) Options for a grant operation that only applies to principals.

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

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

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

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

Stability

experimental

Attributes

actions

(experimental) The actions to grant.

Stability

experimental

Return type

List[str]

grantee

(experimental) The principal to grant to.

Default

if principal is undefined, no work is done.

Stability

experimental

Return type

IGrantable

resource_arns

(experimental) The resource ARNs to grant to.

Stability

experimental

Return type

List[str]

scope

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

Default
  • the construct in which this construct is defined

Stability

experimental

Return type

Optional[IConstruct]