Class GetAmiArgs


  • public final class GetAmiArgs
    extends com.pulumi.resources.InvokeArgs
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GetAmiArgs.Builder  
      • Nested classes/interfaces inherited from class com.pulumi.resources.InputArgs

        com.pulumi.resources.InputArgs.InputArgsInternal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static GetAmiArgs Empty  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static GetAmiArgs.Builder builder()  
      static GetAmiArgs.Builder builder​(GetAmiArgs defaults)  
      java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> executableUsers()  
      java.util.Optional<com.pulumi.core.Output<java.util.List<GetAmiFilterArgs>>> filters()  
      java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> includeDeprecated()  
      java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> mostRecent()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> nameRegex()  
      java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> owners()  
      java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      • Methods inherited from class com.pulumi.resources.InvokeArgs

        validateMember
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • executableUsers

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> executableUsers()
        Returns:
        Limit search to users with *explicit* launch permission on the image. Valid items are the numeric account ID or `self`.
      • filters

        public java.util.Optional<com.pulumi.core.Output<java.util.List<GetAmiFilterArgs>>> filters()
        Returns:
        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].
      • includeDeprecated

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> includeDeprecated()
        Returns:
        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.
      • mostRecent

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> mostRecent()
        Returns:
        If more than one result is returned, use the most recent AMI.
      • nameRegex

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> nameRegex()
        Returns:
        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.
      • owners

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> owners()
        Returns:
        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`).
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Any tags assigned to the image. * `tags.#.key` - Key name of the tag. * `tags.#.value` - Value of the tag.