@Internal public static final class IRepository.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IRepository.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationMode
IRepository.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.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
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 |
notifiyOnPullRequestMerged(String id,
INotificationRuleTarget target)
Deprecated.
this method has a typo in its name, use notifyOnPullRequestMerged instead
|
INotificationRule |
notifiyOnPullRequestMerged(String id,
INotificationRuleTarget target,
NotificationRuleOptions options)
Deprecated.
this method has a typo in its name, use notifyOnPullRequestMerged instead
|
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 ConstructNode getNode()
getNode
in interface IResource.Jsii$Default
getNode
in interface IRepository.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 IResource
getEnv
in interface IResource.Jsii$Default
getEnv
in interface IRepository.Jsii$Default
@Stability(value=Stable) @NotNull public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface IRepository.Jsii$Default
@Stability(value=Stable) @NotNull public final String getRepositoryArn()
getRepositoryArn
in interface IRepository
getRepositoryArn
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 IRepository
getRepositoryCloneUrlGrc
in interface IRepository.Jsii$Default
@Stability(value=Stable) @NotNull public final String getRepositoryCloneUrlHttp()
getRepositoryCloneUrlHttp
in interface IRepository
getRepositoryCloneUrlHttp
in interface IRepository.Jsii$Default
@Stability(value=Stable) @NotNull public final String getRepositoryCloneUrlSsh()
getRepositoryCloneUrlSsh
in interface IRepository
getRepositoryCloneUrlSsh
in interface IRepository.Jsii$Default
@Stability(value=Stable) @NotNull public final String getRepositoryName()
getRepositoryName
in interface IRepository
getRepositoryName
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 IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
applyRemovalPolicy
in interface IRepository.Jsii$Default
policy
- This parameter is required.@Stability(value=Stable) @NotNull public final NotificationRuleSourceConfig bindAsNotificationRuleSource(@NotNull software.constructs.Construct scope)
bindAsNotificationRuleSource
in interface IRepository.Jsii$Default
bindAsNotificationRuleSource
in interface INotificationRuleSource
bindAsNotificationRuleSource
in interface INotificationRuleSource.Jsii$Default
scope
- This parameter is required.@Stability(value=Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant
in interface IRepository
grant
in interface IRepository.Jsii$Default
grantee
- This parameter is required.actions
- This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantPull(@NotNull IGrantable grantee)
grantPull
in interface IRepository
grantPull
in interface IRepository.Jsii$Default
grantee
- This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantPullPush(@NotNull IGrantable grantee)
grantPullPush
in interface IRepository
grantPullPush
in interface IRepository.Jsii$Default
grantee
- This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantRead(@NotNull IGrantable grantee)
grantRead
in interface IRepository
grantRead
in interface IRepository.Jsii$Default
grantee
- This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public final INotificationRule notifiyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options)
notifiyOnPullRequestMerged
in interface IRepository
notifiyOnPullRequestMerged
in interface IRepository.Jsii$Default
id
- This parameter is required.target
- This parameter is required.options
- @Stability(value=Deprecated) @Deprecated @NotNull public final INotificationRule notifiyOnPullRequestMerged(@NotNull String id, @NotNull INotificationRuleTarget target)
notifiyOnPullRequestMerged
in interface IRepository
id
- This parameter is required.target
- 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 IRepository
notifyOn
in interface IRepository.Jsii$Default
id
- 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 IRepository
notifyOnApprovalRuleOverridden
in interface IRepository.Jsii$Default
id
- 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 IRepository
id
- 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 IRepository
notifyOnApprovalStatusChanged
in interface IRepository.Jsii$Default
id
- 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 IRepository
id
- 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 IRepository
notifyOnBranchOrTagCreated
in interface IRepository.Jsii$Default
id
- 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 IRepository
id
- 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 IRepository
notifyOnBranchOrTagDeleted
in interface IRepository.Jsii$Default
id
- 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 IRepository
id
- 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 IRepository
notifyOnPullRequestComment
in interface IRepository.Jsii$Default
id
- 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 IRepository
id
- 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 IRepository
notifyOnPullRequestCreated
in interface IRepository.Jsii$Default
id
- 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 IRepository
id
- 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 IRepository
notifyOnPullRequestMerged
in interface IRepository.Jsii$Default
id
- 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 IRepository
id
- 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 IRepository
onCommentOnCommit
in interface IRepository.Jsii$Default
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull public final Rule onCommentOnCommit(@NotNull String id)
onCommentOnCommit
in interface IRepository
id
- This parameter is required.@Stability(value=Stable) @NotNull public final Rule onCommentOnPullRequest(@NotNull String id, @Nullable OnEventOptions options)
onCommentOnPullRequest
in interface IRepository
onCommentOnPullRequest
in interface IRepository.Jsii$Default
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull public final Rule onCommentOnPullRequest(@NotNull String id)
onCommentOnPullRequest
in interface IRepository
id
- This parameter is required.@Stability(value=Stable) @NotNull public final Rule onCommit(@NotNull String id, @Nullable OnCommitOptions options)
onCommit
in interface IRepository
onCommit
in interface IRepository.Jsii$Default
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull public final Rule onCommit(@NotNull String id)
onCommit
in interface IRepository
id
- 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 IRepository
onEvent
in interface IRepository.Jsii$Default
id
- 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 IRepository
id
- This parameter is required.@Stability(value=Stable) @NotNull public final Rule onPullRequestStateChange(@NotNull String id, @Nullable OnEventOptions options)
onPullRequestStateChange
in interface IRepository
onPullRequestStateChange
in interface IRepository.Jsii$Default
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull public final Rule onPullRequestStateChange(@NotNull String id)
onPullRequestStateChange
in interface IRepository
id
- This parameter is required.@Stability(value=Stable) @NotNull public final Rule onReferenceCreated(@NotNull String id, @Nullable OnEventOptions options)
onReferenceCreated
in interface IRepository
onReferenceCreated
in interface IRepository.Jsii$Default
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull public final Rule onReferenceCreated(@NotNull String id)
onReferenceCreated
in interface IRepository
id
- This parameter is required.@Stability(value=Stable) @NotNull public final Rule onReferenceDeleted(@NotNull String id, @Nullable OnEventOptions options)
onReferenceDeleted
in interface IRepository
onReferenceDeleted
in interface IRepository.Jsii$Default
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull public final Rule onReferenceDeleted(@NotNull String id)
onReferenceDeleted
in interface IRepository
id
- This parameter is required.@Stability(value=Stable) @NotNull public final Rule onReferenceUpdated(@NotNull String id, @Nullable OnEventOptions options)
onReferenceUpdated
in interface IRepository
onReferenceUpdated
in interface IRepository.Jsii$Default
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull public final Rule onReferenceUpdated(@NotNull String id)
onReferenceUpdated
in interface IRepository
id
- This parameter is required.@Stability(value=Stable) @NotNull public final Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options)
onStateChange
in interface IRepository
onStateChange
in interface IRepository.Jsii$Default
id
- This parameter is required.options
- @Stability(value=Stable) @NotNull public final Rule onStateChange(@NotNull String id)
onStateChange
in interface IRepository
id
- This parameter is required.Copyright © 2023. All rights reserved.