@Internal public static final class IRepository.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IRepository.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIRepository.Jsii$Default, IRepository.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
NotificationRuleSourceConfig |
bindAsNotificationRuleSource(software.constructs.Construct scope)
Returns a source configuration for notification rule.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
software.constructs.Node |
getNode()
The tree node.
|
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.
|
Stack |
getStack()
The stack in which this resource is defined.
|
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.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface IRepository.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Stable) @NotNull public final 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$DefaultgetEnv in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final String getRepositoryArn()
getRepositoryArn in interface IRepositorygetRepositoryArn in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final 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 IRepositorygetRepositoryCloneUrlGrc in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final String getRepositoryCloneUrlHttp()
getRepositoryCloneUrlHttp in interface IRepositorygetRepositoryCloneUrlHttp in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final String getRepositoryCloneUrlSsh()
getRepositoryCloneUrlSsh in interface IRepositorygetRepositoryCloneUrlSsh in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final String getRepositoryName()
getRepositoryName in interface IRepositorygetRepositoryName in interface IRepository.Jsii$Default@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
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 IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface IRepository.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull public final NotificationRuleSourceConfig bindAsNotificationRuleSource(@NotNull software.constructs.Construct scope)
bindAsNotificationRuleSource in interface IRepository.Jsii$DefaultbindAsNotificationRuleSource in interface INotificationRuleSourcebindAsNotificationRuleSource in interface INotificationRuleSource.Jsii$Defaultscope - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IRepositorygrant in interface IRepository.Jsii$Defaultgrantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantPull(@NotNull IGrantable grantee)
grantPull in interface IRepositorygrantPull in interface IRepository.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantPullPush(@NotNull IGrantable grantee)
grantPullPush in interface IRepositorygrantPullPush in interface IRepository.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantRead(@NotNull IGrantable grantee)
grantRead in interface IRepositorygrantRead in interface IRepository.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final 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.
notifyOn in interface IRepositorynotifyOn in interface IRepository.Jsii$Defaultid - This parameter is required.target - This parameter is required.options - This parameter is required.@Stability(value=Stable) @NotNull public final INotificationRule notifyOnApprovalRuleOverridden(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnApprovalRuleOverridden in interface IRepositorynotifyOnApprovalRuleOverridden in interface IRepository.Jsii$Defaultid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public final INotificationRule notifyOnApprovalRuleOverridden(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnApprovalRuleOverridden in interface IRepositoryid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public final INotificationRule notifyOnApprovalStatusChanged(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnApprovalStatusChanged in interface IRepositorynotifyOnApprovalStatusChanged in interface IRepository.Jsii$Defaultid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public final INotificationRule notifyOnApprovalStatusChanged(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnApprovalStatusChanged in interface IRepositoryid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public final INotificationRule notifyOnBranchOrTagCreated(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnBranchOrTagCreated in interface IRepositorynotifyOnBranchOrTagCreated in interface IRepository.Jsii$Defaultid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public final INotificationRule notifyOnBranchOrTagCreated(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnBranchOrTagCreated in interface IRepositoryid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public final INotificationRule notifyOnBranchOrTagDeleted(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnBranchOrTagDeleted in interface IRepositorynotifyOnBranchOrTagDeleted in interface IRepository.Jsii$Defaultid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public final INotificationRule notifyOnBranchOrTagDeleted(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnBranchOrTagDeleted in interface IRepositoryid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public final INotificationRule notifyOnPullRequestComment(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnPullRequestComment in interface IRepositorynotifyOnPullRequestComment in interface IRepository.Jsii$Defaultid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public final INotificationRule notifyOnPullRequestComment(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnPullRequestComment in interface IRepositoryid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public final INotificationRule notifyOnPullRequestCreated(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnPullRequestCreated in interface IRepositorynotifyOnPullRequestCreated in interface IRepository.Jsii$Defaultid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public final INotificationRule notifyOnPullRequestCreated(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnPullRequestCreated in interface IRepositoryid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public final INotificationRule notifyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifyOnPullRequestMerged in interface IRepositorynotifyOnPullRequestMerged in interface IRepository.Jsii$Defaultid - This parameter is required.target - This parameter is required.options - @Stability(value=Stable) @NotNull public final INotificationRule notifyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target)
notifyOnPullRequestMerged in interface IRepositoryid - This parameter is required.target - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onCommentOnCommit(@NotNull String id, @Nullable OnEventOptions options)
onCommentOnCommit in interface IRepositoryonCommentOnCommit in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onCommentOnCommit(@NotNull String id)
onCommentOnCommit in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onCommentOnPullRequest(@NotNull String id, @Nullable OnEventOptions options)
onCommentOnPullRequest in interface IRepositoryonCommentOnPullRequest in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onCommentOnPullRequest(@NotNull String id)
onCommentOnPullRequest in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onCommit(@NotNull String id, @Nullable OnCommitOptions options)
onCommit in interface IRepositoryonCommit in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onCommit(@NotNull String id)
onCommit in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
Use
rule.addEventPattern(pattern) to specify a filter.
onEvent in interface IRepositoryonEvent in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onEvent(@NotNull String id)
Use
rule.addEventPattern(pattern) to specify a filter.
onEvent in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onPullRequestStateChange(@NotNull String id, @Nullable OnEventOptions options)
onPullRequestStateChange in interface IRepositoryonPullRequestStateChange in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onPullRequestStateChange(@NotNull String id)
onPullRequestStateChange in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onReferenceCreated(@NotNull String id, @Nullable OnEventOptions options)
onReferenceCreated in interface IRepositoryonReferenceCreated in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onReferenceCreated(@NotNull String id)
onReferenceCreated in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onReferenceDeleted(@NotNull String id, @Nullable OnEventOptions options)
onReferenceDeleted in interface IRepositoryonReferenceDeleted in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onReferenceDeleted(@NotNull String id)
onReferenceDeleted in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onReferenceUpdated(@NotNull String id, @Nullable OnEventOptions options)
onReferenceUpdated in interface IRepositoryonReferenceUpdated in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onReferenceUpdated(@NotNull String id)
onReferenceUpdated in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options)
onStateChange in interface IRepositoryonStateChange in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onStateChange(@NotNull String id)
onStateChange in interface IRepositoryid - This parameter is required.Copyright © 2022. All rights reserved.