Class GetInstanceArgs.Builder

  • Enclosing class:
    GetInstanceArgs

    public static final class GetInstanceArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • filters

        public GetInstanceArgs.Builder filters​(@Nullable
                                               com.pulumi.core.Output<java.util.List<GetInstanceFilterArgs>> filters)
        Parameters:
        filters - One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-instances in the AWS CLI reference][1].
        Returns:
        builder
      • filters

        public GetInstanceArgs.Builder filters​(java.util.List<GetInstanceFilterArgs> filters)
        Parameters:
        filters - One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-instances in the AWS CLI reference][1].
        Returns:
        builder
      • filters

        public GetInstanceArgs.Builder filters​(GetInstanceFilterArgs... filters)
        Parameters:
        filters - One or more name/value pairs to use as filters. There are several valid keys, for a full reference, check out [describe-instances in the AWS CLI reference][1].
        Returns:
        builder
      • getPasswordData

        public GetInstanceArgs.Builder getPasswordData​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Boolean> getPasswordData)
        Parameters:
        getPasswordData - 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 `password_data` attribute. See [GetPasswordData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html) for more information.
        Returns:
        builder
      • getPasswordData

        public GetInstanceArgs.Builder getPasswordData​(java.lang.Boolean getPasswordData)
        Parameters:
        getPasswordData - 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 `password_data` attribute. See [GetPasswordData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetPasswordData.html) for more information.
        Returns:
        builder
      • getUserData

        public GetInstanceArgs.Builder getUserData​(@Nullable
                                                   com.pulumi.core.Output<java.lang.Boolean> getUserData)
        Parameters:
        getUserData - Retrieve Base64 encoded User Data contents into the `user_data_base64` attribute. A SHA-1 hash of the User Data contents will always be present in the `user_data` attribute. Defaults to `false`. > **NOTE:** At least one of `filter`, `instance_tags`, or `instance_id` 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.
        Returns:
        builder
      • getUserData

        public GetInstanceArgs.Builder getUserData​(java.lang.Boolean getUserData)
        Parameters:
        getUserData - Retrieve Base64 encoded User Data contents into the `user_data_base64` attribute. A SHA-1 hash of the User Data contents will always be present in the `user_data` attribute. Defaults to `false`. > **NOTE:** At least one of `filter`, `instance_tags`, or `instance_id` 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.
        Returns:
        builder
      • instanceId

        public GetInstanceArgs.Builder instanceId​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> instanceId)
        Parameters:
        instanceId - Specify the exact Instance ID with which to populate the data source.
        Returns:
        builder
      • instanceId

        public GetInstanceArgs.Builder instanceId​(java.lang.String instanceId)
        Parameters:
        instanceId - Specify the exact Instance ID with which to populate the data source.
        Returns:
        builder
      • instanceTags

        public GetInstanceArgs.Builder instanceTags​(@Nullable
                                                    com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> instanceTags)
        Parameters:
        instanceTags - Map of tags, each pair of which must exactly match a pair on the desired Instance.
        Returns:
        builder
      • instanceTags

        public GetInstanceArgs.Builder instanceTags​(java.util.Map<java.lang.String,​java.lang.String> instanceTags)
        Parameters:
        instanceTags - Map of tags, each pair of which must exactly match a pair on the desired Instance.
        Returns:
        builder
      • tags

        public GetInstanceArgs.Builder tags​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags assigned to the Instance.
        Returns:
        builder
      • tags

        public GetInstanceArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags assigned to the Instance.
        Returns:
        builder