Interface GrantWithResourceOptions

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)", date="2023-12-01T19:06:33.340Z") @Stability(Stable) public interface GrantWithResourceOptions extends, CommonGrantOptions
Options for a grant operation.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Object conditions;
 IGrantable grantable;
 IResourceWithPolicy resourceWithPolicy;
 GrantWithResourceOptions grantWithResourceOptions = GrantWithResourceOptions.builder()
         // the properties below are optional
                 "conditionsKey", Map.of(
                         "conditionsKey", conditions)))
  • Method Details

    • getResource

      @Stability(Stable) @NotNull IResourceWithPolicy getResource()
      The resource with a resource policy.

      The statement will be added to the resource policy if it couldn't be added to the principal policy.

    • getResourceSelfArns

      @Stability(Stable) @Nullable default List<String> getResourceSelfArns()
      When referring to the resource in a resource policy, use this as ARN.

      (Depending on the resource type, this needs to be '*' in a resource policy).

      Default: Same as regular resource ARNs

    • builder

      @Stability(Stable) static GrantWithResourceOptions.Builder builder()
      a GrantWithResourceOptions.Builder of GrantWithResourceOptions