RepositoryGrants

class aws_cdk.aws_codecommit.RepositoryGrants(*args: Any, **kwargs)

Bases: object

Collection of grant methods for a IRepositoryRef.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codecommit as codecommit
from aws_cdk.interfaces import aws_codecommit as interfaces_aws_codecommit

# repository_ref: interfaces_aws_codecommit.IRepositoryRef

repository_grants = codecommit.RepositoryGrants.from_repository(repository_ref)

Methods

pull(grantee)

Grants pull permissions.

Parameters:

grantee (IGrantable)

Return type:

Grant

pull_push(grantee)

Grants pullPush permissions.

Parameters:

grantee (IGrantable)

Return type:

Grant

read(grantee)

Grants read permissions.

Parameters:

grantee (IGrantable)

Return type:

Grant

Static Methods

classmethod from_repository(resource)

Creates grants for RepositoryGrants.

Parameters:

resource (IRepositoryRef)

Return type:

RepositoryGrants