Interface IGrantOnPrincipalOptions
Options for a grant operation that only applies to principals.
public interface IGrantOnPrincipalOptions : ICommonGrantOptions
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
using Amazon.CDK;
Construct construct;
IGrantable grantable;
var grantOnPrincipalOptions = new GrantOnPrincipalOptions {
Actions = new [] { "actions" },
Grantee = grantable,
ResourceArns = new [] { "resourceArns" },
// the properties below are optional
Scope = construct
};
Remarks
ExampleMetadata: fixture=_generated
Properties
Scope
Construct to report warnings on in case grant could not be registered.
IConstruct? Scope { get; }
Property Value
- IConstruct
Remarks
Default: - the construct in which this construct is defined