IRepository Interface
Properties
envResourceEnvironmentenvResourceEnvironmentenvResourceEnvironmentEnvResourceEnvironmentEnvResourceEnvironment#notes
For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.
repositoryCloneUrlGrcstringrepository_clone_url_grcstrrepositoryCloneUrlGrcStringRepositoryCloneUrlGrcstringRepositoryCloneUrlGrc*string#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.
repositoryCloneUrlHttpstringrepository_clone_url_httpstrrepositoryCloneUrlHttpStringRepositoryCloneUrlHttpstringRepositoryCloneUrlHttp*string#repositoryCloneUrlSshstringrepository_clone_url_sshstrrepositoryCloneUrlSshStringRepositoryCloneUrlSshstringRepositoryCloneUrlSsh*string#repositoryNamestringrepository_namestrrepositoryNameStringRepositoryNamestringRepositoryName*string#repositoryRefRepositoryReferencerepository_refRepositoryReferencerepositoryRefRepositoryReferenceRepositoryRefRepositoryReferenceRepositoryRefRepositoryReference#Methods
applyRemovalPolicy(policy: RemovalPolicy): voiddef apply_removal_policy(self, policy: RemovalPolicy) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy)public void ApplyRemovalPolicy(RemovalPolicy policy)func ApplyRemovalPolicy(Policy RemovalPolicy)#notes
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).
bindAsNotificationRuleSource(scope: Construct): NotificationRuleSourceConfigdef bind_as_notification_rule_source(self, scope: Construct) -> NotificationRuleSourceConfigpublic NotificationRuleSourceConfig bindAsNotificationRuleSource(Construct scope)public NotificationRuleSourceConfig BindAsNotificationRuleSource(Construct scope)func BindAsNotificationRuleSource(Scope Construct) NotificationRuleSourceConfig#grant(grantee: IGrantable, ...actions: string[]): Grantdef grant(self, grantee: IGrantable, actions: str) -> Grantpublic Grant grant(IGrantable grantee, String actions)public Grant Grant(IGrantable grantee, string actions)func Grant(Grantee IGrantable, Actions *string) Grant#grantPull(grantee: IGrantable): Grantdef grant_pull(self, grantee: IGrantable) -> Grantpublic Grant grantPull(IGrantable grantee)public Grant GrantPull(IGrantable grantee)func GrantPull(Grantee IGrantable) Grant#grantPullPush(grantee: IGrantable): Grantdef grant_pull_push(self, grantee: IGrantable) -> Grantpublic Grant grantPullPush(IGrantable grantee)public Grant GrantPullPush(IGrantable grantee)func GrantPullPush(Grantee IGrantable) Grant#grantRead(grantee: IGrantable): Grantdef grant_read(self, grantee: IGrantable) -> Grantpublic Grant grantRead(IGrantable grantee)public Grant GrantRead(IGrantable grantee)func GrantRead(Grantee IGrantable) Grant#notifyOn(id: string, target: INotificationRuleTarget, options: RepositoryNotifyOnOptions): INotificationRuledef notify_on(self, id: str, target: INotificationRuleTarget, options: RepositoryNotifyOnOptions) -> INotificationRulepublic INotificationRule notifyOn(String id, INotificationRuleTarget target, RepositoryNotifyOnOptions options)public INotificationRule NotifyOn(string id, INotificationRuleTarget target, RepositoryNotifyOnOptions options)func NotifyOn(Id *string, Target INotificationRuleTarget, Options RepositoryNotifyOnOptions) INotificationRule#You can also use the methods to define rules for the specific event emitted. e.g. notifyOnPullRequestCreated.
returns
Returns: CodeStar Notifications rule associated with this repository.
notifyOnApprovalRuleOverridden(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_approval_rule_overridden(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnApprovalRuleOverridden(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnApprovalRuleOverridden(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnApprovalRuleOverridden(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule#notifyOnApprovalStatusChanged(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_approval_status_changed(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnApprovalStatusChanged(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnApprovalStatusChanged(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnApprovalStatusChanged(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule#notifyOnBranchOrTagCreated(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_branch_or_tag_created(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnBranchOrTagCreated(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnBranchOrTagCreated(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnBranchOrTagCreated(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule#notifyOnBranchOrTagDeleted(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_branch_or_tag_deleted(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnBranchOrTagDeleted(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnBranchOrTagDeleted(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnBranchOrTagDeleted(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule#notifyOnPullRequestComment(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_pull_request_comment(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnPullRequestComment(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnPullRequestComment(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnPullRequestComment(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule#notifyOnPullRequestCreated(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_pull_request_created(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnPullRequestCreated(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnPullRequestCreated(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnPullRequestCreated(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule#notifyOnPullRequestMerged(id: string, target: INotificationRuleTarget, options?: NotificationRuleOptions): INotificationRuledef notify_on_pull_request_merged(self, id: str, target: INotificationRuleTarget, options: typing.Optional[NotificationRuleOptions] = None) -> INotificationRulepublic INotificationRule notifyOnPullRequestMerged(String id, INotificationRuleTarget target, NotificationRuleOptions options)public INotificationRule NotifyOnPullRequestMerged(string id, INotificationRuleTarget target, NotificationRuleOptions? options = null)func NotifyOnPullRequestMerged(Id *string, Target INotificationRuleTarget, Options NotificationRuleOptions) INotificationRule#onCommentOnCommit(id: string, options?: OnEventOptions): Ruledef on_comment_on_commit(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onCommentOnCommit(String id, OnEventOptions options)public Rule OnCommentOnCommit(string id, OnEventOptions? options = null)func OnCommentOnCommit(Id *string, Options OnEventOptions) Rule#onCommentOnPullRequest(id: string, options?: OnEventOptions): Ruledef on_comment_on_pull_request(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onCommentOnPullRequest(String id, OnEventOptions options)public Rule OnCommentOnPullRequest(string id, OnEventOptions? options = null)func OnCommentOnPullRequest(Id *string, Options OnEventOptions) Rule#onCommit(id: string, options?: OnCommitOptions): Ruledef on_commit(self, id: str, options: typing.Optional[OnCommitOptions] = None) -> Rulepublic Rule onCommit(String id, OnCommitOptions options)public Rule OnCommit(string id, OnCommitOptions? options = null)func OnCommit(Id *string, Options OnCommitOptions) Rule#onEvent(id: string, options?: OnEventOptions): Ruledef on_event(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onEvent(String id, OnEventOptions options)public Rule OnEvent(string id, OnEventOptions? options = null)func OnEvent(Id *string, Options OnEventOptions) Rule#Use rule.addEventPattern(pattern) to specify a filter.
onPullRequestStateChange(id: string, options?: OnEventOptions): Ruledef on_pull_request_state_change(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onPullRequestStateChange(String id, OnEventOptions options)public Rule OnPullRequestStateChange(string id, OnEventOptions? options = null)func OnPullRequestStateChange(Id *string, Options OnEventOptions) Rule#onReferenceCreated(id: string, options?: OnEventOptions): Ruledef on_reference_created(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onReferenceCreated(String id, OnEventOptions options)public Rule OnReferenceCreated(string id, OnEventOptions? options = null)func OnReferenceCreated(Id *string, Options OnEventOptions) Rule#onReferenceDeleted(id: string, options?: OnEventOptions): Ruledef on_reference_deleted(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onReferenceDeleted(String id, OnEventOptions options)public Rule OnReferenceDeleted(string id, OnEventOptions? options = null)func OnReferenceDeleted(Id *string, Options OnEventOptions) Rule#onReferenceUpdated(id: string, options?: OnEventOptions): Ruledef on_reference_updated(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onReferenceUpdated(String id, OnEventOptions options)public Rule OnReferenceUpdated(string id, OnEventOptions? options = null)func OnReferenceUpdated(Id *string, Options OnEventOptions) Rule#onStateChange(id: string, options?: OnEventOptions): Ruledef on_state_change(self, id: str, options: typing.Optional[OnEventOptions] = None) -> Rulepublic Rule onStateChange(String id, OnEventOptions options)public Rule OnStateChange(string id, OnEventOptions? options = null)func OnStateChange(Id *string, Options OnEventOptions) Rule#with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.
1 parameter · returns
Parameters
mixinsmixinsmixinsmixinsMixins— The mixins to apply.
Returns: This construct for chaining