Interface IRepository.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IRepository,IRepositoryRef,IRepositoryRef.Jsii$Default,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IRepository.Jsii$Proxy
- Enclosing interface:
IRepository
IRepository.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecr.IRepository
IRepository.Jsii$Default, IRepository.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ecr.IRepositoryRef
IRepositoryRef.Jsii$Default, IRepositoryRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault AddToResourcePolicyResultaddToResourcePolicy(PolicyStatement statement) Add a policy statement to the repository's resource policy.default StringThe URI of this repository's registry:.default StringThe ARN of the repository.default StringThe name of the repository.default StringThe URI of this repository (represents the latest image):.default Grantgrant(IGrantable grantee, String... actions) Grant the given principal identity permissions to perform the actions on this repository.default GrantgrantPull(IGrantable grantee) Grant the given identity permissions to pull images in this repository.default GrantgrantPullPush(IGrantable grantee) Grant the given identity permissions to pull and push images to this repository.default GrantgrantPush(IGrantable grantee) Grant the given identity permissions to push images in this repository.default GrantgrantRead(IGrantable grantee) Grant the given identity permissions to read images in this repository.default RuleDefine a CloudWatch event that triggers when something happens to this repository.default RuleonCloudTrailEvent(String id, OnEventOptions options) Define a CloudWatch event that triggers when something happens to this repository.default RuleDefines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.default RuleonCloudTrailImagePushed(String id, OnCloudTrailImagePushedOptions options) Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.default RuleDefines a CloudWatch event rule which triggers for repository events.default RuleonEvent(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers for repository events.default RuleDefines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.default RuleonImageScanCompleted(String id, OnImageScanCompletedOptions options) Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.default StringReturns the URI of the repository for a certain digest.default StringrepositoryUriForDigest(String digest) Returns the URI of the repository for a certain digest.default StringReturns the URI of the repository for a certain tag.default StringReturns the URI of the repository for a certain tag.default StringReturns the URI of the repository for a certain tag or digest, inferring based on the syntax of the tag.default StringrepositoryUriForTagOrDigest(String tagOrDigest) Returns the URI of the repository for a certain tag or digest, inferring based on the syntax of the tag.Methods inherited from interface software.constructs.IConstruct.Jsii$Default
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.interfaces.ecr.IRepositoryRef.Jsii$Default
getRepositoryRefMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRegistryUri
The URI of this repository's registry:.ACCOUNT.dkr.ecr.REGION.amazonaws.com
- Specified by:
getRegistryUriin interfaceIRepository
-
getRepositoryArn
The ARN of the repository.- Specified by:
getRepositoryArnin interfaceIRepository
-
getRepositoryName
The name of the repository.- Specified by:
getRepositoryNamein interfaceIRepository
-
getRepositoryUri
The URI of this repository (represents the latest image):.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
- Specified by:
getRepositoryUriin interfaceIRepository
-
addToResourcePolicy
@Stability(Stable) @NotNull default AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Add a policy statement to the repository's resource policy.- Specified by:
addToResourcePolicyin interfaceIRepository- Parameters:
statement- This parameter is required.
-
grant
@Stability(Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Grant the given principal identity permissions to perform the actions on this repository.- Specified by:
grantin interfaceIRepository- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantPull
Grant the given identity permissions to pull images in this repository.- Specified by:
grantPullin interfaceIRepository- Parameters:
grantee- This parameter is required.
-
grantPullPush
Grant the given identity permissions to pull and push images to this repository.- Specified by:
grantPullPushin interfaceIRepository- Parameters:
grantee- This parameter is required.
-
grantPush
Grant the given identity permissions to push images in this repository.- Specified by:
grantPushin interfaceIRepository- Parameters:
grantee- This parameter is required.
-
grantRead
Grant the given identity permissions to read images in this repository.- Specified by:
grantReadin interfaceIRepository- Parameters:
grantee- This parameter is required.
-
onCloudTrailEvent
@Stability(Stable) @NotNull default Rule onCloudTrailEvent(@NotNull String id, @Nullable OnEventOptions options) Define a CloudWatch event that triggers when something happens to this repository.Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
- Specified by:
onCloudTrailEventin interfaceIRepository- Parameters:
id- The id of the rule. This parameter is required.options- Options for adding the rule.
-
onCloudTrailEvent
Define a CloudWatch event that triggers when something happens to this repository.Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
- Specified by:
onCloudTrailEventin interfaceIRepository- Parameters:
id- The id of the rule. This parameter is required.
-
onCloudTrailImagePushed
@Stability(Stable) @NotNull default Rule onCloudTrailImagePushed(@NotNull String id, @Nullable OnCloudTrailImagePushedOptions options) Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
- Specified by:
onCloudTrailImagePushedin interfaceIRepository- Parameters:
id- The id of the rule. This parameter is required.options- Options for adding the rule.
-
onCloudTrailImagePushed
Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
- Specified by:
onCloudTrailImagePushedin interfaceIRepository- Parameters:
id- The id of the rule. This parameter is required.
-
onEvent
@Stability(Stable) @NotNull default Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers for repository events.Use
rule.addEventPattern(pattern)to specify a filter.- Specified by:
onEventin interfaceIRepository- Parameters:
id- This parameter is required.options-
-
onEvent
Defines a CloudWatch event rule which triggers for repository events.Use
rule.addEventPattern(pattern)to specify a filter.- Specified by:
onEventin interfaceIRepository- Parameters:
id- This parameter is required.
-
onImageScanCompleted
@Stability(Stable) @NotNull default Rule onImageScanCompleted(@NotNull String id, @Nullable OnImageScanCompletedOptions options) Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.- Specified by:
onImageScanCompletedin interfaceIRepository- Parameters:
id- The id of the rule. This parameter is required.options- Options for adding the rule.
-
onImageScanCompleted
Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.- Specified by:
onImageScanCompletedin interfaceIRepository- Parameters:
id- The id of the rule. This parameter is required.
-
repositoryUriForDigest
Returns the URI of the repository for a certain digest. Can be used indocker push/pull.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
- Specified by:
repositoryUriForDigestin interfaceIRepository- Parameters:
digest- Image digest to use (tools usually default to the image with the "latest" tag if omitted).
-
repositoryUriForDigest
Returns the URI of the repository for a certain digest. Can be used indocker push/pull.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
- Specified by:
repositoryUriForDigestin interfaceIRepository
-
repositoryUriForTag
Returns the URI of the repository for a certain tag. Can be used indocker push/pull.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
- Specified by:
repositoryUriForTagin interfaceIRepository- Parameters:
tag- Image tag to use (tools usually default to "latest" if omitted).
-
repositoryUriForTag
Returns the URI of the repository for a certain tag. Can be used indocker push/pull.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]
- Specified by:
repositoryUriForTagin interfaceIRepository
-
repositoryUriForTagOrDigest
@Stability(Stable) @NotNull default String repositoryUriForTagOrDigest(@Nullable String tagOrDigest) Returns the URI of the repository for a certain tag or digest, inferring based on the syntax of the tag.Can be used in
docker push/pull.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG] ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
- Specified by:
repositoryUriForTagOrDigestin interfaceIRepository- Parameters:
tagOrDigest- Image tag or digest to use (tools usually default to the image with the "latest" tag if omitted).
-
repositoryUriForTagOrDigest
Returns the URI of the repository for a certain tag or digest, inferring based on the syntax of the tag.Can be used in
docker push/pull.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG] ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]
- Specified by:
repositoryUriForTagOrDigestin interfaceIRepository
-