@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-17T17:31:13.341Z") public interface IRepository extends IResource
Modifier and Type | Interface and Description |
---|---|
static interface |
IRepository.Jsii$Default
Internal default implementation for
IRepository . |
static class |
IRepository.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
Modifier and Type | Method and Description |
---|---|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Add a policy statement to the repository's resource policy.
|
java.lang.String |
getRepositoryArn()
The ARN of the repository.
|
java.lang.String |
getRepositoryName()
The name of the repository.
|
java.lang.String |
getRepositoryUri()
The URI of this repository (represents the latest image):.
|
Grant |
grant(IGrantable grantee,
java.lang.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 images in this repository.
|
Grant |
grantPullPush(IGrantable grantee)
Grant the given identity permissions to pull and push images to this repository.
|
Rule |
onCloudTrailEvent(java.lang.String id)
Define a CloudWatch event that triggers when something happens to this repository.
|
Rule |
onCloudTrailEvent(java.lang.String id,
OnEventOptions options)
Define a CloudWatch event that triggers when something happens to this repository.
|
Rule |
onCloudTrailImagePushed(java.lang.String id)
Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.
|
Rule |
onCloudTrailImagePushed(java.lang.String id,
OnCloudTrailImagePushedOptions options)
Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.
|
Rule |
onEvent(java.lang.String id)
Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onEvent(java.lang.String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onImageScanCompleted(java.lang.String id)
Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.
|
Rule |
onImageScanCompleted(java.lang.String id,
OnImageScanCompletedOptions options)
Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.
|
java.lang.String |
repositoryUriForDigest()
Returns the URI of the repository for a certain digest.
|
java.lang.String |
repositoryUriForDigest(java.lang.String digest)
Returns the URI of the repository for a certain digest.
|
java.lang.String |
repositoryUriForTag()
Returns the URI of the repository for a certain tag.
|
java.lang.String |
repositoryUriForTag(java.lang.String tag)
Returns the URI of the repository for a certain tag.
|
java.lang.String |
repositoryUriForTagOrDigest()
Returns the URI of the repository for a certain tag or digest, inferring based on the syntax of the tag.
|
java.lang.String |
repositoryUriForTagOrDigest(java.lang.String tagOrDigest)
Returns the URI of the repository for a certain tag or digest, inferring based on the syntax of the tag.
|
applyRemovalPolicy, getEnv, getStack
getNode
java.lang.String getRepositoryArn()
java.lang.String getRepositoryName()
java.lang.String getRepositoryUri()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
AddToResourcePolicyResult addToResourcePolicy(PolicyStatement statement)
statement
- This parameter is required.Grant grant(IGrantable grantee, java.lang.String... actions)
grantee
- This parameter is required.actions
- This parameter is required.Grant grantPull(IGrantable grantee)
grantee
- This parameter is required.Grant grantPullPush(IGrantable grantee)
grantee
- This parameter is required.Rule onCloudTrailEvent(java.lang.String id, OnEventOptions options)
Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.Rule onCloudTrailEvent(java.lang.String id)
Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
id
- The id of the rule. This parameter is required.Rule onCloudTrailImagePushed(java.lang.String id, OnCloudTrailImagePushedOptions options)
Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.Rule onCloudTrailImagePushed(java.lang.String id)
Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
id
- The id of the rule. This parameter is required.Rule onEvent(java.lang.String id, OnEventOptions options)
Use
rule.addEventPattern(pattern)
to specify a filter.
id
- This parameter is required.options
- Rule onEvent(java.lang.String id)
Use
rule.addEventPattern(pattern)
to specify a filter.
id
- This parameter is required.Rule onImageScanCompleted(java.lang.String id, OnImageScanCompletedOptions options)
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.Rule onImageScanCompleted(java.lang.String id)
id
- The id of the rule. This parameter is required.java.lang.String repositoryUriForDigest(java.lang.String digest)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
digest
- Image digest to use (tools usually default to the image with the "latest" tag if omitted).java.lang.String repositoryUriForDigest()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
java.lang.String repositoryUriForTag(java.lang.String tag)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
tag
- Image tag to use (tools usually default to "latest" if omitted).java.lang.String repositoryUriForTag()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
java.lang.String repositoryUriForTagOrDigest(java.lang.String tagOrDigest)
Can be used in docker push/pull
.
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG] ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
tagOrDigest
- Image tag or digest to use (tools usually default to the image with the "latest" tag if omitted).java.lang.String repositoryUriForTagOrDigest()
Can be used in docker push/pull
.
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG] ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]