Interface RepositoryLookupOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RepositoryLookupOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.640Z")
@Stability(Stable)
public interface RepositoryLookupOptions
extends software.amazon.jsii.JsiiSerializable
Properties for looking up an existing Repository.
Example:
// import using repository name
IRepository repositoryFromName = Repository.fromRepositoryName(this, "ImportedRepoByName", "my-repo-name");
// import using repository ARN
IRepository repositoryFromArn = Repository.fromRepositoryArn(this, "ImportedRepoByArn", "arn:aws:ecr:us-east-1:123456789012:repository/my-repo-name");
// import using repository lookup
// You have to provide either `repositoryArn` or `repositoryName` to lookup the repository
IRepository repositoryFromLookup = Repository.fromLookup(this, "ImportedRepoByLookup", RepositoryLookupOptions.builder()
.repositoryArn("arn:aws:ecr:us-east-1:123456789012:repository/my-repo-name")
.repositoryName("my-repo-name")
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRepositoryLookupOptionsstatic final classAn implementation forRepositoryLookupOptions -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRepositoryArn
The ARN of the repository.Default: - Do not filter on repository ARN
-
getRepositoryName
The name of the repository.Default: - Do not filter on repository name
-
builder
- Returns:
- a
RepositoryLookupOptions.BuilderofRepositoryLookupOptions
-