Class WithoutPolicyUpdatesOptions
Options for the withoutPolicyUpdates()
modifier of a Role.
public class WithoutPolicyUpdatesOptions : IWithoutPolicyUpdatesOptions
- Inheritance
-
WithoutPolicyUpdatesOptions
- 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;
var withoutPolicyUpdatesOptions = new WithoutPolicyUpdatesOptions {
AddGrantsToResources = false
};
Remarks
ExampleMetadata: fixture=_generated
Constructors
WithoutPolicyUpdatesOptions()
public WithoutPolicyUpdatesOptions()
Properties
AddGrantsToResources
Add grants to resources instead of dropping them.
public bool? AddGrantsToResources { get; set; }
Property Value
- bool?
Remarks
If this is false
or not specified, grant permissions added to this role are ignored.
It is your own responsibility to make sure the role has the required permissions.
If this is true
, any grant permissions will be added to the resource instead.
Default: false