Class GetInstanceArgs


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

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static GetInstanceArgs.Builder builder()  
      static GetInstanceArgs.Builder builder​(GetInstanceArgs defaults)  
      java.util.Optional<com.pulumi.core.Output<java.util.List<GetInstanceFilterArgs>>> filters()  
      java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> getPasswordData()  
      java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> getUserData()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> instanceId()  
      java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> instanceTags()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()  
      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

      • filters

        public java.util.Optional<com.pulumi.core.Output<java.util.List<GetInstanceFilterArgs>>> 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.
      • getPasswordData

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> getPasswordData()
        Returns:
        If true, wait for password data to become available and retrieve it. Useful for getting the administrator password for instances running Microsoft Windows. The password data is exported to the `passwordData` attribute. See [GetPasswordData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html) for more information.
      • getUserData

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> getUserData()
        Returns:
        Retrieve Base64 encoded User Data contents into the `userDataBase64` attribute. A SHA-1 hash of the User Data contents will always be present in the `userData` attribute. Defaults to `false`. > **NOTE:** At least one of `filter`, `instanceTags`, or `instanceId` must be specified. > **NOTE:** If anything other than a single match is returned by the search, this call will fail. Ensure that your search is specific enough to return a single Instance ID only.
      • instanceId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> instanceId()
        Returns:
        Specify the exact Instance ID with which to populate the data source.
      • 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 the desired Instance.
      • 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.
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of tags assigned to the Instance.