Interface IRepository
- All Superinterfaces:
IConstruct
,software.constructs.IConstruct
,IDependable
,INotificationRuleSource
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IRepository.Jsii$Default
- All Known Implementing Classes:
IRepository.Jsii$Proxy
,Repository
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:38.254Z")
@Stability(Stable)
public interface IRepository
extends software.amazon.jsii.JsiiSerializable, IResource, INotificationRuleSource
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIRepository
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of this Repository.The HTTPS (GRC) clone URL.The HTTP clone URL.The SSH clone URL.The human-visible name of this Repository.grant
(IGrantable grantee, @NotNull String... actions) Grant the given principal identity permissions to perform the actions on this repository.grantPull
(IGrantable grantee) Grant the given identity permissions to pull this repository.grantPullPush
(IGrantable grantee) Grant the given identity permissions to pull and push this repository.grantRead
(IGrantable grantee) Grant the given identity permissions to read this repository.notifiyOnPullRequestMerged
(String id, INotificationRuleTarget target) Deprecated.this method has a typo in its name, use notifyOnPullRequestMerged insteadnotifiyOnPullRequestMerged
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Deprecated.this method has a typo in its name, use notifyOnPullRequestMerged insteadnotifyOn
(String id, INotificationRuleTarget target, RepositoryNotifyOnOptions options) Defines a CodeStar Notification rule triggered when the project events specified by you are emitted.Defines a CodeStar Notification rule which triggers when an approval rule is overridden.notifyOnApprovalRuleOverridden
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when an approval rule is overridden.Defines a CodeStar Notification rule which triggers when an approval status is changed.notifyOnApprovalStatusChanged
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when an approval status is changed.notifyOnBranchOrTagCreated
(String id, INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a new branch or tag is created.notifyOnBranchOrTagCreated
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a new branch or tag is created.notifyOnBranchOrTagDeleted
(String id, INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a branch or tag is deleted.notifyOnBranchOrTagDeleted
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a branch or tag is deleted.notifyOnPullRequestComment
(String id, INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a comment is made on a pull request.notifyOnPullRequestComment
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a comment is made on a pull request.notifyOnPullRequestCreated
(String id, INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a pull request is created.notifyOnPullRequestCreated
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a pull request is created.notifyOnPullRequestMerged
(String id, INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a pull request is merged.notifyOnPullRequestMerged
(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a pull request is merged.Defines a CloudWatch event rule which triggers when a comment is made on a commit.onCommentOnCommit
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers when a comment is made on a commit.Defines a CloudWatch event rule which triggers when a comment is made on a pull request.onCommentOnPullRequest
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers when a comment is made on a pull request.Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.onCommit
(String id, OnCommitOptions options) Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.Defines a CloudWatch event rule which triggers for repository events.onEvent
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers for repository events.Defines a CloudWatch event rule which triggers when a pull request state is changed.onPullRequestStateChange
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers when a pull request state is changed.Defines a CloudWatch event rule which triggers when a reference is created (i.e.onReferenceCreated
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers when a reference is created (i.e.Defines a CloudWatch event rule which triggers when a reference is delete (i.e.onReferenceDeleted
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers when a reference is delete (i.e.Defines a CloudWatch event rule which triggers when a reference is updated (i.e.onReferenceUpdated
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers when a reference is updated (i.e.onStateChange
(String id) Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.onStateChange
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleSource
bindAsNotificationRuleSource
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRepositoryArn
The ARN of this Repository. -
getRepositoryCloneUrlGrc
The HTTPS (GRC) clone URL.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.
-
getRepositoryCloneUrlHttp
The HTTP clone URL. -
getRepositoryCloneUrlSsh
The SSH clone URL. -
getRepositoryName
The human-visible name of this Repository. -
grant
@Stability(Stable) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Grant the given principal identity permissions to perform the actions on this repository.- Parameters:
grantee
- This parameter is required.actions
- This parameter is required.
-
grantPull
Grant the given identity permissions to pull this repository.- Parameters:
grantee
- This parameter is required.
-
grantPullPush
Grant the given identity permissions to pull and push this repository.- Parameters:
grantee
- This parameter is required.
-
grantRead
Grant the given identity permissions to read this repository.- Parameters:
grantee
- This parameter is required.
-
notifiyOnPullRequestMerged
@Stability(Deprecated) @Deprecated @NotNull INotificationRule notifiyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Deprecated.this method has a typo in its name, use notifyOnPullRequestMerged instead(deprecated) Defines a CodeStar Notification rule which triggers when a pull request is merged.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
-
-
notifiyOnPullRequestMerged
@Stability(Deprecated) @Deprecated @NotNull INotificationRule notifiyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target) Deprecated.this method has a typo in its name, use notifyOnPullRequestMerged instead(deprecated) Defines a CodeStar Notification rule which triggers when a pull request is merged.- Parameters:
id
- This parameter is required.target
- This parameter is required.
-
notifyOn
@Stability(Stable) @NotNull INotificationRule notifyOn(@NotNull String id, @NotNull INotificationRuleTarget target, @NotNull RepositoryNotifyOnOptions options) Defines a CodeStar Notification rule triggered when the project events specified by you are emitted. Similar toonEvent
API.You can also use the methods to define rules for the specific event emitted. eg:
notifyOnPullRequstCreated
.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
- This parameter is required.- Returns:
- CodeStar Notifications rule associated with this repository.
-
notifyOnApprovalRuleOverridden
@Stability(Stable) @NotNull INotificationRule notifyOnApprovalRuleOverridden(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when an approval rule is overridden.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
-
-
notifyOnApprovalRuleOverridden
@Stability(Stable) @NotNull INotificationRule notifyOnApprovalRuleOverridden(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when an approval rule is overridden.- Parameters:
id
- This parameter is required.target
- This parameter is required.
-
notifyOnApprovalStatusChanged
@Stability(Stable) @NotNull INotificationRule notifyOnApprovalStatusChanged(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when an approval status is changed.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
-
-
notifyOnApprovalStatusChanged
@Stability(Stable) @NotNull INotificationRule notifyOnApprovalStatusChanged(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when an approval status is changed.- Parameters:
id
- This parameter is required.target
- This parameter is required.
-
notifyOnBranchOrTagCreated
@Stability(Stable) @NotNull INotificationRule notifyOnBranchOrTagCreated(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a new branch or tag is created.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
-
-
notifyOnBranchOrTagCreated
@Stability(Stable) @NotNull INotificationRule notifyOnBranchOrTagCreated(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a new branch or tag is created.- Parameters:
id
- This parameter is required.target
- This parameter is required.
-
notifyOnBranchOrTagDeleted
@Stability(Stable) @NotNull INotificationRule notifyOnBranchOrTagDeleted(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a branch or tag is deleted.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
-
-
notifyOnBranchOrTagDeleted
@Stability(Stable) @NotNull INotificationRule notifyOnBranchOrTagDeleted(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a branch or tag is deleted.- Parameters:
id
- This parameter is required.target
- This parameter is required.
-
notifyOnPullRequestComment
@Stability(Stable) @NotNull INotificationRule notifyOnPullRequestComment(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a comment is made on a pull request.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
-
-
notifyOnPullRequestComment
@Stability(Stable) @NotNull INotificationRule notifyOnPullRequestComment(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a comment is made on a pull request.- Parameters:
id
- This parameter is required.target
- This parameter is required.
-
notifyOnPullRequestCreated
@Stability(Stable) @NotNull INotificationRule notifyOnPullRequestCreated(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a pull request is created.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
-
-
notifyOnPullRequestCreated
@Stability(Stable) @NotNull INotificationRule notifyOnPullRequestCreated(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a pull request is created.- Parameters:
id
- This parameter is required.target
- This parameter is required.
-
notifyOnPullRequestMerged
@Stability(Stable) @NotNull INotificationRule notifyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar Notification rule which triggers when a pull request is merged.- Parameters:
id
- This parameter is required.target
- This parameter is required.options
-
-
notifyOnPullRequestMerged
@Stability(Stable) @NotNull INotificationRule notifyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar Notification rule which triggers when a pull request is merged.- Parameters:
id
- This parameter is required.target
- This parameter is required.
-
onCommentOnCommit
@Stability(Stable) @NotNull Rule onCommentOnCommit(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers when a comment is made on a commit.- Parameters:
id
- This parameter is required.options
-
-
onCommentOnCommit
Defines a CloudWatch event rule which triggers when a comment is made on a commit.- Parameters:
id
- This parameter is required.
-
onCommentOnPullRequest
@Stability(Stable) @NotNull Rule onCommentOnPullRequest(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers when a comment is made on a pull request.- Parameters:
id
- This parameter is required.options
-
-
onCommentOnPullRequest
Defines a CloudWatch event rule which triggers when a comment is made on a pull request.- Parameters:
id
- This parameter is required.
-
onCommit
Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.- Parameters:
id
- This parameter is required.options
-
-
onCommit
Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.- Parameters:
id
- This parameter is required.
-
onEvent
Defines a CloudWatch event rule which triggers for repository events.Use
rule.addEventPattern(pattern)
to specify a filter.- Parameters:
id
- This parameter is required.options
-
-
onEvent
Defines a CloudWatch event rule which triggers for repository events.Use
rule.addEventPattern(pattern)
to specify a filter.- Parameters:
id
- This parameter is required.
-
onPullRequestStateChange
@Stability(Stable) @NotNull Rule onPullRequestStateChange(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers when a pull request state is changed.- Parameters:
id
- This parameter is required.options
-
-
onPullRequestStateChange
Defines a CloudWatch event rule which triggers when a pull request state is changed.- Parameters:
id
- This parameter is required.
-
onReferenceCreated
@Stability(Stable) @NotNull Rule onReferenceCreated(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers when a reference is created (i.e. a new branch/tag is created) to the repository.- Parameters:
id
- This parameter is required.options
-
-
onReferenceCreated
Defines a CloudWatch event rule which triggers when a reference is created (i.e. a new branch/tag is created) to the repository.- Parameters:
id
- This parameter is required.
-
onReferenceDeleted
@Stability(Stable) @NotNull Rule onReferenceDeleted(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers when a reference is delete (i.e. a branch/tag is deleted) from the repository.- Parameters:
id
- This parameter is required.options
-
-
onReferenceDeleted
Defines a CloudWatch event rule which triggers when a reference is delete (i.e. a branch/tag is deleted) from the repository.- Parameters:
id
- This parameter is required.
-
onReferenceUpdated
@Stability(Stable) @NotNull Rule onReferenceUpdated(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers when a reference is updated (i.e. a commit is pushed to an existing or new branch) from the repository.- Parameters:
id
- This parameter is required.options
-
-
onReferenceUpdated
Defines a CloudWatch event rule which triggers when a reference is updated (i.e. a commit is pushed to an existing or new branch) from the repository.- Parameters:
id
- This parameter is required.
-
onStateChange
@Stability(Stable) @NotNull Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.- Parameters:
id
- This parameter is required.options
-
-
onStateChange
Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.- Parameters:
id
- This parameter is required.
-