@Generated(value="jsii-pacmak/1.24.0 (build b722f66)", date="2021-03-11T13:46:26.365Z") @Stability(value=Stable) public interface IRepository extends software.amazon.jsii.JsiiSerializable, 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.
|
String |
getRepositoryArn()
The ARN of the repository.
|
String |
getRepositoryName()
The name of the repository.
|
String |
getRepositoryUri()
The URI of this repository (represents the latest image):.
|
Grant |
grant(IGrantable grantee,
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(String id)
Define a CloudWatch event that triggers when something happens to this repository.
|
Rule |
onCloudTrailEvent(String id,
OnEventOptions options)
Define a CloudWatch event that triggers when something happens to this repository.
|
Rule |
onCloudTrailImagePushed(String id)
Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.
|
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.
|
Rule |
onEvent(String id)
Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onEvent(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onImageScanCompleted(String id)
Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.
|
Rule |
onImageScanCompleted(String id,
OnImageScanCompletedOptions options)
Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.
|
String |
repositoryUriForDigest()
Returns the URI of the repository for a certain tag.
|
String |
repositoryUriForDigest(String digest)
Returns the URI of the repository for a certain tag.
|
String |
repositoryUriForTag()
Returns the URI of the repository for a certain tag.
|
String |
repositoryUriForTag(String tag)
Returns the URI of the repository for a certain tag.
|
getNode@Stability(value=Stable) @NotNull String getRepositoryArn()
@Stability(value=Stable) @NotNull String getRepositoryName()
@Stability(value=Stable) @NotNull String getRepositoryUri()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
@Stability(value=Stable) @NotNull AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
statement - This parameter is required.@Stability(value=Stable) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull Grant grantPull(@NotNull IGrantable grantee)
grantee - This parameter is required.@Stability(value=Stable) @NotNull Grant grantPullPush(@NotNull IGrantable grantee)
grantee - This parameter is required.@Stability(value=Stable) @NotNull 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.
id - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull Rule onCloudTrailEvent(@NotNull 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.@Stability(value=Stable) @NotNull 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.
id - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull Rule onCloudTrailImagePushed(@NotNull 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.@Stability(value=Stable) @NotNull Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
Use
rule.addEventPattern(pattern) to specify a filter.
id - This parameter is required.options - @Stability(value=Stable) @NotNull Rule onEvent(@NotNull String id)
Use
rule.addEventPattern(pattern) to specify a filter.
id - This parameter is required.@Stability(value=Stable) @NotNull Rule onImageScanCompleted(@NotNull String id, @Nullable OnImageScanCompletedOptions options)
id - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull Rule onImageScanCompleted(@NotNull String id)
id - The id of the rule. This parameter is required.@Stability(value=Stable) @NotNull String repositoryUriForDigest(@Nullable 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).@Stability(value=Stable) @NotNull String repositoryUriForDigest()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
@Stability(value=Stable) @NotNull String repositoryUriForTag(@Nullable String tag)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
tag - Image tag to use (tools usually default to "latest" if omitted).@Stability(value=Stable) @NotNull String repositoryUriForTag()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
Copyright © 2021. All rights reserved.