@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:49.765Z") public class RepositoryImage extends ContainerImage
For images hosted in Amazon ECR, see EcrImage.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ecr.assets.*; import software.amazon.awscdk.services.ecs.*; DockerImageAsset dockerImageAsset; ContainerImage repositoryImage = RepositoryImage.fromDockerImageAsset(dockerImageAsset);
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryImage.Builder
A fluent builder for
RepositoryImage . |
Modifier | Constructor and Description |
---|---|
protected |
RepositoryImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
RepositoryImage(software.amazon.jsii.JsiiObjectRef objRef) |
|
RepositoryImage(java.lang.String imageName,
RepositoryImageProps props)
Constructs a new instance of the RepositoryImage class.
|
Modifier and Type | Method and Description |
---|---|
ContainerImageConfig |
bind(Construct scope,
ContainerDefinition containerDefinition)
Called when the image is used by a ContainerDefinition.
|
fromAsset, fromAsset, fromDockerImageAsset, fromEcrRepository, fromEcrRepository, fromRegistry, fromRegistry, fromTarball
protected RepositoryImage(software.amazon.jsii.JsiiObjectRef objRef)
protected RepositoryImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public RepositoryImage(java.lang.String imageName, RepositoryImageProps props)
imageName
- This parameter is required.props
- public ContainerImageConfig bind(Construct scope, ContainerDefinition containerDefinition)
bind
in class ContainerImage
scope
- This parameter is required.containerDefinition
- This parameter is required.