Class GetInstancePlainArgs


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

      • filters

        public java.util.Optional<java.util.List<GetInstanceFilter>> 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<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<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<java.lang.String> instanceId()
        Returns:
        Specify the exact Instance ID with which to populate the data source.
      • instanceTags

        public java.util.Optional<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<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<java.util.Map<java.lang.String,​java.lang.String>> tags()
        Returns:
        Map of tags assigned to the Instance.