interface GrantOnPrincipalOptions
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.IAM.GrantOnPrincipalOptions | 
  Java | software.amazon.awscdk.services.iam.GrantOnPrincipalOptions | 
  Python | aws_cdk.aws_iam.GrantOnPrincipalOptions | 
  TypeScript (source) | @aws-cdk/aws-iam » GrantOnPrincipalOptions | 
Options for a grant operation that only applies to principals.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
declare const construct: cdk.Construct;
declare const grantable: iam.IGrantable;
const grantOnPrincipalOptions: iam.GrantOnPrincipalOptions = {
  actions: ['actions'],
  grantee: grantable,
  resourceArns: ['resourceArns'],
  // the properties below are optional
  scope: construct,
};
Properties
| Name | Type | Description | 
|---|---|---|
| actions | string[] | The actions to grant. | 
| grantee | IGrantable | The principal to grant to. | 
| resource | string[] | The resource ARNs to grant to. | 
| scope? | IConstruct | Construct to report warnings on in case grant could not be registered. | 
actions
Type:
string[]
The actions to grant.
grantee
Type:
IGrantable
The principal to grant to.
resourceArns
Type:
string[]
The resource ARNs to grant to.
scope?
Type:
IConstruct
(optional, default: the construct in which this construct is defined)
Construct to report warnings on in case grant could not be registered.

 .NET
 Java
 Python
 TypeScript (