# 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
from . import outputs
from ._inputs import *

__all__ = [
    'GetLocalGatewaysResult',
    'AwaitableGetLocalGatewaysResult',
    'get_local_gateways',
    'get_local_gateways_output',
]

@pulumi.output_type
class GetLocalGatewaysResult:
    """
    A collection of values returned by getLocalGateways.
    """
    def __init__(__self__, filters=None, id=None, ids=None, tags=None):
        if filters and not isinstance(filters, list):
            raise TypeError("Expected argument 'filters' to be a list")
        pulumi.set(__self__, "filters", filters)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)
        if ids and not isinstance(ids, list):
            raise TypeError("Expected argument 'ids' to be a list")
        pulumi.set(__self__, "ids", ids)
        if tags and not isinstance(tags, dict):
            raise TypeError("Expected argument 'tags' to be a dict")
        pulumi.set(__self__, "tags", tags)

    @property
    @pulumi.getter
    def filters(self) -> Optional[Sequence['outputs.GetLocalGatewaysFilterResult']]:
        return pulumi.get(self, "filters")

    @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 ids(self) -> Sequence[str]:
        """
        Set of all the Local Gateway identifiers
        """
        return pulumi.get(self, "ids")

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


class AwaitableGetLocalGatewaysResult(GetLocalGatewaysResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetLocalGatewaysResult(
            filters=self.filters,
            id=self.id,
            ids=self.ids,
            tags=self.tags)


def get_local_gateways(filters: Optional[Sequence[pulumi.InputType['GetLocalGatewaysFilterArgs']]] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLocalGatewaysResult:
    """
    Provides information for multiple EC2 Local Gateways, such as their identifiers.

    ## Example Usage

    The following example retrieves Local Gateways with a resource tag of `service` set to `production`.

    ```python
    import pulumi
    import pulumi_aws as aws

    foo_local_gateways = aws.ec2.get_local_gateways(tags={
        "service": "production",
    })
    pulumi.export("foo", foo_local_gateways.ids)
    ```


    :param Sequence[pulumi.InputType['GetLocalGatewaysFilterArgs']] filters: Custom filter block as described below.
    :param Mapping[str, str] tags: A mapping of tags, each pair of which must exactly match
           a pair on the desired local_gateways.
    """
    __args__ = dict()
    __args__['filters'] = filters
    __args__['tags'] = tags
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('aws:ec2/getLocalGateways:getLocalGateways', __args__, opts=opts, typ=GetLocalGatewaysResult).value

    return AwaitableGetLocalGatewaysResult(
        filters=__ret__.filters,
        id=__ret__.id,
        ids=__ret__.ids,
        tags=__ret__.tags)


@_utilities.lift_output_func(get_local_gateways)
def get_local_gateways_output(filters: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetLocalGatewaysFilterArgs']]]]] = None,
                              tags: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
                              opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLocalGatewaysResult]:
    """
    Provides information for multiple EC2 Local Gateways, such as their identifiers.

    ## Example Usage

    The following example retrieves Local Gateways with a resource tag of `service` set to `production`.

    ```python
    import pulumi
    import pulumi_aws as aws

    foo_local_gateways = aws.ec2.get_local_gateways(tags={
        "service": "production",
    })
    pulumi.export("foo", foo_local_gateways.ids)
    ```


    :param Sequence[pulumi.InputType['GetLocalGatewaysFilterArgs']] filters: Custom filter block as described below.
    :param Mapping[str, str] tags: A mapping of tags, each pair of which must exactly match
           a pair on the desired local_gateways.
    """
    ...
