Class GetAmiArgs
Inherited Members
Namespace: Pulumi.Aws
Assembly: Pulumi.Aws.dll
Syntax
public sealed class GetAmiArgs : InvokeArgs
Constructors
View SourceGetAmiArgs()
Declaration
public GetAmiArgs()
Properties
View SourceExecutableUsers
Limit search to users with explicit launch permission on
the image. Valid items are the numeric account ID or self.
Declaration
public List<string> ExecutableUsers { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |
Filters
One or more name/value pairs to filter off of. There are several valid keys, for a full reference, check out [describe-images in the AWS CLI reference][1].
Declaration
public List<GetAmiFilterArgs> Filters { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<GetAmiFilterArgs> |
MostRecent
If more than one result is returned, use the most recent AMI.
Declaration
public bool? MostRecent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
NameRegex
A regex string to apply to the AMI list returned by AWS. This allows more advanced filtering not supported from the AWS API. This filtering is done locally on what AWS returns, and could have a performance impact if the result is large. It is recommended to combine this with other options to narrow down the list AWS returns.
Declaration
public string NameRegex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Owners
List of AMI owners to limit search. At least 1 value must be specified. Valid values: an AWS account ID, self (the current account), or an AWS owner alias (e.g. amazon, aws-marketplace, microsoft).
Declaration
public List<string> Owners { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |
Tags
Any tags assigned to the image.
tags.#.key- The key name of the tag.tags.#.value- The value of the tag.
Declaration
public Dictionary<string, object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Object> |