Class IRepository.Jsii$Proxy
- All Implemented Interfaces:
IConstruct,IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,IResource,IResource.Jsii$Default,IRepository,IRepository.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default
- Enclosing interface:
- IRepository
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.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.core.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToResourcePolicy(PolicyStatement statement) Add a policy statement to the repository's resource policy.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final ConstructNodegetNode()The construct tree node for this construct.final StringThe ARN of the repository.final StringThe name of the repository.final StringThe URI of this repository (represents the latest image):.final StackgetStack()The stack in which this resource is defined.final Grantgrant(IGrantable grantee, @NotNull String... actions) Grant the given principal identity permissions to perform the actions on this repository.final GrantgrantPull(IGrantable grantee) Grant the given identity permissions to pull images in this repository.final GrantgrantPullPush(IGrantable grantee) Grant the given identity permissions to pull and push images to this repository.final RuleDefine a CloudWatch event that triggers when something happens to this repository.final RuleonCloudTrailEvent(String id, OnEventOptions options) Define a CloudWatch event that triggers when something happens to this repository.final RuleDefines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.final RuleonCloudTrailImagePushed(String id, OnCloudTrailImagePushedOptions options) Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.final RuleDefines a CloudWatch event rule which triggers for repository events.final RuleonEvent(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers for repository events.final RuleDefines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.final RuleonImageScanCompleted(String id, OnImageScanCompletedOptions options) Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.final StringReturns the URI of the repository for a certain digest.final StringrepositoryUriForDigest(String digest) Returns the URI of the repository for a certain digest.final StringReturns the URI of the repository for a certain tag.final StringReturns the URI of the repository for a certain tag.final StringReturns the URI of the repository for a certain tag or digest, inferring based on the syntax of the tag.final 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 class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIRepository.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnvin interfaceIRepository.Jsii$Default- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIRepository.Jsii$Default- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getRepositoryArn
The ARN of the repository.- Specified by:
getRepositoryArnin interfaceIRepository- Specified by:
getRepositoryArnin interfaceIRepository.Jsii$Default
-
getRepositoryName
The name of the repository.- Specified by:
getRepositoryNamein interfaceIRepository- Specified by:
getRepositoryNamein interfaceIRepository.Jsii$Default
-
getRepositoryUri
The URI of this repository (represents the latest image):.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
- Specified by:
getRepositoryUriin interfaceIRepository- Specified by:
getRepositoryUriin interfaceIRepository.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIRepository.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addToResourcePolicy
@Stability(Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Add a policy statement to the repository's resource policy.- Specified by:
addToResourcePolicyin interfaceIRepository- Specified by:
addToResourcePolicyin interfaceIRepository.Jsii$Default- Parameters:
statement- This parameter is required.
-
grant
@Stability(Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Grant the given principal identity permissions to perform the actions on this repository.- Specified by:
grantin interfaceIRepository- Specified by:
grantin interfaceIRepository.Jsii$Default- 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- Specified by:
grantPullin interfaceIRepository.Jsii$Default- Parameters:
grantee- This parameter is required.
-
grantPullPush
Grant the given identity permissions to pull and push images to this repository.- Specified by:
grantPullPushin interfaceIRepository- Specified by:
grantPullPushin interfaceIRepository.Jsii$Default- Parameters:
grantee- This parameter is required.
-
onCloudTrailEvent
@Stability(Stable) @NotNull public final 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- Specified by:
onCloudTrailEventin interfaceIRepository.Jsii$Default- 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 public final 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- Specified by:
onCloudTrailImagePushedin interfaceIRepository.Jsii$Default- 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 public final 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- Specified by:
onEventin interfaceIRepository.Jsii$Default- 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 public final 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- Specified by:
onImageScanCompletedin interfaceIRepository.Jsii$Default- 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- Specified by:
repositoryUriForDigestin interfaceIRepository.Jsii$Default- 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- Specified by:
repositoryUriForTagin interfaceIRepository.Jsii$Default- 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 public final 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- Specified by:
repositoryUriForTagOrDigestin interfaceIRepository.Jsii$Default- 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
-