public static final class IRepository.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IRepository.Jsii$Default
IRepository.Jsii$Default, IRepository.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Add a policy statement to the repository's resource policy.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
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):.
|
Stack |
getStack()
The stack in which this resource is defined.
|
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.
|
public final ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
getNode
in interface IRepository.Jsii$Default
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
public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface IRepository.Jsii$Default
public final java.lang.String getRepositoryArn()
getRepositoryArn
in interface IRepository
getRepositoryArn
in interface IRepository.Jsii$Default
public final java.lang.String getRepositoryName()
getRepositoryName
in interface IRepository
getRepositoryName
in interface IRepository.Jsii$Default
public final java.lang.String getRepositoryUri()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
getRepositoryUri
in interface IRepository
getRepositoryUri
in interface IRepository.Jsii$Default
public final void applyRemovalPolicy(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.public final AddToResourcePolicyResult addToResourcePolicy(PolicyStatement statement)
addToResourcePolicy
in interface IRepository
addToResourcePolicy
in interface IRepository.Jsii$Default
statement
- This parameter is required.public final Grant grant(IGrantable grantee, java.lang.String... actions)
grant
in interface IRepository
grant
in interface IRepository.Jsii$Default
grantee
- This parameter is required.actions
- This parameter is required.public final Grant grantPull(IGrantable grantee)
grantPull
in interface IRepository
grantPull
in interface IRepository.Jsii$Default
grantee
- This parameter is required.public final Grant grantPullPush(IGrantable grantee)
grantPullPush
in interface IRepository
grantPullPush
in interface IRepository.Jsii$Default
grantee
- This parameter is required.public final 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
onCloudTrailEvent
in interface IRepository.Jsii$Default
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.public final 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 final 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
onCloudTrailImagePushed
in interface IRepository.Jsii$Default
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.public final 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 final Rule onEvent(java.lang.String id, 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
- public final Rule onEvent(java.lang.String id)
Use
rule.addEventPattern(pattern)
to specify a filter.
onEvent
in interface IRepository
id
- This parameter is required.public final Rule onImageScanCompleted(java.lang.String id, OnImageScanCompletedOptions options)
onImageScanCompleted
in interface IRepository
onImageScanCompleted
in interface IRepository.Jsii$Default
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.public final Rule onImageScanCompleted(java.lang.String id)
onImageScanCompleted
in interface IRepository
id
- The id of the rule. This parameter is required.public final java.lang.String repositoryUriForDigest(java.lang.String digest)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest
in interface IRepository
repositoryUriForDigest
in interface IRepository.Jsii$Default
digest
- Image digest to use (tools usually default to the image with the "latest" tag if omitted).public final java.lang.String repositoryUriForDigest()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest
in interface IRepository
public final java.lang.String repositoryUriForTag(java.lang.String tag)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag
in interface IRepository
repositoryUriForTag
in interface IRepository.Jsii$Default
tag
- Image tag to use (tools usually default to "latest" if omitted).public final java.lang.String repositoryUriForTag()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag
in interface IRepository
public final 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]
repositoryUriForTagOrDigest
in interface IRepository
repositoryUriForTagOrDigest
in interface IRepository.Jsii$Default
tagOrDigest
- Image tag or digest to use (tools usually default to the image with the "latest" tag if omitted).public final 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]
repositoryUriForTagOrDigest
in interface IRepository