CommonGrantOptions

class aws_cdk.aws_iam.CommonGrantOptions(*, actions, grantee, resource_arns)

Bases: object

Basic options for a grant operation.

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

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

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

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iam as iam

# grantable: iam.IGrantable

common_grant_options = iam.CommonGrantOptions(
    actions=["actions"],
    grantee=grantable,
    resource_arns=["resourceArns"]
)

Attributes

actions

The actions to grant.

Return type

List[str]

grantee

The principal to grant to.

Default

if principal is undefined, no work is done.

Return type

IGrantable

resource_arns

The resource ARNs to grant to.

Return type

List[str]