Show / Hide Table of Contents

Class GetAmiIds

Inheritance
System.Object
GetAmiIds
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
Assembly: Pulumi.Aws.dll
Syntax
public static class GetAmiIds

Methods

View Source

InvokeAsync(GetAmiIdsArgs, InvokeOptions)

Use this data source to get a list of AMI IDs matching the specified criteria.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var ubuntu = Output.Create(Aws.GetAmiIds.InvokeAsync(new Aws.GetAmiIdsArgs
    {
        Filters = 
        {
            new Aws.Inputs.GetAmiIdsFilterArgs
            {
                Name = "name",
                Values = 
                {
                    "ubuntu/images/ubuntu-*-*-amd64-server-*",
                },
            },
        },
        Owners = 
        {
            "099720109477",
        },
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetAmiIdsResult> InvokeAsync(GetAmiIdsArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetAmiIdsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetAmiIdsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.