public static interface IRepository.Jsii$Default extends IRepository, IResource.Jsii$Default, INotificationRuleSource.Jsii$Default
IRepository
.IRepository.Jsii$Default, IRepository.Jsii$Proxy
Modifier and Type | Method and Description |
---|---|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default NotificationRuleSourceConfig |
bindAsNotificationRuleSource(software.constructs.Construct scope)
Returns a source configuration for notification rule.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default ConstructNode |
getNode()
The construct tree node for this construct.
|
default java.lang.String |
getRepositoryArn()
The ARN of this Repository.
|
default java.lang.String |
getRepositoryCloneUrlGrc()
The HTTPS (GRC) clone URL.
|
default java.lang.String |
getRepositoryCloneUrlHttp()
The HTTP clone URL.
|
default java.lang.String |
getRepositoryCloneUrlSsh()
The SSH clone URL.
|
default java.lang.String |
getRepositoryName()
The human-visible name of this Repository.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default Grant |
grant(IGrantable grantee,
java.lang.String... actions)
Grant the given principal identity permissions to perform the actions on this repository.
|
default Grant |
grantPull(IGrantable grantee)
Grant the given identity permissions to pull this repository.
|
default Grant |
grantPullPush(IGrantable grantee)
Grant the given identity permissions to pull and push this repository.
|
default Grant |
grantRead(IGrantable grantee)
Grant the given identity permissions to read this repository.
|
default INotificationRule |
notifiyOnPullRequestMerged(java.lang.String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Deprecated.
this method has a typo in its name, use notifyOnPullRequestMerged instead
|
default INotificationRule |
notifyOn(java.lang.String id,
INotificationRuleTarget target,
RepositoryNotifyOnOptions options)
Defines a CodeStar Notification rule triggered when the project events specified by you are emitted.
|
default INotificationRule |
notifyOnApprovalRuleOverridden(java.lang.String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when an approval rule is overridden.
|
default INotificationRule |
notifyOnApprovalStatusChanged(java.lang.String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when an approval status is changed.
|
default INotificationRule |
notifyOnBranchOrTagCreated(java.lang.String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a new branch or tag is created.
|
default INotificationRule |
notifyOnBranchOrTagDeleted(java.lang.String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a branch or tag is deleted.
|
default INotificationRule |
notifyOnPullRequestComment(java.lang.String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a comment is made on a pull request.
|
default INotificationRule |
notifyOnPullRequestCreated(java.lang.String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a pull request is created.
|
default INotificationRule |
notifyOnPullRequestMerged(java.lang.String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Defines a CodeStar Notification rule which triggers when a pull request is merged.
|
default Rule |
onCommentOnCommit(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a comment is made on a commit.
|
default Rule |
onCommentOnPullRequest(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a comment is made on a pull request.
|
default Rule |
onCommit(java.lang.String id,
OnCommitOptions options)
Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.
|
default Rule |
onEvent(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers for repository events.
|
default Rule |
onPullRequestStateChange(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a pull request state is changed.
|
default Rule |
onReferenceCreated(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a reference is created (i.e.
|
default Rule |
onReferenceDeleted(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a reference is delete (i.e.
|
default Rule |
onReferenceUpdated(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a reference is updated (i.e.
|
default Rule |
onStateChange(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.
|
notifiyOnPullRequestMerged, notifyOnApprovalRuleOverridden, notifyOnApprovalStatusChanged, notifyOnBranchOrTagCreated, notifyOnBranchOrTagDeleted, notifyOnPullRequestComment, notifyOnPullRequestCreated, notifyOnPullRequestMerged, onCommentOnCommit, onCommentOnPullRequest, onCommit, onEvent, onPullRequestStateChange, onReferenceCreated, onReferenceDeleted, onReferenceUpdated, onStateChange
default ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
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 IResource
getEnv
in interface IResource.Jsii$Default
default Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
default java.lang.String getRepositoryArn()
getRepositoryArn
in interface IRepository
default java.lang.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 IRepository
default java.lang.String getRepositoryCloneUrlHttp()
getRepositoryCloneUrlHttp
in interface IRepository
default java.lang.String getRepositoryCloneUrlSsh()
getRepositoryCloneUrlSsh
in interface IRepository
default java.lang.String getRepositoryName()
getRepositoryName
in interface IRepository
default void applyRemovalPolicy(RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
policy
- This parameter is required.default NotificationRuleSourceConfig bindAsNotificationRuleSource(software.constructs.Construct scope)
bindAsNotificationRuleSource
in interface INotificationRuleSource
bindAsNotificationRuleSource
in interface INotificationRuleSource.Jsii$Default
scope
- This parameter is required.default Grant grant(IGrantable grantee, java.lang.String... actions)
grant
in interface IRepository
grantee
- This parameter is required.actions
- This parameter is required.default Grant grantPull(IGrantable grantee)
grantPull
in interface IRepository
grantee
- This parameter is required.default Grant grantPullPush(IGrantable grantee)
grantPullPush
in interface IRepository
grantee
- This parameter is required.default Grant grantRead(IGrantable grantee)
grantRead
in interface IRepository
grantee
- This parameter is required.@Deprecated default INotificationRule notifiyOnPullRequestMerged(java.lang.String id, INotificationRuleTarget target, NotificationRuleOptions options)
notifiyOnPullRequestMerged
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- default INotificationRule notifyOn(java.lang.String id, INotificationRuleTarget target, RepositoryNotifyOnOptions options)
You can also use the methods to define rules for the specific event emitted.
eg: notifyOnPullRequstCreated
.
notifyOn
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- This parameter is required.default INotificationRule notifyOnApprovalRuleOverridden(java.lang.String id, INotificationRuleTarget target, NotificationRuleOptions options)
notifyOnApprovalRuleOverridden
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- default INotificationRule notifyOnApprovalStatusChanged(java.lang.String id, INotificationRuleTarget target, NotificationRuleOptions options)
notifyOnApprovalStatusChanged
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- default INotificationRule notifyOnBranchOrTagCreated(java.lang.String id, INotificationRuleTarget target, NotificationRuleOptions options)
notifyOnBranchOrTagCreated
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- default INotificationRule notifyOnBranchOrTagDeleted(java.lang.String id, INotificationRuleTarget target, NotificationRuleOptions options)
notifyOnBranchOrTagDeleted
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- default INotificationRule notifyOnPullRequestComment(java.lang.String id, INotificationRuleTarget target, NotificationRuleOptions options)
notifyOnPullRequestComment
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- default INotificationRule notifyOnPullRequestCreated(java.lang.String id, INotificationRuleTarget target, NotificationRuleOptions options)
notifyOnPullRequestCreated
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- default INotificationRule notifyOnPullRequestMerged(java.lang.String id, INotificationRuleTarget target, NotificationRuleOptions options)
notifyOnPullRequestMerged
in interface IRepository
id
- This parameter is required.target
- This parameter is required.options
- default Rule onCommentOnCommit(java.lang.String id, OnEventOptions options)
onCommentOnCommit
in interface IRepository
id
- This parameter is required.options
- default Rule onCommentOnPullRequest(java.lang.String id, OnEventOptions options)
onCommentOnPullRequest
in interface IRepository
id
- This parameter is required.options
- default Rule onCommit(java.lang.String id, OnCommitOptions options)
onCommit
in interface IRepository
id
- This parameter is required.options
- default Rule onEvent(java.lang.String id, OnEventOptions options)
Use
rule.addEventPattern(pattern)
to specify a filter.
onEvent
in interface IRepository
id
- This parameter is required.options
- default Rule onPullRequestStateChange(java.lang.String id, OnEventOptions options)
onPullRequestStateChange
in interface IRepository
id
- This parameter is required.options
- default Rule onReferenceCreated(java.lang.String id, OnEventOptions options)
onReferenceCreated
in interface IRepository
id
- This parameter is required.options
- default Rule onReferenceDeleted(java.lang.String id, OnEventOptions options)
onReferenceDeleted
in interface IRepository
id
- This parameter is required.options
- default Rule onReferenceUpdated(java.lang.String id, OnEventOptions options)
onReferenceUpdated
in interface IRepository
id
- This parameter is required.options
- default Rule onStateChange(java.lang.String id, OnEventOptions options)
onStateChange
in interface IRepository
id
- This parameter is required.options
-