Class GetImage
Inheritance
System.Object
GetImage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ecr
Assembly: Pulumi.Aws.dll
Syntax
public static class GetImage
Methods
View SourceInvokeAsync(GetImageArgs, InvokeOptions)
The ECR Image data source allows the details of an image with a particular tag or digest to be retrieved.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var serviceImage = Output.Create(Aws.Ecr.GetImage.InvokeAsync(new Aws.Ecr.GetImageArgs
{
ImageTag = "latest",
RepositoryName = "my/service",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetImageArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetImageResult> |