Interface EcrProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcrProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:25:07.505Z")
@Stability(Experimental)
public interface EcrProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties of the image repository for
Source.fromEcr()
.
Example:
import software.amazon.awscdk.services.ecr.*; Service.Builder.create(this, "Service") .source(Source.fromEcr(EcrProps.builder() .imageConfiguration(ImageConfiguration.builder().port(80).build()) .repository(Repository.fromRepositoryName(this, "NginxRepository", "nginx")) .tagOrDigest("latest") .build())) .build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EcrProps.Builder
builder()
default ImageConfiguration
(experimental) The image configuration for the image from ECR.(experimental) Represents the ECR repository.default String
getTag()
Deprecated.default String
(experimental) Image tag or digest (digests must start withsha256:
).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRepository
(experimental) Represents the ECR repository. -
getImageConfiguration
(experimental) The image configuration for the image from ECR.Default: - no image configuration will be passed. The default `port` will be 8080.
- See Also:
-
getTag
Deprecated.usetagOrDigest
(deprecated) Image tag.Default: - 'latest'
-
getTagOrDigest
(experimental) Image tag or digest (digests must start withsha256:
).Default: - 'latest'
-
builder
- Returns:
- a
EcrProps.Builder
ofEcrProps
-
tagOrDigest