Class IRepository.Jsii$Proxy
- All Implemented Interfaces:
IResource
,IResource.Jsii$Default
,IRepository
,IRepository.Jsii$Default
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IRepository
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ecr.IRepository
IRepository.Jsii$Default, IRepository.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddToResourcePolicy
(PolicyStatement statement) Add a policy statement to the repository's resource policy.final void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.final ResourceEnvironment
getEnv()
The environment this resource belongs to.final software.constructs.Node
getNode()
The tree node.final String
The ARN of the repository.final String
The name of the repository.final String
The URI of this repository (represents the latest image):.final Stack
getStack()
The stack in which this resource is defined.final Grant
grant
(IGrantable grantee, @NotNull String... actions) Grant the given principal identity permissions to perform the actions on this repository.final Grant
grantPull
(IGrantable grantee) Grant the given identity permissions to pull images in this repository.final Grant
grantPullPush
(IGrantable grantee) Grant the given identity permissions to pull and push images to this repository.final Grant
grantPush
(IGrantable grantee) Grant the given identity permissions to push images in this repository.final Grant
grantRead
(IGrantable grantee) Grant the given identity permissions to read images in this repository.final Rule
Define a CloudWatch event that triggers when something happens to this repository.final Rule
onCloudTrailEvent
(String id, OnEventOptions options) Define a CloudWatch event that triggers when something happens to this repository.final Rule
Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository.final 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.final Rule
Defines a CloudWatch event rule which triggers for repository events.final Rule
onEvent
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers for repository events.final Rule
Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.final Rule
onImageScanCompleted
(String id, OnImageScanCompletedOptions options) Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed.final String
Returns the URI of the repository for a certain digest.final String
repositoryUriForDigest
(String digest) Returns the URI of the repository for a certain digest.final String
Returns the URI of the repository for a certain tag.final String
Returns the URI of the repository for a certain tag.final String
Returns the URI of the repository for a certain tag or digest, inferring based on the syntax of the tag.final String
repositoryUriForTagOrDigest
(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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIRepository.Jsii$Default
- Specified by:
getNode
in 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:
getEnv
in interfaceIRepository.Jsii$Default
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIRepository.Jsii$Default
- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
-
getRepositoryArn
The ARN of the repository.- Specified by:
getRepositoryArn
in interfaceIRepository
- Specified by:
getRepositoryArn
in interfaceIRepository.Jsii$Default
-
getRepositoryName
The name of the repository.- Specified by:
getRepositoryName
in interfaceIRepository
- Specified by:
getRepositoryName
in interfaceIRepository.Jsii$Default
-
getRepositoryUri
The URI of this repository (represents the latest image):.ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY
- Specified by:
getRepositoryUri
in interfaceIRepository
- Specified by:
getRepositoryUri
in 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:
applyRemovalPolicy
in interfaceIRepository.Jsii$Default
- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in 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:
addToResourcePolicy
in interfaceIRepository
- Specified by:
addToResourcePolicy
in 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:
grant
in interfaceIRepository
- Specified by:
grant
in 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:
grantPull
in interfaceIRepository
- Specified by:
grantPull
in 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:
grantPullPush
in interfaceIRepository
- Specified by:
grantPullPush
in interfaceIRepository.Jsii$Default
- Parameters:
grantee
- This parameter is required.
-
grantPush
Grant the given identity permissions to push images in this repository.- Specified by:
grantPush
in interfaceIRepository
- Specified by:
grantPush
in interfaceIRepository.Jsii$Default
- Parameters:
grantee
- This parameter is required.
-
grantRead
Grant the given identity permissions to read images in this repository.- Specified by:
grantRead
in interfaceIRepository
- Specified by:
grantRead
in 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:
onCloudTrailEvent
in interfaceIRepository
- Specified by:
onCloudTrailEvent
in 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:
onCloudTrailEvent
in 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:
onCloudTrailImagePushed
in interfaceIRepository
- Specified by:
onCloudTrailImagePushed
in 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:
onCloudTrailImagePushed
in 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:
onEvent
in interfaceIRepository
- Specified by:
onEvent
in 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:
onEvent
in 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:
onImageScanCompleted
in interfaceIRepository
- Specified by:
onImageScanCompleted
in 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:
onImageScanCompleted
in 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:
repositoryUriForDigest
in interfaceIRepository
- Specified by:
repositoryUriForDigest
in 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:
repositoryUriForDigest
in 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:
repositoryUriForTag
in interfaceIRepository
- Specified by:
repositoryUriForTag
in 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:
repositoryUriForTag
in 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:
repositoryUriForTagOrDigest
in interfaceIRepository
- Specified by:
repositoryUriForTagOrDigest
in 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:
repositoryUriForTagOrDigest
in interfaceIRepository
-