Interface AddToPrincipalPolicyResult

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

@Generated(value="jsii-pacmak/1.95.0 (build f1ff514)", date="2024-03-26T18:09:24.640Z") @Stability(Stable) public interface AddToPrincipalPolicyResult extends software.amazon.jsii.JsiiSerializable
Result of calling addToPrincipalPolicy.

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.*;
 import software.constructs.*;
 IDependable dependable;
 AddToPrincipalPolicyResult addToPrincipalPolicyResult = AddToPrincipalPolicyResult.builder()
         .statementAdded(false)
         // the properties below are optional
         .policyDependable(dependable)
         .build();
 
  • Method Details

    • getStatementAdded

      @Stability(Stable) @NotNull Boolean getStatementAdded()
      Whether the statement was added to the identity's policies.
    • getPolicyDependable

      @Stability(Stable) @Nullable default software.constructs.IDependable getPolicyDependable()
      Dependable which allows depending on the policy change being applied.

      Default: - Required if `statementAdded` is true.

    • builder

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