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
ConstructorsModifierConstructorDescriptionprotectedRepositoryGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRepositoryGrants(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryGrantsfromRepository(IRepositoryRef resource) Creates grants for RepositoryGrants.protected IRepositoryRefpull(IGrantable grantee) Grants pull permissions.pullPush(IGrantable grantee) 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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Grants pull permissions.- Parameters:
grantee- This parameter is required.
-
pullPush
Grants pullPush permissions.- Parameters:
grantee- This parameter is required.
-
read
Grants read permissions.- Parameters:
grantee- This parameter is required.
-
getResource
-