Class RepositoryGrants

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codecommit.RepositoryGrants
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-02T21:55:07.007Z") @Stability(Stable) public class RepositoryGrants extends software.amazon.jsii.JsiiObject
Collection of grant methods for a IRepositoryRef.

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.codecommit.*;
 import software.amazon.awscdk.interfaces.codecommit.*;
 IRepositoryRef repositoryRef;
 RepositoryGrants repositoryGrants = RepositoryGrants.fromRepository(repositoryRef);
 
  • Constructor Details

    • RepositoryGrants

      protected RepositoryGrants(software.amazon.jsii.JsiiObjectRef objRef)
    • RepositoryGrants

      protected RepositoryGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • fromRepository

      @Stability(Stable) @NotNull public static RepositoryGrants fromRepository(@NotNull IRepositoryRef resource)
      Creates grants for RepositoryGrants.

      Parameters:
      resource - This parameter is required.
    • actions

      @Stability(Stable) @NotNull public Grant actions(@NotNull IGrantable grantee, @NotNull List<String> actions, @Nullable PermissionsOptions options)
      Grant the given identity custom permissions.

      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
      options -
    • actions

      @Stability(Stable) @NotNull public Grant actions(@NotNull IGrantable grantee, @NotNull List<String> actions)
      Grant the given identity custom permissions.

      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • pull

      @Stability(Stable) @NotNull public Grant pull(@NotNull IGrantable grantee)
      Grants pull permissions.

      Parameters:
      grantee - This parameter is required.
    • pullPush

      @Stability(Stable) @NotNull public Grant pullPush(@NotNull IGrantable grantee)
      Grants pullPush permissions.

      Parameters:
      grantee - This parameter is required.
    • read

      @Stability(Stable) @NotNull public Grant read(@NotNull IGrantable grantee)
      Grants read permissions.

      Parameters:
      grantee - This parameter is required.
    • getResource

      @Stability(Stable) @NotNull protected IRepositoryRef getResource()