<gh_stars>1-10
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = [
    'GetAppSecEvalHostnamesResult',
    'AwaitableGetAppSecEvalHostnamesResult',
    'get_app_sec_eval_hostnames',
    'get_app_sec_eval_hostnames_output',
]

@pulumi.output_type
class GetAppSecEvalHostnamesResult:
    """
    A collection of values returned by getAppSecEvalHostnames.
    """
    def __init__(__self__, config_id=None, hostnames=None, id=None, json=None, output_text=None):
        if config_id and not isinstance(config_id, int):
            raise TypeError("Expected argument 'config_id' to be a int")
        pulumi.set(__self__, "config_id", config_id)
        if hostnames and not isinstance(hostnames, list):
            raise TypeError("Expected argument 'hostnames' to be a list")
        pulumi.set(__self__, "hostnames", hostnames)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)
        if json and not isinstance(json, str):
            raise TypeError("Expected argument 'json' to be a str")
        pulumi.set(__self__, "json", json)
        if output_text and not isinstance(output_text, str):
            raise TypeError("Expected argument 'output_text' to be a str")
        pulumi.set(__self__, "output_text", output_text)

    @property
    @pulumi.getter(name="configId")
    def config_id(self) -> int:
        return pulumi.get(self, "config_id")

    @property
    @pulumi.getter
    def hostnames(self) -> Sequence[str]:
        return pulumi.get(self, "hostnames")

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")

    @property
    @pulumi.getter
    def json(self) -> str:
        return pulumi.get(self, "json")

    @property
    @pulumi.getter(name="outputText")
    def output_text(self) -> str:
        return pulumi.get(self, "output_text")


class AwaitableGetAppSecEvalHostnamesResult(GetAppSecEvalHostnamesResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetAppSecEvalHostnamesResult(
            config_id=self.config_id,
            hostnames=self.hostnames,
            id=self.id,
            json=self.json,
            output_text=self.output_text)


def get_app_sec_eval_hostnames(config_id: Optional[int] = None,
                               opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAppSecEvalHostnamesResult:
    """
    **Scopes**: Security configuration

    **Important**: This data source is deprecated and may be removed in a future release. You may use the `AppSecWapSelectedHostnames` data source instead.

    Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protect host traffic. (Note that the evaluation host isn't actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network.)

    Evaluation mode for hostnames is available only for organizations running Web Application Protector.

    **Related API Endpoint**: [/appsec/v1/configs/{configId}/versions/{versionNumber}/selected-hostnames/eval-hostnames](https://developer.akamai.com/api/cloud_security/application_security/v1.html#getevaluationhostnames)

    ## Example Usage

    Basic usage:

    ```python
    import pulumi
    import pulumi_akamai as akamai

    configuration = akamai.get_app_sec_configuration(name="Documentation")
    eval_hostnames_app_sec_eval_hostnames = akamai.get_app_sec_eval_hostnames(config_id=configuration.config_id)
    pulumi.export("evalHostnames", eval_hostnames_app_sec_eval_hostnames.hostnames)
    pulumi.export("evalHostnamesOutput", eval_hostnames_app_sec_eval_hostnames.output_text)
    pulumi.export("evalHostnamesJson", eval_hostnames_app_sec_eval_hostnames.json)
    ```
    ## Output Options

    The following options can be used to determine the information returned, and how that returned information is formatted:

    - `hostnames`. List of evaluation hostnames.
    - `json`. JSON-formatted list of evaluation hostnames.
    - `output_text`. Tabular report showing evaluation hostnames.


    :param int config_id: . Unique identifier of the security configuration running in evaluation mode.
    """
    __args__ = dict()
    __args__['configId'] = config_id
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('akamai:index/getAppSecEvalHostnames:getAppSecEvalHostnames', __args__, opts=opts, typ=GetAppSecEvalHostnamesResult).value

    return AwaitableGetAppSecEvalHostnamesResult(
        config_id=__ret__.config_id,
        hostnames=__ret__.hostnames,
        id=__ret__.id,
        json=__ret__.json,
        output_text=__ret__.output_text)


@_utilities.lift_output_func(get_app_sec_eval_hostnames)
def get_app_sec_eval_hostnames_output(config_id: Optional[pulumi.Input[int]] = None,
                                      opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAppSecEvalHostnamesResult]:
    """
    **Scopes**: Security configuration

    **Important**: This data source is deprecated and may be removed in a future release. You may use the `AppSecWapSelectedHostnames` data source instead.

    Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protect host traffic. (Note that the evaluation host isn't actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network.)

    Evaluation mode for hostnames is available only for organizations running Web Application Protector.

    **Related API Endpoint**: [/appsec/v1/configs/{configId}/versions/{versionNumber}/selected-hostnames/eval-hostnames](https://developer.akamai.com/api/cloud_security/application_security/v1.html#getevaluationhostnames)

    ## Example Usage

    Basic usage:

    ```python
    import pulumi
    import pulumi_akamai as akamai

    configuration = akamai.get_app_sec_configuration(name="Documentation")
    eval_hostnames_app_sec_eval_hostnames = akamai.get_app_sec_eval_hostnames(config_id=configuration.config_id)
    pulumi.export("evalHostnames", eval_hostnames_app_sec_eval_hostnames.hostnames)
    pulumi.export("evalHostnamesOutput", eval_hostnames_app_sec_eval_hostnames.output_text)
    pulumi.export("evalHostnamesJson", eval_hostnames_app_sec_eval_hostnames.json)
    ```
    ## Output Options

    The following options can be used to determine the information returned, and how that returned information is formatted:

    - `hostnames`. List of evaluation hostnames.
    - `json`. JSON-formatted list of evaluation hostnames.
    - `output_text`. Tabular report showing evaluation hostnames.


    :param int config_id: . Unique identifier of the security configuration running in evaluation mode.
    """
    ...

# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = [
    'GetAppSecEvalHostnamesResult',
    'AwaitableGetAppSecEvalHostnamesResult',
    'get_app_sec_eval_hostnames',
    'get_app_sec_eval_hostnames_output',
]

@pulumi.output_type
class GetAppSecEvalHostnamesResult:
    """
    A collection of values returned by getAppSecEvalHostnames.
    """
    def __init__(__self__, config_id=None, hostnames=None, id=None, json=None, output_text=None):
        if config_id and not isinstance(config_id, int):
            raise TypeError("Expected argument 'config_id' to be a int")
        pulumi.set(__self__, "config_id", config_id)
        if hostnames and not isinstance(hostnames, list):
            raise TypeError("Expected argument 'hostnames' to be a list")
        pulumi.set(__self__, "hostnames", hostnames)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)
        if json and not isinstance(json, str):
            raise TypeError("Expected argument 'json' to be a str")
        pulumi.set(__self__, "json", json)
        if output_text and not isinstance(output_text, str):
            raise TypeError("Expected argument 'output_text' to be a str")
        pulumi.set(__self__, "output_text", output_text)

    @property
    @pulumi.getter(name="configId")
    def config_id(self) -> int:
        return pulumi.get(self, "config_id")

    @property
    @pulumi.getter
    def hostnames(self) -> Sequence[str]:
        return pulumi.get(self, "hostnames")

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")

    @property
    @pulumi.getter
    def json(self) -> str:
        return pulumi.get(self, "json")

    @property
    @pulumi.getter(name="outputText")
    def output_text(self) -> str:
        return pulumi.get(self, "output_text")


class AwaitableGetAppSecEvalHostnamesResult(GetAppSecEvalHostnamesResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetAppSecEvalHostnamesResult(
            config_id=self.config_id,
            hostnames=self.hostnames,
            id=self.id,
            json=self.json,
            output_text=self.output_text)


def get_app_sec_eval_hostnames(config_id: Optional[int] = None,
                               opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAppSecEvalHostnamesResult:
    """
    **Scopes**: Security configuration

    **Important**: This data source is deprecated and may be removed in a future release. You may use the `AppSecWapSelectedHostnames` data source instead.

    Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protect host traffic. (Note that the evaluation host isn't actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network.)

    Evaluation mode for hostnames is available only for organizations running Web Application Protector.

    **Related API Endpoint**: [/appsec/v1/configs/{configId}/versions/{versionNumber}/selected-hostnames/eval-hostnames](https://developer.akamai.com/api/cloud_security/application_security/v1.html#getevaluationhostnames)

    ## Example Usage

    Basic usage:

    ```python
    import pulumi
    import pulumi_akamai as akamai

    configuration = akamai.get_app_sec_configuration(name="Documentation")
    eval_hostnames_app_sec_eval_hostnames = akamai.get_app_sec_eval_hostnames(config_id=configuration.config_id)
    pulumi.export("evalHostnames", eval_hostnames_app_sec_eval_hostnames.hostnames)
    pulumi.export("evalHostnamesOutput", eval_hostnames_app_sec_eval_hostnames.output_text)
    pulumi.export("evalHostnamesJson", eval_hostnames_app_sec_eval_hostnames.json)
    ```
    ## Output Options

    The following options can be used to determine the information returned, and how that returned information is formatted:

    - `hostnames`. List of evaluation hostnames.
    - `json`. JSON-formatted list of evaluation hostnames.
    - `output_text`. Tabular report showing evaluation hostnames.


    :param int config_id: . Unique identifier of the security configuration running in evaluation mode.
    """
    __args__ = dict()
    __args__['configId'] = config_id
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('akamai:index/getAppSecEvalHostnames:getAppSecEvalHostnames', __args__, opts=opts, typ=GetAppSecEvalHostnamesResult).value

    return AwaitableGetAppSecEvalHostnamesResult(
        config_id=__ret__.config_id,
        hostnames=__ret__.hostnames,
        id=__ret__.id,
        json=__ret__.json,
        output_text=__ret__.output_text)


@_utilities.lift_output_func(get_app_sec_eval_hostnames)
def get_app_sec_eval_hostnames_output(config_id: Optional[pulumi.Input[int]] = None,
                                      opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAppSecEvalHostnamesResult]:
    """
    **Scopes**: Security configuration

    **Important**: This data source is deprecated and may be removed in a future release. You may use the `AppSecWapSelectedHostnames` data source instead.

    Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protect host traffic. (Note that the evaluation host isn't actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network.)

    Evaluation mode for hostnames is available only for organizations running Web Application Protector.

    **Related API Endpoint**: [/appsec/v1/configs/{configId}/versions/{versionNumber}/selected-hostnames/eval-hostnames](https://developer.akamai.com/api/cloud_security/application_security/v1.html#getevaluationhostnames)

    ## Example Usage

    Basic usage:

    ```python
    import pulumi
    import pulumi_akamai as akamai

    configuration = akamai.get_app_sec_configuration(name="Documentation")
    eval_hostnames_app_sec_eval_hostnames = akamai.get_app_sec_eval_hostnames(config_id=configuration.config_id)
    pulumi.export("evalHostnames", eval_hostnames_app_sec_eval_hostnames.hostnames)
    pulumi.export("evalHostnamesOutput", eval_hostnames_app_sec_eval_hostnames.output_text)
    pulumi.export("evalHostnamesJson", eval_hostnames_app_sec_eval_hostnames.json)
    ```
    ## Output Options

    The following options can be used to determine the information returned, and how that returned information is formatted:

    - `hostnames`. List of evaluation hostnames.
    - `json`. JSON-formatted list of evaluation hostnames.
    - `output_text`. Tabular report showing evaluation hostnames.


    :param int config_id: . Unique identifier of the security configuration running in evaluation mode.
    """
    ...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** A collection of values returned by getAppSecEvalHostnames. The provider-assigned unique ID for this managed resource. # pylint: disable=using-constant-test **Scopes**: Security configuration      **Important**: This data source is deprecated and may be removed in a future release. You may use the `AppSecWapSelectedHostnames` data source instead.      Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protect host traffic. (Note that the evaluation host isn't actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network.)      Evaluation mode for hostnames is available only for organizations running Web Application Protector.      **Related API Endpoint**: [/appsec/v1/configs/{configId}/versions/{versionNumber}/selected-hostnames/eval-hostnames](https://developer.akamai.com/api/cloud_security/application_security/v1.html#getevaluationhostnames)      ## Example Usage      Basic usage:      ```python     import pulumi     import pulumi_akamai as akamai      configuration = akamai.get_app_sec_configuration(name="Documentation")     eval_hostnames_app_sec_eval_hostnames = akamai.get_app_sec_eval_hostnames(config_id=configuration.config_id)     pulumi.export("evalHostnames", eval_hostnames_app_sec_eval_hostnames.hostnames)     pulumi.export("evalHostnamesOutput", eval_hostnames_app_sec_eval_hostnames.output_text)     pulumi.export("evalHostnamesJson", eval_hostnames_app_sec_eval_hostnames.json)     ```     ## Output Options      The following options can be used to determine the information returned, and how that returned information is formatted:      - `hostnames`. List of evaluation hostnames.     - `json`. JSON-formatted list of evaluation hostnames.     - `output_text`. Tabular report showing evaluation hostnames.       :param int config_id: . Unique identifier of the security configuration running in evaluation mode. **Scopes**: Security configuration      **Important**: This data source is deprecated and may be removed in a future release. You may use the `AppSecWapSelectedHostnames` data source instead.      Returns the evaluation hostnames for a configuration. In evaluation mode, you use evaluation hosts to monitor how well your configuration settings protect host traffic. (Note that the evaluation host isn't actually protected, and the host takes no action other than recording the actions it would have taken had it been on the production network.)      Evaluation mode for hostnames is available only for organizations running Web Application Protector.      **Related API Endpoint**: [/appsec/v1/configs/{configId}/versions/{versionNumber}/selected-hostnames/eval-hostnames](https://developer.akamai.com/api/cloud_security/application_security/v1.html#getevaluationhostnames)      ## Example Usage      Basic usage:      ```python     import pulumi     import pulumi_akamai as akamai      configuration = akamai.get_app_sec_configuration(name="Documentation")     eval_hostnames_app_sec_eval_hostnames = akamai.get_app_sec_eval_hostnames(config_id=configuration.config_id)     pulumi.export("evalHostnames", eval_hostnames_app_sec_eval_hostnames.hostnames)     pulumi.export("evalHostnamesOutput", eval_hostnames_app_sec_eval_hostnames.output_text)     pulumi.export("evalHostnamesJson", eval_hostnames_app_sec_eval_hostnames.json)     ```     ## Output Options      The following options can be used to determine the information returned, and how that returned information is formatted:      - `hostnames`. List of evaluation hostnames.     - `json`. JSON-formatted list of evaluation hostnames.     - `output_text`. Tabular report showing evaluation hostnames.       :param int config_id: . Unique identifier of the security configuration running in evaluation mode.