Interface WithoutPolicyUpdatesOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
WithoutPolicyUpdatesOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:02.828Z") @Stability(Stable) public interface WithoutPolicyUpdatesOptions extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.iam.*;
 WithoutPolicyUpdatesOptions withoutPolicyUpdatesOptions = WithoutPolicyUpdatesOptions.builder()
         .addGrantsToResources(false)
         .build();
 
  • Method Details

    • getAddGrantsToResources

      @Stability(Stable) @Nullable default Boolean getAddGrantsToResources()
      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.

      Default: false

    • builder

      @Stability(Stable) static WithoutPolicyUpdatesOptions.Builder builder()
      Returns:
      a WithoutPolicyUpdatesOptions.Builder of WithoutPolicyUpdatesOptions