Table of Contents

Class GrantOnPrincipalOptions

Namespace
Amazon.CDK.AWS.IAM
Assembly
Amazon.CDK.AWS.IAM.dll

Options for a grant operation that only applies to principals.

public class GrantOnPrincipalOptions : IGrantOnPrincipalOptions, ICommonGrantOptions
Inheritance
GrantOnPrincipalOptions
Implements
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

Constructors

GrantOnPrincipalOptions()

public GrantOnPrincipalOptions()

Properties

Actions

The actions to grant.

public string[] Actions { get; set; }

Property Value

string[]

Grantee

The principal to grant to.

public IGrantable Grantee { get; set; }

Property Value

IGrantable

Remarks

Default: if principal is undefined, no work is done.

ResourceArns

The resource ARNs to grant to.

public string[] ResourceArns { get; set; }

Property Value

string[]

Scope

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

public IConstruct? Scope { get; set; }

Property Value

IConstruct

Remarks

Default: - the construct in which this construct is defined