@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.374Z") @Stability(value=Stable) public interface IRepository extends software.amazon.jsii.JsiiSerializable, IResource, INotificationRuleSource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IRepository.Jsii$Default
Internal default implementation for
IRepository. |
static class |
IRepository.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRepositoryArn()
The ARN of this Repository.
|
String |
getRepositoryCloneUrlGrc()
The HTTPS (GRC) clone URL.
|
String |
getRepositoryCloneUrlHttp()
The HTTP clone URL.
|
String |
getRepositoryCloneUrlSsh()
The SSH clone URL.
|
String |
getRepositoryName()
The human-visible name of this Repository.
|
Grant |
grant(IGrantable grantee,
String... actions)
Grant the given principal identity permissions to perform the actions on this repository.
|
Grant |
grantPull(IGrantable grantee)
Grant the given identity permissions to pull this repository.
|
Grant |
grantPullPush(IGrantable grantee)
Grant the given identity permissions to pull and push this repository.
|
Grant |
grantRead(IGrantable grantee)
Grant the given identity permissions to read this repository.
|
INotificationRule |
notifyOn(String id,
INotificationRuleTarget target,
RepositoryNotifyOnOptions options)
Defines a CodeStar Notification rule triggered when the project events specified by you are emitted.
|
INotificationRule |
notifyOnApprovalRuleOverridden(String id,
INotificationRuleTarget target)
Defines a CodeStar Notification rule which triggers when an approval rule is overridden.
|
INotificationRule |
notifyOnApprovalRuleOverridden(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when an approval rule is overridden.
|
INotificationRule |
notifyOnApprovalStatusChanged(String id,
INotificationRuleTarget target)
Defines a CodeStar Notification rule which triggers when an approval status is changed.
|
INotificationRule |
notifyOnApprovalStatusChanged(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when an approval status is changed.
|
INotificationRule |
notifyOnBranchOrTagCreated(String id,
INotificationRuleTarget target)
Defines a CodeStar Notification rule which triggers when a new branch or tag is created.
|
INotificationRule |
notifyOnBranchOrTagCreated(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a new branch or tag is created.
|
INotificationRule |
notifyOnBranchOrTagDeleted(String id,
INotificationRuleTarget target)
Defines a CodeStar Notification rule which triggers when a branch or tag is deleted.
|
INotificationRule |
notifyOnBranchOrTagDeleted(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a branch or tag is deleted.
|
INotificationRule |
notifyOnPullRequestComment(String id,
INotificationRuleTarget target)
Defines a CodeStar Notification rule which triggers when a comment is made on a pull request.
|
INotificationRule |
notifyOnPullRequestComment(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a comment is made on a pull request.
|
INotificationRule |
notifyOnPullRequestCreated(String id,
INotificationRuleTarget target)
Defines a CodeStar Notification rule which triggers when a pull request is created.
|
INotificationRule |
notifyOnPullRequestCreated(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a pull request is created.
|
INotificationRule |
notifyOnPullRequestMerged(String id,
INotificationRuleTarget target)
Defines a CodeStar Notification rule which triggers when a pull request is merged.
|
INotificationRule |
notifyOnPullRequestMerged(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a pull request is merged.
|
Rule |
onCommentOnCommit(String id)
Defines a CloudWatch event rule which triggers when a comment is made on a commit.
|
Rule |
onCommentOnCommit(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a comment is made on a commit.
|
Rule |
onCommentOnPullRequest(String id)
Defines a CloudWatch event rule which triggers when a comment is made on a pull request.
|
Rule |
onCommentOnPullRequest(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a comment is made on a pull request.
|
Rule |
onCommit(String id)
Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.
|
Rule |
onCommit(String id,
OnCommitOptions options)
Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.
|
Rule |
onEvent(String id)
Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onEvent(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onPullRequestStateChange(String id)
Defines a CloudWatch event rule which triggers when a pull request state is changed.
|
Rule |
onPullRequestStateChange(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a pull request state is changed.
|
Rule |
onReferenceCreated(String id)
Defines a CloudWatch event rule which triggers when a reference is created (i.e.
|
Rule |
onReferenceCreated(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a reference is created (i.e.
|
Rule |
onReferenceDeleted(String id)
Defines a CloudWatch event rule which triggers when a reference is delete (i.e.
|
Rule |
onReferenceDeleted(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a reference is delete (i.e.
|
Rule |
onReferenceUpdated(String id)
Defines a CloudWatch event rule which triggers when a reference is updated (i.e.
|
Rule |
onReferenceUpdated(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a reference is updated (i.e.
|
Rule |
onStateChange(String id)
Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.
|
Rule |
onStateChange(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.
|
applyRemovalPolicy, getEnv, getStackbindAsNotificationRuleSource@Stability(value=Stable) @NotNull String getRepositoryArn()
@Stability(value=Stable) @NotNull 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.
@Stability(value=Stable) @NotNull String getRepositoryCloneUrlHttp()
@Stability(value=Stable) @NotNull String getRepositoryCloneUrlSsh()
@Stability(value=Stable) @NotNull String getRepositoryName()
@Stability(value=Stable) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull Grant grantPull(@NotNull IGrantable grantee)
grantee - This parameter is required.@Stability(value=Stable) @NotNull Grant grantPullPush(@NotNull IGrantable grantee)
grantee - This parameter is required.@Stability(value=Stable) @NotNull Grant grantRead(@NotNull IGrantable grantee)
grantee - This parameter is required.@Stability(value=Stable) @NotNull INotificationRule notifyOn(@NotNull String id, @NotNull INotificationRuleTarget target, @NotNull RepositoryNotifyOnOptions options)
You can also use the methods to define rules for the specific event emitted.
eg: notifyOnPullRequstCreated.
id - This parameter is required.target - This parameter is required.options - This parameter is required.@Stability(value=Stable) @NotNull INotificationRule notifyOnApprovalRuleOverridden(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
id - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull INotificationRule notifyOnApprovalRuleOverridden(@NotNull String id, @NotNull INotificationRuleTarget target)
id - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull INotificationRule notifyOnApprovalStatusChanged(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
id - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull INotificationRule notifyOnApprovalStatusChanged(@NotNull String id, @NotNull INotificationRuleTarget target)
id - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull INotificationRule notifyOnBranchOrTagCreated(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
id - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull INotificationRule notifyOnBranchOrTagCreated(@NotNull String id, @NotNull INotificationRuleTarget target)
id - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull INotificationRule notifyOnBranchOrTagDeleted(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
id - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull INotificationRule notifyOnBranchOrTagDeleted(@NotNull String id, @NotNull INotificationRuleTarget target)
id - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull INotificationRule notifyOnPullRequestComment(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
id - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull INotificationRule notifyOnPullRequestComment(@NotNull String id, @NotNull INotificationRuleTarget target)
id - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull INotificationRule notifyOnPullRequestCreated(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
id - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull INotificationRule notifyOnPullRequestCreated(@NotNull String id, @NotNull INotificationRuleTarget target)
id - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull INotificationRule notifyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
id - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull INotificationRule notifyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target)
id - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull Rule onCommentOnCommit(@NotNull String id, @Nullable OnEventOptions options)
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onCommentOnCommit(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onCommentOnPullRequest(@NotNull String id, @Nullable OnEventOptions options)
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onCommentOnPullRequest(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onCommit(@NotNull String id, @Nullable OnCommitOptions options)
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onCommit(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
Use
rule.addEventPattern(pattern) to specify a filter.
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onEvent(@NotNull String id)
Use
rule.addEventPattern(pattern) to specify a filter.
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onPullRequestStateChange(@NotNull String id, @Nullable OnEventOptions options)
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onPullRequestStateChange(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onReferenceCreated(@NotNull String id, @Nullable OnEventOptions options)
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onReferenceCreated(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onReferenceDeleted(@NotNull String id, @Nullable OnEventOptions options)
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onReferenceDeleted(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onReferenceUpdated(@NotNull String id, @Nullable OnEventOptions options)
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onReferenceUpdated(@NotNull String id)
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options)
id - This parameter is required.options - Copyright © 2022. All rights reserved.