- class aws_cdk.aws_iam.GrantOnPrincipalOptions(*, actions, grantee, resource_arns, scope=None)
Options for a grant operation that only applies to principals.
str]) – The actions to grant.
IGrantable) – The principal to grant to. Default: if principal is undefined, no work is done.
str]) – The resource ARNs to grant to.
IConstruct]) – Construct to report warnings on in case grant could not be registered. Default: - the construct in which this construct is defined
# 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 import aws_cdk.core as cdk # construct: cdk.Construct # grantable: iam.IGrantable grant_on_principal_options = iam.GrantOnPrincipalOptions( actions=["actions"], grantee=grantable, resource_arns=["resourceArns"], # the properties below are optional scope=construct )
The actions to grant.
The principal to grant to.
if principal is undefined, no work is done.
The resource ARNs to grant to.
Construct to report warnings on in case grant could not be registered.
the construct in which this construct is defined