@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:36.085Z") public abstract class RepositoryBase extends Resource implements IRepository
Reused between imported repositories and owned repositories.
IRepository.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
RepositoryBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
RepositoryBase(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
RepositoryBase(software.constructs.Construct scope,
java.lang.String id) |
protected |
RepositoryBase(software.constructs.Construct scope,
java.lang.String id,
ResourceProps props) |
Modifier and Type | Method and Description |
---|---|
abstract AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Add a policy statement to the repository's resource policy.
|
abstract java.lang.String |
getRepositoryArn()
The ARN of the repository.
|
abstract 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 use the 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 an image scan is completed.
|
Rule |
onImageScanCompleted(java.lang.String id,
OnImageScanCompletedOptions options)
Defines an AWS CloudWatch event rule that can trigger a target when an image scan is completed.
|
java.lang.String |
repositoryUriForDigest()
Returns the URL of the repository.
|
java.lang.String |
repositoryUriForDigest(java.lang.String digest)
Returns the URL of the repository.
|
java.lang.String |
repositoryUriForTag()
Returns the URL of the repository.
|
java.lang.String |
repositoryUriForTag(java.lang.String tag)
Returns the URL of the repository.
|
java.lang.String |
repositoryUriForTagOrDigest()
Returns the URL of the repository.
|
java.lang.String |
repositoryUriForTagOrDigest(java.lang.String tagOrDigest)
Returns the URL of the repository.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected RepositoryBase(software.amazon.jsii.JsiiObjectRef objRef)
protected RepositoryBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected RepositoryBase(software.constructs.Construct scope, java.lang.String id, ResourceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- protected RepositoryBase(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public abstract AddToResourcePolicyResult addToResourcePolicy(PolicyStatement statement)
addToResourcePolicy
in interface IRepository
statement
- This parameter is required.public Grant grant(IGrantable grantee, java.lang.String... actions)
grant
in interface IRepository
grantee
- This parameter is required.actions
- This parameter is required.public Grant grantPull(IGrantable grantee)
grantPull
in interface IRepository
grantee
- This parameter is required.public Grant grantPullPush(IGrantable grantee)
grantPullPush
in interface IRepository
grantee
- This parameter is required.public 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.
onCloudTrailEvent
in interface IRepository
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.public 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.
onCloudTrailEvent
in interface IRepository
id
- The id of the rule. This parameter is required.public 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.
onCloudTrailImagePushed
in interface IRepository
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.public 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.
onCloudTrailImagePushed
in interface IRepository
id
- The id of the rule. This parameter is required.public Rule onEvent(java.lang.String id, OnEventOptions options)
Use
rule.addEventPattern(pattern)
to specify a filter.
onEvent
in interface IRepository
id
- This parameter is required.options
- public Rule onEvent(java.lang.String id)
Use
rule.addEventPattern(pattern)
to specify a filter.
onEvent
in interface IRepository
id
- This parameter is required.public Rule onImageScanCompleted(java.lang.String id, OnImageScanCompletedOptions options)
onImageScanCompleted
in interface IRepository
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.public Rule onImageScanCompleted(java.lang.String id)
onImageScanCompleted
in interface IRepository
id
- The id of the rule. This parameter is required.public java.lang.String repositoryUriForDigest(java.lang.String digest)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest
in interface IRepository
digest
- Optional image digest.public java.lang.String repositoryUriForDigest()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest
in interface IRepository
public java.lang.String repositoryUriForTag(java.lang.String tag)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag
in interface IRepository
tag
- Optional image tag.public java.lang.String repositoryUriForTag()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag
in interface IRepository
public java.lang.String repositoryUriForTagOrDigest(java.lang.String tagOrDigest)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG] ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForTagOrDigest
in interface IRepository
tagOrDigest
- Optional image tag or digest (digests must start with `sha256:`).public java.lang.String repositoryUriForTagOrDigest()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG] ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForTagOrDigest
in interface IRepository
public abstract java.lang.String getRepositoryArn()
getRepositoryArn
in interface IRepository
public abstract java.lang.String getRepositoryName()
getRepositoryName
in interface IRepository
public java.lang.String getRepositoryUri()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
getRepositoryUri
in interface IRepository