Class IRepository.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecr.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

@Internal public static final class IRepository.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IRepository.Jsii$Default
A proxy class which represents a concrete javascript instance of this type.
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
  • Method Details

    • getNode

      @Stability(Stable) @NotNull public final ConstructNode getNode()
      The construct tree node for this construct.
      Specified by:
      getNode in interface IConstruct
      Specified by:
      getNode in interface IConstruct.Jsii$Default
      Specified by:
      getNode in interface IRepository.Jsii$Default
      Specified by:
      getNode in interface IResource.Jsii$Default
    • getEnv

      @Stability(Stable) @NotNull public final ResourceEnvironment 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:
      getEnv in interface IRepository.Jsii$Default
      Specified by:
      getEnv in interface IResource
      Specified by:
      getEnv in interface IResource.Jsii$Default
    • getStack

      @Stability(Stable) @NotNull public final Stack getStack()
      The stack in which this resource is defined.
      Specified by:
      getStack in interface IRepository.Jsii$Default
      Specified by:
      getStack in interface IResource
      Specified by:
      getStack in interface IResource.Jsii$Default
    • getRepositoryArn

      @Stability(Stable) @NotNull public final String getRepositoryArn()
      The ARN of the repository.
      Specified by:
      getRepositoryArn in interface IRepository
      Specified by:
      getRepositoryArn in interface IRepository.Jsii$Default
    • getRepositoryName

      @Stability(Stable) @NotNull public final String getRepositoryName()
      The name of the repository.
      Specified by:
      getRepositoryName in interface IRepository
      Specified by:
      getRepositoryName in interface IRepository.Jsii$Default
    • getRepositoryUri

      @Stability(Stable) @NotNull public final String getRepositoryUri()
      The URI of this repository (represents the latest image):.

      ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY

      Specified by:
      getRepositoryUri in interface IRepository
      Specified by:
      getRepositoryUri in interface IRepository.Jsii$Default
    • applyRemovalPolicy

      @Stability(Stable) public final void applyRemovalPolicy(@NotNull RemovalPolicy policy)
      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:
      applyRemovalPolicy in interface IRepository.Jsii$Default
      Specified by:
      applyRemovalPolicy in interface IResource
      Specified by:
      applyRemovalPolicy in interface IResource.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:
      addToResourcePolicy in interface IRepository
      Specified by:
      addToResourcePolicy in interface IRepository.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:
      grant in interface IRepository
      Specified by:
      grant in interface IRepository.Jsii$Default
      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • grantPull

      @Stability(Stable) @NotNull public final Grant grantPull(@NotNull IGrantable grantee)
      Grant the given identity permissions to pull images in this repository.

      Specified by:
      grantPull in interface IRepository
      Specified by:
      grantPull in interface IRepository.Jsii$Default
      Parameters:
      grantee - This parameter is required.
    • grantPullPush

      @Stability(Stable) @NotNull public final Grant grantPullPush(@NotNull IGrantable grantee)
      Grant the given identity permissions to pull and push images to this repository.

      Specified by:
      grantPullPush in interface IRepository
      Specified by:
      grantPullPush in interface IRepository.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:
      onCloudTrailEvent in interface IRepository
      Specified by:
      onCloudTrailEvent in interface IRepository.Jsii$Default
      Parameters:
      id - The id of the rule. This parameter is required.
      options - Options for adding the rule.
    • onCloudTrailEvent

      @Stability(Stable) @NotNull public final Rule onCloudTrailEvent(@NotNull String id)
      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:
      onCloudTrailEvent in interface IRepository
      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:
      onCloudTrailImagePushed in interface IRepository
      Specified by:
      onCloudTrailImagePushed in interface IRepository.Jsii$Default
      Parameters:
      id - The id of the rule. This parameter is required.
      options - Options for adding the rule.
    • onCloudTrailImagePushed

      @Stability(Stable) @NotNull public final Rule onCloudTrailImagePushed(@NotNull String id)
      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:
      onCloudTrailImagePushed in interface IRepository
      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:
      onEvent in interface IRepository
      Specified by:
      onEvent in interface IRepository.Jsii$Default
      Parameters:
      id - This parameter is required.
      options -
    • onEvent

      @Stability(Stable) @NotNull public final Rule onEvent(@NotNull String id)
      Defines a CloudWatch event rule which triggers for repository events.

      Use rule.addEventPattern(pattern) to specify a filter.

      Specified by:
      onEvent in interface IRepository
      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:
      onImageScanCompleted in interface IRepository
      Specified by:
      onImageScanCompleted in interface IRepository.Jsii$Default
      Parameters:
      id - The id of the rule. This parameter is required.
      options - Options for adding the rule.
    • onImageScanCompleted

      @Stability(Stable) @NotNull public final Rule onImageScanCompleted(@NotNull String id)
      Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.

      Specified by:
      onImageScanCompleted in interface IRepository
      Parameters:
      id - The id of the rule. This parameter is required.
    • repositoryUriForDigest

      @Stability(Stable) @NotNull public final String repositoryUriForDigest(@Nullable String digest)
      Returns the URI of the repository for a certain digest. Can be used in docker push/pull.

      ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]

      Specified by:
      repositoryUriForDigest in interface IRepository
      Specified by:
      repositoryUriForDigest in interface IRepository.Jsii$Default
      Parameters:
      digest - Image digest to use (tools usually default to the image with the "latest" tag if omitted).
    • repositoryUriForDigest

      @Stability(Stable) @NotNull public final String repositoryUriForDigest()
      Returns the URI of the repository for a certain digest. Can be used in docker push/pull.

      ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST]

      Specified by:
      repositoryUriForDigest in interface IRepository
    • repositoryUriForTag

      @Stability(Stable) @NotNull public final String repositoryUriForTag(@Nullable String tag)
      Returns the URI of the repository for a certain tag. Can be used in docker push/pull.

      ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]

      Specified by:
      repositoryUriForTag in interface IRepository
      Specified by:
      repositoryUriForTag in interface IRepository.Jsii$Default
      Parameters:
      tag - Image tag to use (tools usually default to "latest" if omitted).
    • repositoryUriForTag

      @Stability(Stable) @NotNull public final String repositoryUriForTag()
      Returns the URI of the repository for a certain tag. Can be used in docker push/pull.

      ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG]

      Specified by:
      repositoryUriForTag in interface IRepository
    • 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:
      repositoryUriForTagOrDigest in interface IRepository
      Specified by:
      repositoryUriForTagOrDigest in interface IRepository.Jsii$Default
      Parameters:
      tagOrDigest - Image tag or digest to use (tools usually default to the image with the "latest" tag if omitted).
    • repositoryUriForTagOrDigest

      @Stability(Stable) @NotNull public final String 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:
      repositoryUriForTagOrDigest in interface IRepository