Show / Hide Table of Contents

Class EcrImage

An image from an Amazon ECR repository.

Inheritance
System.Object
ContainerImage
EcrImage
Inherited Members
ContainerImage.FromAsset(String, IAssetImageProps)
ContainerImage.FromDockerImageAsset(DockerImageAsset)
ContainerImage.FromEcrRepository(IRepository, String)
ContainerImage.FromRegistry(String, IRepositoryImageProps)
ContainerImage.FromTarball(String)
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class EcrImage : ContainerImage
Syntax (vb)
Public Class EcrImage
    Inherits ContainerImage
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.ECR;


var repo = Repository.FromRepositoryName(this, "batch-job-repo", "todo-list");

new JobDefinition(this, "batch-job-def-from-ecr", new JobDefinitionProps {
    Container = new JobDefinitionContainer {
        Image = new EcrImage(repo, "latest")
    }
});

Synopsis

Constructors

EcrImage(IRepository, String)

Constructs a new instance of the EcrImage class.

EcrImage(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

EcrImage(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Properties

ImageName

The image name. Images in Amazon ECR repositories can be specified by either using the full registry/repository:tag or registry/repository@digest.

Methods

Bind(Construct, ContainerDefinition)

Called when the image is used by a ContainerDefinition.

Constructors

EcrImage(IRepository, String)

Constructs a new instance of the EcrImage class.

public EcrImage(IRepository repository, string tagOrDigest)
Parameters
repository IRepository
tagOrDigest System.String

EcrImage(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected EcrImage(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

EcrImage(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected EcrImage(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Properties

ImageName

The image name. Images in Amazon ECR repositories can be specified by either using the full registry/repository:tag or registry/repository@digest.

public virtual string ImageName { get; }
Property Value

System.String

Remarks

For example, 012345678910.dkr.ecr..amazonaws.com/:latest or 012345678910.dkr.ecr..amazonaws.com/@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE.

Methods

Bind(Construct, ContainerDefinition)

Called when the image is used by a ContainerDefinition.

public override IContainerImageConfig Bind(Construct scope, ContainerDefinition containerDefinition)
Parameters
scope Construct
containerDefinition ContainerDefinition
Returns

IContainerImageConfig

Overrides
ContainerImage.Bind(Construct, ContainerDefinition)
Back to top Generated by DocFX