Class RepositoryImage
An image hosted in a public or private repository.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class RepositoryImage : ContainerImage
Syntax (vb)
Public Class RepositoryImage
Inherits ContainerImage
Remarks
For images hosted in Amazon ECR, see EcrImage.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Ecr.Assets;
using Amazon.CDK.AWS.ECS;
DockerImageAsset dockerImageAsset;
var repositoryImage = RepositoryImage.FromDockerImageAsset(dockerImageAsset);
Synopsis
Constructors
RepositoryImage(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
RepositoryImage(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
RepositoryImage(String, IRepositoryImageProps) | Constructs a new instance of the RepositoryImage class. |
Methods
Bind(Construct, ContainerDefinition) | Called when the image is used by a ContainerDefinition. |
Constructors
RepositoryImage(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected RepositoryImage(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
RepositoryImage(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected RepositoryImage(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
RepositoryImage(String, IRepositoryImageProps)
Constructs a new instance of the RepositoryImage class.
public RepositoryImage(string imageName, IRepositoryImageProps props = null)
Parameters
- imageName System.String
- props IRepositoryImageProps
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