GetAmiPlainArgs

data class GetAmiPlainArgs(val executableUsers: List<String>? = null, val filters: List<GetAmiFilter>? = null, val includeDeprecated: Boolean? = null, val mostRecent: Boolean? = null, val nameRegex: String? = null, val owners: List<String>? = null, val tags: Map<String, String>? = null) : ConvertibleToJava<GetAmiPlainArgs>

A collection of arguments for invoking getAmi.

Constructors

Link copied to clipboard
constructor(executableUsers: List<String>? = null, filters: List<GetAmiFilter>? = null, includeDeprecated: Boolean? = null, mostRecent: Boolean? = null, nameRegex: String? = null, owners: List<String>? = null, tags: Map<String, String>? = null)

Properties

Link copied to clipboard

Limit search to users with explicit launch permission on the image. Valid items are the numeric account ID or self.

Link copied to clipboard
val filters: List<GetAmiFilter>? = null

One or more name/value pairs to filter off of. There are several valid keys, for a full reference, check out 1.

Link copied to clipboard

If true, all deprecated AMIs are included in the response. If false, no deprecated AMIs are included in the response. If no value is specified, the default value is false.

Link copied to clipboard
val mostRecent: Boolean? = null

If more than one result is returned, use the most recent AMI.

Link copied to clipboard
val nameRegex: String? = null

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. Combine this with other options to narrow down the list AWS returns.

Link copied to clipboard
val owners: List<String>? = null

List of AMI owners to limit search. Valid values: an AWS account ID, self (the current account), or an AWS owner alias (e.g., amazon, aws-marketplace, microsoft).

Link copied to clipboard
val tags: Map<String, String>? = null

Any tags assigned to the image.

Functions

Link copied to clipboard
open override fun toJava(): GetAmiPlainArgs