@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.707Z") @Stability(value=Experimental) public abstract class RepositoryBase extends Resource implements IRepository
Reused between imported repositories and owned repositories.
software.amazon.jsii.JsiiObject.InitializationModeIRepository.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
RepositoryBase(software.constructs.Construct scope,
String id) |
protected |
RepositoryBase(software.constructs.Construct scope,
String id,
ResourceProps props) |
protected |
RepositoryBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
RepositoryBase(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
(experimental) Add a policy statement to the repository's resource policy.
|
abstract String |
getRepositoryArn()
(experimental) The ARN of the repository.
|
abstract String |
getRepositoryName()
(experimental) The name of the repository.
|
String |
getRepositoryUri()
(experimental) The URI of this repository (represents the latest image):.
|
Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Grant the given principal identity permissions to perform the actions on this repository.
|
Grant |
grantPull(IGrantable grantee)
(experimental) Grant the given identity permissions to use the images in this repository.
|
Grant |
grantPullPush(IGrantable grantee)
(experimental) Grant the given identity permissions to pull and push images to this repository.
|
Rule |
onCloudTrailEvent(String id)
(experimental) Define a CloudWatch event that triggers when something happens to this repository.
|
Rule |
onCloudTrailEvent(String id,
OnEventOptions options)
(experimental) Define a CloudWatch event that triggers when something happens to this repository.
|
Rule |
onCloudTrailImagePushed(String id)
(experimental) 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)
(experimental) Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.
|
Rule |
onEvent(String id)
(experimental) Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onEvent(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule which triggers for repository events.
|
Rule |
onImageScanCompleted(String id)
(experimental) Defines an AWS CloudWatch event rule that can trigger a target when an image scan is completed.
|
Rule |
onImageScanCompleted(String id,
OnImageScanCompletedOptions options)
(experimental) Defines an AWS CloudWatch event rule that can trigger a target when an image scan is completed.
|
String |
repositoryUriForDigest()
(experimental) Returns the URL of the repository.
|
String |
repositoryUriForDigest(String digest)
(experimental) Returns the URL of the repository.
|
String |
repositoryUriForTag()
(experimental) Returns the URL of the repository.
|
String |
repositoryUriForTag(String tag)
(experimental) Returns the URL of the repository.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected RepositoryBase(software.amazon.jsii.JsiiObjectRef objRef)
protected RepositoryBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected RepositoryBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ResourceProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
protected RepositoryBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public abstract AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
addToResourcePolicy in interface IRepositorystatement - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IRepositorygrantee - This parameter is required.actions - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantPull(@NotNull IGrantable grantee)
grantPull in interface IRepositorygrantee - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantPullPush(@NotNull IGrantable grantee)
grantPullPush in interface IRepositorygrantee - This parameter is required.@Stability(value=Experimental) @NotNull public 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=Experimental) @NotNull public 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=Experimental) @NotNull public 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=Experimental) @NotNull public 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=Experimental) @NotNull public 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=Experimental) @NotNull public Rule onEvent(@NotNull String id)
Use
rule.addEventPattern(pattern) to specify a filter.
onEvent in interface IRepositoryid - This parameter is required.@Stability(value=Experimental) @NotNull public 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=Experimental) @NotNull public Rule onImageScanCompleted(@NotNull String id)
onImageScanCompleted in interface IRepositoryid - The id of the rule. This parameter is required.@Stability(value=Experimental) @NotNull public String repositoryUriForDigest(@Nullable String digest)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest in interface IRepositorydigest - Optional image digest.@Stability(value=Experimental) @NotNull public String repositoryUriForDigest()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
repositoryUriForDigest in interface IRepository@Stability(value=Experimental) @NotNull public String repositoryUriForTag(@Nullable String tag)
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag in interface IRepositorytag - Optional image tag.@Stability(value=Experimental) @NotNull public String repositoryUriForTag()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
repositoryUriForTag in interface IRepository@Stability(value=Experimental) @NotNull public abstract String getRepositoryArn()
getRepositoryArn in interface IRepository@Stability(value=Experimental) @NotNull public abstract String getRepositoryName()
getRepositoryName in interface IRepository@Stability(value=Experimental) @NotNull public String getRepositoryUri()
ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
getRepositoryUri in interface IRepositoryCopyright © 2021. All rights reserved.