def METHOD_NAME(endpoint: Optional[pulumi.Input[Optional[str]]] = None,
                      id: Optional[pulumi.Input[Optional[str]]] = None,
                      name: Optional[pulumi.Input[Optional[str]]] = None,
                      opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRegionResult]:
    """
    `get_region` provides details about a specific AWS region.
    As well as validating a given region name this resource can be used to
    discover the name of the region configured within the provider. The latter
    can be useful in a child module which is inheriting an AWS provider
    configuration from its parent module.
    ## Example Usage
    The following example shows how the resource might be used to obtain
    the name of the AWS region configured on the provider.
    ```python
    import pulumi
    import pulumi_aws as aws
    current = aws.get_region()
    ```
    :param str endpoint: EC2 endpoint of the region to select.
    :param str name: Full name of the region to select.
    """
    ...