Interface EcrProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcrProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.045Z")
@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.Builderbuilder()default ImageConfiguration(experimental) The image configuration for the image from ECR.(experimental) Represents the ECR repository.default StringgetTag()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.
-
getTag
Deprecated.usetagOrDigest(deprecated) Image tag.Default: - 'latest'
-
getTagOrDigest
(experimental) Image tag or digest (digests must start withsha256:).Default: - 'latest'
-
builder
- Returns:
- a
EcrProps.BuilderofEcrProps
-
tagOrDigest