@Internal public static interface IRepository.Jsii$Default extends IRepository, IResource.Jsii$Default
IRepository.IRepository.Jsii$Default, IRepository.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
default software.constructs.Node |
getNode()
The tree node.
|
default String |
getRepositoryArn()
(experimental) The ARN of this Repository.
|
default String |
getRepositoryCloneUrlGrc()
(experimental) The HTTPS (GRC) clone URL.
|
default String |
getRepositoryCloneUrlHttp()
(experimental) The HTTP clone URL.
|
default String |
getRepositoryCloneUrlSsh()
(experimental) The SSH clone URL.
|
default String |
getRepositoryName()
(experimental) The human-visible name of this Repository.
|
default Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
default Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Grant the given principal identity permissions to perform the actions on this repository.
|
default Grant |
grantPull(IGrantable grantee)
(experimental) Grant the given identity permissions to pull this repository.
|
default Grant |
grantPullPush(IGrantable grantee)
(experimental) Grant the given identity permissions to pull and push this repository.
|
default Grant |
grantRead(IGrantable grantee)
(experimental) Grant the given identity permissions to read this repository.
|
default Rule |
onCommentOnCommit(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a comment is made on a commit.
|
default Rule |
onCommentOnPullRequest(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a comment is made on a pull request.
|
default Rule |
onCommit(String id,
OnCommitOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.
|
default Rule |
onEvent(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers for repository events.
|
default Rule |
onPullRequestStateChange(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a pull request state is changed.
|
default Rule |
onReferenceCreated(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a reference is created (i.e.
|
default Rule |
onReferenceDeleted(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a reference is delete (i.e.
|
default Rule |
onReferenceUpdated(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a reference is updated (i.e.
|
default Rule |
onStateChange(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.
|
onCommentOnCommit, onCommentOnPullRequest, onCommit, onEvent, onPullRequestStateChange, onReferenceCreated, onReferenceDeleted, onReferenceUpdated, onStateChange@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default String getRepositoryArn()
getRepositoryArn in interface IRepository@Stability(value=Experimental) @NotNull default String getRepositoryCloneUrlGrc()
HTTPS (GRC) is the protocol to use with git-remote-codecommit (GRC).
It is the recommended method for supporting connections made with federated access, identity providers, and temporary credentials.
getRepositoryCloneUrlGrc in interface IRepositoryhttps://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html@Stability(value=Experimental) @NotNull default String getRepositoryCloneUrlHttp()
getRepositoryCloneUrlHttp in interface IRepository@Stability(value=Experimental) @NotNull default String getRepositoryCloneUrlSsh()
getRepositoryCloneUrlSsh in interface IRepository@Stability(value=Experimental) @NotNull default String getRepositoryName()
getRepositoryName in interface IRepository@Stability(value=Experimental) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IRepositorygrantee - This parameter is required.actions - This parameter is required.@Stability(value=Experimental) @NotNull default Grant grantPull(@NotNull IGrantable grantee)
grantPull in interface IRepositorygrantee - This parameter is required.@Stability(value=Experimental) @NotNull default Grant grantPullPush(@NotNull IGrantable grantee)
grantPullPush in interface IRepositorygrantee - This parameter is required.@Stability(value=Experimental) @NotNull default Grant grantRead(@NotNull IGrantable grantee)
grantRead in interface IRepositorygrantee - This parameter is required.@Stability(value=Experimental) @NotNull default Rule onCommentOnCommit(@NotNull String id, @Nullable OnEventOptions options)
onCommentOnCommit in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onCommentOnPullRequest(@NotNull String id, @Nullable OnEventOptions options)
onCommentOnPullRequest in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onCommit(@NotNull String id, @Nullable OnCommitOptions options)
onCommit in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
Use
rule.addEventPattern(pattern) to specify a filter.
onEvent in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onPullRequestStateChange(@NotNull String id, @Nullable OnEventOptions options)
onPullRequestStateChange in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onReferenceCreated(@NotNull String id, @Nullable OnEventOptions options)
onReferenceCreated in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onReferenceDeleted(@NotNull String id, @Nullable OnEventOptions options)
onReferenceDeleted in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onReferenceUpdated(@NotNull String id, @Nullable OnEventOptions options)
onReferenceUpdated in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options)
onStateChange in interface IRepositoryid - This parameter is required.options - Copyright © 2021. All rights reserved.