Class GetInstancesArgs


  • public final class GetInstancesArgs
    extends com.pulumi.resources.InvokeArgs
    • Method Detail

      • filters

        public java.util.Optional<com.pulumi.core.Output<java.util.List<GetInstancesFilterArgs>>> filters()
        Returns:
        One or more filters to apply to the search. If multiple `filter` blocks are provided, they all must be true. For a full reference of filter names, see [describe-instances in the AWS CLI reference](http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html). See `filter` Block below.
      • instanceStateNames

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> instanceStateNames()
        Returns:
        List of instance states that should be applicable to the desired instances. The permitted values are: `pending, running, shutting-down, stopped, stopping, terminated`. The default value is `running`.
      • instanceTags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> instanceTags()
        Returns:
        Map of tags, each pair of which must exactly match a pair on desired instances.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.