interface WithoutPolicyUpdatesOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IAM.WithoutPolicyUpdatesOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiam#WithoutPolicyUpdatesOptions |
Java | software.amazon.awscdk.services.iam.WithoutPolicyUpdatesOptions |
Python | aws_cdk.aws_iam.WithoutPolicyUpdatesOptions |
TypeScript (source) | aws-cdk-lib » aws_iam » WithoutPolicyUpdatesOptions |
Options for the withoutPolicyUpdates()
modifier of a Role.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
const withoutPolicyUpdatesOptions: iam.WithoutPolicyUpdatesOptions = {
addGrantsToResources: false,
};
Properties
Name | Type | Description |
---|---|---|
add | boolean | Add grants to resources instead of dropping them. |
addGrantsToResources?
Type:
boolean
(optional, default: false)
Add grants to resources instead of dropping them.
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.