@Internal public static interface IRepository.Jsii$Default extends IRepository, IResource.Jsii$Default
IRepository.IRepository.Jsii$Default, IRepository.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Add a policy statement to the repository's resource policy.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default ConstructNode |
getNode()
The construct tree node for this construct.
|
default String |
getRepositoryArn()
The ARN of the repository.
|
default String |
getRepositoryName()
The name of the repository.
|
default String |
getRepositoryUri()
The URI of this repository (represents the latest image):.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default Grant |
grant(IGrantable grantee,
String... actions)
Grant the given principal identity permissions to perform the actions on this repository.
|
default Grant |
grantPull(IGrantable grantee)
Grant the given identity permissions to pull images in this repository.
|
default Grant |
grantPullPush(IGrantable grantee)
Grant the given identity permissions to pull and push images to this repository.
|
default Rule |
onCloudTrailEvent(String id,
OnEventOptions options)
Define a CloudWatch event that triggers when something happens to this repository.
|
default Rule |
onCloudTrailImagePushed(String id,
OnCloudTrailImagePushedOptions options)
Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.
|
default Rule |
onEvent(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers for repository events.
|
default Rule |
onImageScanCompleted(String id,
OnImageScanCompletedOptions options)
Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.
|
default String |
repositoryUriForDigest(String digest)
Returns the URI of the repository for a certain tag.
|
default String |
repositoryUriForTag(String tag)
Returns the URI of the repository for a certain tag.
|
onCloudTrailEvent, onCloudTrailImagePushed, onEvent, onImageScanCompleted, repositoryUriForDigest, repositoryUriForTag@Stability(value=Stable) @NotNull default ConstructNode getNode()
getNode in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default 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 IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default String getRepositoryArn()
getRepositoryArn in interface IRepository@Stability(value=Stable) @NotNull default String getRepositoryName()
getRepositoryName in interface IRepository@Stability(value=Stable) @NotNull default String getRepositoryUri()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
getRepositoryUri in interface IRepository@Stability(value=Stable) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
addToResourcePolicy in interface IRepositorystatement - This parameter is required.@Stability(value=Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IRepositorygrantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull default Grant grantPull(@NotNull IGrantable grantee)
grantPull in interface IRepositorygrantee - This parameter is required.@Stability(value=Stable) @NotNull default Grant grantPullPush(@NotNull IGrantable grantee)
grantPullPush in interface IRepositorygrantee - This parameter is required.@Stability(value=Stable) @NotNull default Rule onCloudTrailEvent(@NotNull String id, @Nullable 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 IRepositoryid - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull default Rule onCloudTrailImagePushed(@NotNull String id, @Nullable 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 IRepositoryid - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull default 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=Stable) @NotNull default Rule onImageScanCompleted(@NotNull String id, @Nullable OnImageScanCompletedOptions options)
onImageScanCompleted in interface IRepositoryid - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull default String repositoryUriForDigest(@Nullable String digest)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest in interface IRepositorydigest - Image digest to use (tools usually default to the image with the "latest" tag if omitted).@Stability(value=Stable) @NotNull default String repositoryUriForTag(@Nullable String tag)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag in interface IRepositorytag - Image tag to use (tools usually default to "latest" if omitted).Copyright © 2021. All rights reserved.