<reponame>keiichi-hikita/pulumi-ecl
# 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 json
import warnings
import pulumi
import pulumi.runtime
from .. import utilities, tables

class GetInternetServiceResult:
    """
    A collection of values returned by getInternetService.
    """
    def __init__(__self__, description=None, internet_service_id=None, minimal_submask_length=None, name=None, region=None, zone=None, id=None):
        if description and not isinstance(description, str):
            raise TypeError("Expected argument 'description' to be a str")
        __self__.description = description
        """
        See Argument Reference above.
        """
        if internet_service_id and not isinstance(internet_service_id, str):
            raise TypeError("Expected argument 'internet_service_id' to be a str")
        __self__.internet_service_id = internet_service_id
        """
        See Argument Reference above.
        """
        if minimal_submask_length and not isinstance(minimal_submask_length, float):
            raise TypeError("Expected argument 'minimal_submask_length' to be a float")
        __self__.minimal_submask_length = minimal_submask_length
        """
        See Argument Reference above.
        """
        if name and not isinstance(name, str):
            raise TypeError("Expected argument 'name' to be a str")
        __self__.name = name
        """
        See Argument Reference above.
        """
        if region and not isinstance(region, str):
            raise TypeError("Expected argument 'region' to be a str")
        __self__.region = region
        """
        See Argument Reference above.
        """
        if zone and not isinstance(zone, str):
            raise TypeError("Expected argument 'zone' to be a str")
        __self__.zone = zone
        """
        See Argument Reference above.
        """
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        __self__.id = id
        """
        id is the provider-assigned unique ID for this managed resource.
        """

async def get_internet_service(description=None,internet_service_id=None,minimal_submask_length=None,name=None,region=None,zone=None,opts=None):
    """
    Use this data source to get the ID and Details of an Enterprise Cloud Internet service.
    """
    __args__ = dict()

    __args__['description'] = description
    __args__['internetServiceId'] = internet_service_id
    __args__['minimalSubmaskLength'] = minimal_submask_length
    __args__['name'] = name
    __args__['region'] = region
    __args__['zone'] = zone
    __ret__ = await pulumi.runtime.invoke('ecl:network/getInternetService:getInternetService', __args__, opts=opts)

    return GetInternetServiceResult(
        description=__ret__.get('description'),
        internet_service_id=__ret__.get('internetServiceId'),
        minimal_submask_length=__ret__.get('minimalSubmaskLength'),
        name=__ret__.get('name'),
        region=__ret__.get('region'),
        zone=__ret__.get('zone'),
        id=__ret__.get('id'))

# 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 json
import warnings
import pulumi
import pulumi.runtime
from .. import utilities, tables

class GetInternetServiceResult:
    """
    A collection of values returned by getInternetService.
    """
    def __init__(__self__, description=None, internet_service_id=None, minimal_submask_length=None, name=None, region=None, zone=None, id=None):
        if description and not isinstance(description, str):
            raise TypeError("Expected argument 'description' to be a str")
        __self__.description = description
        """
        See Argument Reference above.
        """
        if internet_service_id and not isinstance(internet_service_id, str):
            raise TypeError("Expected argument 'internet_service_id' to be a str")
        __self__.internet_service_id = internet_service_id
        """
        See Argument Reference above.
        """
        if minimal_submask_length and not isinstance(minimal_submask_length, float):
            raise TypeError("Expected argument 'minimal_submask_length' to be a float")
        __self__.minimal_submask_length = minimal_submask_length
        """
        See Argument Reference above.
        """
        if name and not isinstance(name, str):
            raise TypeError("Expected argument 'name' to be a str")
        __self__.name = name
        """
        See Argument Reference above.
        """
        if region and not isinstance(region, str):
            raise TypeError("Expected argument 'region' to be a str")
        __self__.region = region
        """
        See Argument Reference above.
        """
        if zone and not isinstance(zone, str):
            raise TypeError("Expected argument 'zone' to be a str")
        __self__.zone = zone
        """
        See Argument Reference above.
        """
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        __self__.id = id
        """
        id is the provider-assigned unique ID for this managed resource.
        """

async def get_internet_service(description=None,internet_service_id=None,minimal_submask_length=None,name=None,region=None,zone=None,opts=None):
    """
    Use this data source to get the ID and Details of an Enterprise Cloud Internet service.
    """
    __args__ = dict()

    __args__['description'] = description
    __args__['internetServiceId'] = internet_service_id
    __args__['minimalSubmaskLength'] = minimal_submask_length
    __args__['name'] = name
    __args__['region'] = region
    __args__['zone'] = zone
    __ret__ = await pulumi.runtime.invoke('ecl:network/getInternetService:getInternetService', __args__, opts=opts)

    return GetInternetServiceResult(
        description=__ret__.get('description'),
        internet_service_id=__ret__.get('internetServiceId'),
        minimal_submask_length=__ret__.get('minimalSubmaskLength'),
        name=__ret__.get('name'),
        region=__ret__.get('region'),
        zone=__ret__.get('zone'),
        id=__ret__.get('id'))
# 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 getInternetService. See Argument Reference above. See Argument Reference above. See Argument Reference above. See Argument Reference above. See Argument Reference above. See Argument Reference above. id is the provider-assigned unique ID for this managed resource. Use this data source to get the ID and Details of an Enterprise Cloud Internet service.