@Internal public static final class IRepository.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IRepository.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeIRepository.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.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
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):.
|
Stack |
getStack()
The stack in which this resource is defined.
|
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.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final ConstructNode getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull 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 IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final String getRepositoryArn()
getRepositoryArn in interface IRepositorygetRepositoryArn in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final String getRepositoryName()
getRepositoryName in interface IRepositorygetRepositoryName in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final String getRepositoryUri()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
getRepositoryUri in interface IRepositorygetRepositoryUri in interface IRepository.Jsii$Default@Stability(value=Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
addToResourcePolicy in interface IRepositoryaddToResourcePolicy in interface IRepository.Jsii$Defaultstatement - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IRepositorygrant in interface IRepository.Jsii$Defaultgrantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantPull(@NotNull IGrantable grantee)
grantPull in interface IRepositorygrantPull in interface IRepository.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final Grant grantPullPush(@NotNull IGrantable grantee)
grantPullPush in interface IRepositorygrantPullPush in interface IRepository.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final 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 IRepositoryonCloudTrailEvent in interface IRepository.Jsii$Defaultid - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull public final 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.
onCloudTrailEvent in interface IRepositoryid - The id of the rule. This parameter is required.@Stability(value=Stable) @NotNull public final 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 IRepositoryonCloudTrailImagePushed in interface IRepository.Jsii$Defaultid - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull public final 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.
onCloudTrailImagePushed in interface IRepositoryid - The id of the rule. This parameter is required.@Stability(value=Stable) @NotNull public final Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
Use
rule.addEventPattern(pattern) to specify a filter.
onEvent in interface IRepositoryonEvent in interface IRepository.Jsii$Defaultid - This parameter is required.options - @Stability(value=Stable) @NotNull public final Rule onEvent(@NotNull String id)
Use
rule.addEventPattern(pattern) to specify a filter.
onEvent in interface IRepositoryid - This parameter is required.@Stability(value=Stable) @NotNull public final Rule onImageScanCompleted(@NotNull String id, @Nullable OnImageScanCompletedOptions options)
onImageScanCompleted in interface IRepositoryonImageScanCompleted in interface IRepository.Jsii$Defaultid - The id of the rule. This parameter is required.options - Options for adding the rule.@Stability(value=Stable) @NotNull public final Rule onImageScanCompleted(@NotNull String id)
onImageScanCompleted in interface IRepositoryid - The id of the rule. This parameter is required.@Stability(value=Stable) @NotNull public final String repositoryUriForDigest(@Nullable String digest)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest in interface IRepositoryrepositoryUriForDigest in interface IRepository.Jsii$Defaultdigest - Image digest to use (tools usually default to the image with the "latest" tag if omitted).@Stability(value=Stable) @NotNull public final String repositoryUriForDigest()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest in interface IRepository@Stability(value=Stable) @NotNull public final String repositoryUriForTag(@Nullable String tag)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag in interface IRepositoryrepositoryUriForTag in interface IRepository.Jsii$Defaulttag - Image tag to use (tools usually default to "latest" if omitted).@Stability(value=Stable) @NotNull public final String repositoryUriForTag()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag in interface IRepositoryCopyright © 2021. All rights reserved.