
com.pulumi.aws.ec2.inputs.GetAmiPlainArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ec2.inputs;
import com.pulumi.aws.ec2.inputs.GetAmiFilter;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetAmiPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetAmiPlainArgs Empty = new GetAmiPlainArgs();
/**
* Limit search to users with *explicit* launch permission on
* the image. Valid items are the numeric account ID or `self`.
*
*/
@Import(name="executableUsers")
private @Nullable List executableUsers;
/**
* @return Limit search to users with *explicit* launch permission on
* the image. Valid items are the numeric account ID or `self`.
*
*/
public Optional> executableUsers() {
return Optional.ofNullable(this.executableUsers);
}
/**
* 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].
*
*/
@Import(name="filters")
private @Nullable List filters;
/**
* @return 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].
*
*/
public Optional> filters() {
return Optional.ofNullable(this.filters);
}
/**
* 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.
*
*/
@Import(name="includeDeprecated")
private @Nullable Boolean includeDeprecated;
/**
* @return 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.
*
*/
public Optional includeDeprecated() {
return Optional.ofNullable(this.includeDeprecated);
}
/**
* If more than one result is returned, use the most
* recent AMI.
*
*/
@Import(name="mostRecent")
private @Nullable Boolean mostRecent;
/**
* @return If more than one result is returned, use the most
* recent AMI.
*
*/
public Optional mostRecent() {
return Optional.ofNullable(this.mostRecent);
}
/**
* 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.
*
* > **NOTE:** If more or less than a single match is returned by the search,
* this call will fail. Ensure that your search is specific enough to return
* a single AMI ID only, or use `most_recent` to choose the most recent one. If
* you want to match multiple AMIs, use the `aws.ec2.getAmiIds` data source instead.
*
*/
@Import(name="nameRegex")
private @Nullable String nameRegex;
/**
* @return 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.
*
* > **NOTE:** If more or less than a single match is returned by the search,
* this call will fail. Ensure that your search is specific enough to return
* a single AMI ID only, or use `most_recent` to choose the most recent one. If
* you want to match multiple AMIs, use the `aws.ec2.getAmiIds` data source instead.
*
*/
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
/**
* 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`).
*
*/
@Import(name="owners")
private @Nullable List owners;
/**
* @return 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`).
*
*/
public Optional> owners() {
return Optional.ofNullable(this.owners);
}
/**
* Any tags assigned to the image.
* * `tags.#.key` - Key name of the tag.
* * `tags.#.value` - Value of the tag.
*
*/
@Import(name="tags")
private @Nullable Map tags;
/**
* @return Any tags assigned to the image.
* * `tags.#.key` - Key name of the tag.
* * `tags.#.value` - Value of the tag.
*
*/
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy