class RepositoryGrants
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeCommit.RepositoryGrants |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodecommit#RepositoryGrants |
Java | software.amazon.awscdk.services.codecommit.RepositoryGrants |
Python | aws_cdk.aws_codecommit.RepositoryGrants |
TypeScript | aws-cdk-lib » aws_codecommit » RepositoryGrants |
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 { aws_codecommit as codecommit } from 'aws-cdk-lib';
import { aws_codecommit as interfaces_aws_codecommit } from 'aws-cdk-lib/interfaces';
declare const repositoryRef: interfaces_aws_codecommit.IRepositoryRef;
const repositoryGrants = codecommit.RepositoryGrants.fromRepository(repositoryRef);
Properties
| Name | Type | Description |
|---|---|---|
| resource | IRepository |
resource
Type:
IRepository
Methods
| Name | Description |
|---|---|
| pull(grantee) | Grants pull permissions. |
| pull | Grants pullPush permissions. |
| read(grantee) | Grants read permissions. |
| static from | Creates grants for RepositoryGrants. |
pull(grantee)
public pull(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grants pull permissions.
pullPush(grantee)
public pullPush(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grants pullPush permissions.
read(grantee)
public read(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
Grants read permissions.
static fromRepository(resource)
public static fromRepository(resource: IRepositoryRef): RepositoryGrants
Parameters
- resource
IRepositoryRef
Returns
Creates grants for RepositoryGrants.

.NET
Go
Java
Python
TypeScript