@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:56.568Z") @Stability(value=Experimental) public class Repository extends Resource implements IRepository
| Modifier and Type | Class and Description |
|---|---|
static class |
Repository.Builder
(experimental) A fluent builder for
Repository. |
software.amazon.jsii.JsiiObject.InitializationModeIRepository.Jsii$Default, IRepository.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Repository(software.constructs.Construct scope,
String id,
RepositoryProps props) |
protected |
Repository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Repository(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IRepository |
fromRepositoryArn(software.constructs.Construct scope,
String id,
String repositoryArn)
(experimental) Imports a codecommit repository.
|
static IRepository |
fromRepositoryName(software.constructs.Construct scope,
String id,
String repositoryName) |
String |
getRepositoryArn()
(experimental) The ARN of this Repository.
|
String |
getRepositoryCloneUrlGrc()
(experimental) The HTTPS (GRC) clone URL.
|
String |
getRepositoryCloneUrlHttp()
(experimental) The HTTP clone URL.
|
String |
getRepositoryCloneUrlSsh()
(experimental) The SSH clone URL.
|
String |
getRepositoryName()
(experimental) The human-visible name of this Repository.
|
Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Grant the given principal identity permissions to perform the actions on this repository.
|
Grant |
grantPull(IGrantable grantee)
(experimental) Grant the given identity permissions to pull this repository.
|
Grant |
grantPullPush(IGrantable grantee)
(experimental) Grant the given identity permissions to pull and push this repository.
|
Grant |
grantRead(IGrantable grantee)
(experimental) Grant the given identity permissions to read this repository.
|
Repository |
notify(String arn)
(experimental) Create a trigger to notify another service to run actions on repository events.
|
Repository |
notify(String arn,
RepositoryTriggerOptions options)
(experimental) Create a trigger to notify another service to run actions on repository events.
|
Rule |
onCommentOnCommit(String id)
(experimental) Defines a CloudWatch event rule which triggers when a comment is made on a commit.
|
Rule |
onCommentOnCommit(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a comment is made on a commit.
|
Rule |
onCommentOnPullRequest(String id)
(experimental) Defines a CloudWatch event rule which triggers when a comment is made on a pull request.
|
Rule |
onCommentOnPullRequest(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a comment is made on a pull request.
|
Rule |
onCommit(String id)
(experimental) Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.
|
Rule |
onCommit(String id,
OnCommitOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a commit is pushed to a branch.
|
Rule |
onEvent(String id)
(experimental) Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onEvent(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onPullRequestStateChange(String id)
(experimental) Defines a CloudWatch event rule which triggers when a pull request state is changed.
|
Rule |
onPullRequestStateChange(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a pull request state is changed.
|
Rule |
onReferenceCreated(String id)
(experimental) Defines a CloudWatch event rule which triggers when a reference is created (i.e.
|
Rule |
onReferenceCreated(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a reference is created (i.e.
|
Rule |
onReferenceDeleted(String id)
(experimental) Defines a CloudWatch event rule which triggers when a reference is delete (i.e.
|
Rule |
onReferenceDeleted(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a reference is delete (i.e.
|
Rule |
onReferenceUpdated(String id)
(experimental) Defines a CloudWatch event rule which triggers when a reference is updated (i.e.
|
Rule |
onReferenceUpdated(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a reference is updated (i.e.
|
Rule |
onStateChange(String id)
(experimental) Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.
|
Rule |
onStateChange(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Repository(software.amazon.jsii.JsiiObjectRef objRef)
protected Repository(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Repository(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
RepositoryProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IRepository fromRepositoryArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String repositoryArn)
scope - This parameter is required.id - This parameter is required.repositoryArn - (e.g. `arn:aws:codecommit:us-east-1:123456789012:MyDemoRepo`). This parameter is required.@Stability(value=Experimental) @NotNull public static IRepository fromRepositoryName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String repositoryName)
scope - This parameter is required.id - This parameter is required.repositoryName - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IRepositorygrantee - This parameter is required.actions - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantPull(@NotNull IGrantable grantee)
grantPull in interface IRepositorygrantee - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantPullPush(@NotNull IGrantable grantee)
grantPullPush in interface IRepositorygrantee - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantRead(@NotNull IGrantable grantee)
grantRead in interface IRepositorygrantee - This parameter is required.@Stability(value=Experimental) @NotNull public Repository notify(@NotNull String arn, @Nullable RepositoryTriggerOptions options)
arn - Arn of the resource that repository events will notify. This parameter is required.options - Trigger options to run actions.@Stability(value=Experimental) @NotNull public Repository notify(@NotNull String arn)
arn - Arn of the resource that repository events will notify. This parameter is required.@Stability(value=Experimental) @NotNull public Rule onCommentOnCommit(@NotNull String id, @Nullable OnEventOptions options)
onCommentOnCommit in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onCommentOnCommit(@NotNull String id)
onCommentOnCommit in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onCommentOnPullRequest(@NotNull String id, @Nullable OnEventOptions options)
onCommentOnPullRequest in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onCommentOnPullRequest(@NotNull String id)
onCommentOnPullRequest in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onCommit(@NotNull String id, @Nullable OnCommitOptions options)
onCommit in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onCommit(@NotNull String id)
onCommit in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
Use
rule.addEventPattern(pattern) to specify a filter.
onEvent in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onEvent(@NotNull String id)
Use
rule.addEventPattern(pattern) to specify a filter.
onEvent in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onPullRequestStateChange(@NotNull String id, @Nullable OnEventOptions options)
onPullRequestStateChange in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onPullRequestStateChange(@NotNull String id)
onPullRequestStateChange in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onReferenceCreated(@NotNull String id, @Nullable OnEventOptions options)
onReferenceCreated in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onReferenceCreated(@NotNull String id)
onReferenceCreated in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onReferenceDeleted(@NotNull String id, @Nullable OnEventOptions options)
onReferenceDeleted in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onReferenceDeleted(@NotNull String id)
onReferenceDeleted in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onReferenceUpdated(@NotNull String id, @Nullable OnEventOptions options)
onReferenceUpdated in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onReferenceUpdated(@NotNull String id)
onReferenceUpdated in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options)
onStateChange in interface IRepositoryid - This parameter is required.options - @Stability(value=Experimental) @NotNull public Rule onStateChange(@NotNull String id)
onStateChange in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public String getRepositoryArn()
getRepositoryArn in interface IRepository@Stability(value=Experimental) @NotNull public 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 IRepositoryhttps://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html@Stability(value=Experimental) @NotNull public String getRepositoryCloneUrlHttp()
getRepositoryCloneUrlHttp in interface IRepository@Stability(value=Experimental) @NotNull public String getRepositoryCloneUrlSsh()
getRepositoryCloneUrlSsh in interface IRepository@Stability(value=Experimental) @NotNull public String getRepositoryName()
getRepositoryName in interface IRepositoryCopyright © 2021. All rights reserved.