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.119.0 (build 1634eac)", date="2025-11-20T23:37:16.873Z") @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);
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RepositoryGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    RepositoryGrants(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates grants for RepositoryGrants.
    protected IRepositoryRef
     
    pull(IGrantable grantee)
    Grants pull permissions.
    Grants pullPush permissions.
    read(IGrantable grantee)
    Grants read permissions.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • 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.
    • 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()